-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check CF-compliance of test files #184
Comments
@mortenwh |
I've identified the following netcdf files in the above locations, and divided them into two groups. Do you agree on this? Files that should be cf-compliant: netcdf files that should be as original, and not modified: |
I would think files that are under the netcdf_cf folder should comply 100% with cf, which it seems they don't. But I also agree that files not created by us should stay as original. Anyway, for the 4 files you mentioned we should check, only 1 is not comliant, generic_dataset.nc The use of the _Unsigned seems like a bit of a mess:
As a conclusion to all these discussions and documentation, I suggest that we chose to follow Unidata recommendations in the NUG over the intepretation of CF convention from the CF-convention creators. I.e. We keep _Unsigned as an attribute. We are also using the valid_range attribute, so we are following both recommendations on how to specify that it is unsigned, I think that should suffice. @akorosov @mortenwh do you have an objection to my conclusion? |
agree :)
…On 11 January 2018 at 12:13, Aleksander Vines ***@***.***> wrote:
I would think files that are under the netcdf_cf folder should comply 100%
with cf, which it seems they don't. But I also agree that files not created
by us should stay as original.
Anyway, for the 4 files you mentioned we should check, only 1 is not
comliant, generic_dataset.nc
The issue here is that ban_000 contains an attribute that starts with
underscore (_Unsigned), which per cf_definition is not allowed (the only
exception for us is _FillValue), I've had a mail correspondence with the
person developing the cf-checker previously, regarding similar issue, which
resultet in this ticket on the CF convention http://cf-trac.llnl.gov/trac/
ticket/157 and this issue on a Unidata repository Unidata/rosetta#68
<Unidata/rosetta#68>
The use of the _Unsigned seems like a bit of a mess:
- the NUG refers to using _Unsigned as a "new proposed convention"
https://www.unidata.ucar.edu/software/netcdf/docs/BestPractices.html
<https://www.unidata.ucar.edu/software/netcdf/docs/BestPractices.html>
- CF mentions the use of specifying the range to indicate that its
unsigned http://cfconventions.org/cf-conventions/cf-conventions.
html#_data_types
- Unidata/netcdf4-python#493
<Unidata/netcdf4-python#493>
- pydata/xarray#1444 <pydata/xarray#1444>
- Unidata/netcdf4-python#656
<Unidata/netcdf4-python#656>
- https://www.unidata.ucar.edu/support/help/MailArchives/
netcdf/msg13836.html
As a conclusion to all these discussions and documentation, I suggest that
we chose to follow Unidata recommendations in the NUG over the
intepretation of CF convention from the CF-convention creators. I.e. We
keep _Unsigned as an attribute. We are also using the valid_range
attribute, so we are following both recommendations on how to specify that
it is unsigned, I think that should suffice.
@akorosov <https://github.com/akorosov> @mortenwh
<https://github.com/mortenwh> do you have an objection to my conclusion?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#184 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGqBRO1sqahYmATSKOgpy_AtbCK0WEnks5tJezhgaJpZM4MbXlw>
.
--
T.: (+47) 915 47 844
|
We should make sure our netcdf test files are cf-compliant... Use, e.g., http://puma.nerc.ac.uk/cgi-bin/cf-checker.pl for checking all of them
The text was updated successfully, but these errors were encountered: