⇐ ⇒

[CF-metadata] variable missing "coordinates" attribute

From: John Caron <caron>
Date: Wed, 26 Jan 2005 11:37:27 -0800

the folllowing file has a variable "topo" that is missing the
"coordinates = lat,lon" that would assign the 2D lat, lon coordinates to it.

i have been interpreting this strictly, namely that the user is choosing
not to assign, but in fact its more likely that they simply forgot, or
they dont think of topo as a data variable.

note that the time coordinate is assigned automatically because it is a
coordinate variable. thus the set of coordinates are either 1)
implicitly assigned coordinate variables or2) explicitly assigned via
the "coordinates" attribute.

i am adding some heuristics to deal with common errors like below, but i
thought maybe someone might have some thoughts or comments.

netcdf
dods://www.satlab.hawaii.edu/cgi-bin/nph-dods/adria/models/coamps/coamps_wind.nc
{
dimensions:
  time = UNLIMITED; // (5808 currently) // (has coord.var)
  j = 205;
  i = 187;
variables:
  double time(time);
    :units = "days since 1968-5-23";
    :long_name = "modified julian day (ROMS-style)";
  float lon(j, i);
    :units = "degrees_east";
    :long_name = "longitude";
  float lat(j, i);
    :units = "degrees_north";
    :long_name = "latitude";
  float topo(j, i);
    :units = "m";
    :long_name = "land elevation";
  float U10(time, j, i);
    :long_name = "Eastward wind component";
    :units = "m/s";
    :scale_factor = 0.001525925; // float
    :add_offset = 0.0; // float
    :coordinates = "lon lat";
  float V10(time, j, i);
    :long_name = "Northward wind component";
    :units = "m/s";
    :scale_factor = 0.001525925; // float
    :add_offset = 0.0; // float
    :coordinates = "lon lat";

:Conventions = "CF-1.0";
:title = "COAMPS(TM) output from Jim Doyle, NRL/MRY";
:institution = "NATO/SACLANT Undersea Research Centre";
:source = "COAMPS V3.0";
:contact = "Rich Signell (rsignell at usgs.gov), Jim Doyle
(doyle at nrlmry.navy.mil)";
:comment = "Hourly COAMPS reanalysis fields were obtained from Jim
Doyle. Continuous hourly fields were constructed by extracting hours
02-13 from the
twice daily hindcast initializations at 0000 UTC and 1200 UTC. Thus no
analysis time data
was used, the rationale being that some spin-up time is desirable. The
data were then
compacted from float to short integers to save space (for those
parameters that do not require
a large dynamic range).";
:history = "Fri Feb 13 06:27:51 2004: ncrcat -O coamps_wind.200209.nc
coamps_wind.200210.nc coamps_wind.200211.nc coamps_wind.200212.nc
coamps_wind.200301.nc coamps_wind.200302.nc coamps_wind.200303.nc
coamps_wind.200304.nc coamps_wind.nc
Fri Feb 13 05:51:54 2004: ncatted -O -a contact,global,o,c,Rich Signell
(rsignell at usgs.gov), Jim Doyle (doyle at nrlmry.navy.mil)
coamps_wind.200209.nc";
}
Received on Wed Jan 26 2005 - 12:37:27 GMT

This archive was generated by hypermail 2.3.0 : Tue Sep 13 2022 - 23:02:40 BST

⇐ ⇒