IS-ENES-Data / QA-DKRZ

Quality and CF checker of meta-data in climate related data sets (NetCDF files)
4 stars 4 forks source link

cell_methods with standard_names #15

Closed zklaus closed 5 years ago

zklaus commented 5 years ago

We get a number of annotations of the form

annotation: Attribute <msftyz>:cell_methods: Invalid name <grid_longitude:>.

the corresponding extract from the output of ncdump is

        float msftyz(time, basin, lev, rlat) ;
                msftyz:cell_methods = "time: mean grid_longitude: mean" ;

this makes use of a feature described in CF-1.7 Section 7.3.4 whereby names in cell_method can refer to CF standard_names instead of dimensions or variables in the netcdf file.

This use is demanded by the CMIP6 tables (eg (Omon, msftyz)) and should not be considered an error.

What do you think, @h-dh ?

h-dh commented 5 years ago

I totally agree. Unfortunately, there was a missing tiny '!' in the corresponding C++ coding. Fixed. Cheers, hdh

zklaus commented 5 years ago

Great, thanks!

PS: If you include fixes #15 (or any of a number of alternatives) anywhere in the commit message, github will close the issue automatically for you and we get a link to the relevant commit here.