In the process of writing a routine to faithfully serialize data according
to CF conventions, I have encountered a conundrum.
Suppose I have a would like to save a netCDF file representing a spatial
grid, with 1D variables "x" and "y" and 2D variables "latitude" and
"longitude". All of these variables should be considered coordinates by any
libraries that read the file, and I would like to indicate this in the
netCDF file.
If there was an additional 2D data variable (e.g., "temperature"), I could
indicate that latitude and longitude are coordinates by adding them to the
"coordinates" attribute on the "temperature" variable. However, I have no
such variable here.
Is there any standard way I can indicate that these variables are
coordinates if there are no non-coordinates on which to add the appropriate
attribute? I am considering considering using a global "coordinates"
attribute but that is definitely outside the CF spec.
Thanks,
Stephan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://mailman.cgd.ucar.edu/pipermail/cf-metadata/attachments/20141012/7da9e210/attachment.html>
Received on Sun Oct 12 2014 - 01:14:11 BST