Non CF-Compliant name WARNING

3 posts / 0 new
Last post
MattiasKNMI
Non CF-Compliant name WARNING

Hi!

I've using CIS for a bit now, and it's been working quite well to this point.

I calculated the bias between collocated model data and MODIS satellite data for 550 nm optical depth with CIS. The original model data is gridded, but the rest isn't. So the bias file is an ungridded NetCDF. I named the calculated variable 'bias'.

The next step is to aggregate the ungridded bias data into bins. So when I write the following for one of the files
$ cis aggregate bias:/run/media/terpstra/SAMSUNG/Bias_MOD04/cis-Bias_TM5_MOD04_L2_2010_001.2050.nc:kernel=mean x=[-180,180,0.1],y=[-90,90,0.1] -o /run/media/terpstra/SAMSUNG/Aggregated_Bias_MOD04/Aggregated_Bias_TM5_MOD04_L2_2010_001.2050.nc

The output is the following:
2016-05-10 17:08:27,838 - INFO - Identified input file list: ['/run/media/terpstra/SAMSUNG/Bias_MOD04/cis-Bias_TM5_MOD04_L2_2010_001.2050.nc']
2016-05-10 17:08:27,888 - INFO - Reading data for variables: ['bias']
2016-05-10 17:08:27,896 - INFO - Retrieving data using product cis...
2016-05-10 17:08:27,898 - INFO - Listing coordinates: [('longitude', 'x'), ('latitude', 'y'), ('altitude', 'z'), ('time', 't'), ('air_pressure', 'p')]
2016-05-10 17:08:27,995 - INFO - --> Creating index for BinnedCubeCellOnlyConstraint
2016-05-10 17:08:28,007 - INFO - --> Co-locating...
2016-05-10 17:08:28,449 - WARNING - Standard name 'bias' not CF-compliant, this standard name will not be used in the output file.
2016-05-10 17:08:28,738 - INFO - Saving data to /run/media/terpstra/SAMSUNG/Aggregated_Bias_MOD04/Aggregated_Bias_TM5_MOD04_L2_2010_001.2050.nc

So it created the file and I checked if the bins were made, which they were. The only problem is that it doesn't want to accept 'bias' as a valid variable. What is the reason CIS needs a CF compliant variable name? How can I solve this in order to make this work?

Thanks in advance
Mattias

duncanwp
Re: Non CF-Compliant name WARNING

Hi Mattias,

Glad to hear it's being going well so far!

I don't think that warning is telling you what you think it is. All it's saying is that the 'standard_name' attribute on the variable isn't allowed to be 'bias' because it's not a CF compliant standard name. The variable itself can still be called bias - and hopefully is in your output file?

I've had a couple of people trip up on that warning though, so I'll have a think about how to reword it, or possible remove it altogether - it's not as if you asked for that to be a standard name!

Hope that helps

MattiasKNMI
Hello Duncan,

Hello Duncan,

Thanks for the reply! I just checked some output files again, and it did seem to work indeed.

Thanks

Mattias

Website designed & built by OCC