Skip to content
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

Closed
mortenwh opened this issue Mar 13, 2017 · 5 comments
Closed

Check CF-compliance of test files #184

mortenwh opened this issue Mar 13, 2017 · 5 comments
Assignees

Comments

@mortenwh
Copy link
Contributor

mortenwh commented Mar 13, 2017

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

@aleksandervines aleksandervines self-assigned this Jan 10, 2018
@aleksandervines
Copy link
Contributor

@mortenwh
Do you just mean the two files here https://github.com/nansencenter/nansat/tree/master/nansat/tests/data
Or these as well ftp://ftp.nersc.no/nansat/test_data/
And are there other places we got netcdf files?

@aleksandervines
Copy link
Contributor

aleksandervines commented Jan 10, 2018

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:
ftp://ftp.nersc.no/nansat/test_data/generic/generic_dataset.nc
ftp://ftp.nersc.no/nansat/test_data/generic/generic_dataset_time.nc
ftp://ftp.nersc.no/nansat/test_data/netcdf_cf/ARC-METNO-ARC-TOPAZ4_2_PHYS-FOR-TDS-x10-X30-y55-Y73-20170518-20170526.nc
ftp://ftp.nersc.no/nansat/test_data/netcdf_cf/GLOBAL_ANALYSIS_FORECAST_PHY_001_024-TDS-x10-X30-y55-Y73-201705181200-201705271200.nc
nansat/tests/data/arctic.nc
nansat/tests/data/complex.nc

netcdf files that should be as original, and not modified:
ftp://ftp.nersc.no/nansat/test_data/globcolour_l3b/L3b_20150930-20151007__GLOB_4_GSM-MODVIR_CHL1_8D_00.nc
ftp://ftp.nersc.no/nansat/test_data/obpg_l2_nc/A2015223043500.L2_LAC.NorthNorwegianSeas.nc
ftp://ftp.nersc.no/nansat/test_data/obpg_l2_nc/V2016020125011.L2_NPP_OC.nc

@mortenwh
Copy link
Contributor Author

mortenwh commented Jan 11, 2018 via email

@aleksandervines
Copy link
Contributor

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

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?

@mortenwh
Copy link
Contributor Author

mortenwh commented Jan 11, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants