[CF-metadata] 2D latitude, longitude coordinates detection
below is the ncdump of a file. the CF convention checker passes it with
"0 errors". my parser doesnt find the 2D latitude, longitude coordainte
variables, because i assumed that they have to be named by a
"coordinate" attribute (section 5.2). Opinions?
netcdf C:\data\conventions\cf\signell_july2_03.nc {
dimensions:
s_rho = 20; // (has coord.var)
latitude = 60;
longitude = 160;
time = UNLIMITED; // (2 currently) // (has coord.var)
variables:
double Cs_r(s_rho);
:long_name = "S-coordinate stretching curves at RHO-points";
:valid_min = -1.0; // double
:valid_max = 0.0; // double
double theta_s;
:long_name = "S-coordinate surface control parameter";
double theta_b;
:long_name = "S-coordinate bottom control parameter";
double h(latitude, longitude);
:long_name = "bathymetry at RHO-points";
:units = "meter";
double hc;
:long_name = "S-coordinate parameter, critical depth";
:units = "meter";
double latitude(latitude, longitude);
:long_name = "latitude of RHO-points";
:units = "degrees_north";
double longitude(latitude, longitude);
:long_name = "longitude of RHO-points";
:units = "degrees_east";
double s_rho(s_rho);
:long_name = "S-coordinate at RHO-points";
:valid_min = -1.0; // double
:valid_max = 0.0; // double
:standard_name = "ocean_s_coordinate";
:positive = "up";
:formula_terms = "s: s_rho eta: zeta depth: h a: theta_s b: theta_b
depth_c: hc";
float temp(time, s_rho, latitude, longitude);
:long_name = "potential temperature";
:units = "Celsius";
double time(time);
:long_name = "time since initialization";
:units = "seconds since 1968-05-23 00:00:00 UTC";
:calendar = "gregorian";
float zeta(time, latitude, longitude);
:long_name = "free-surface";
:units = "meter";
// Global Attributes:
:Conventions = "CF-1.0";
:type = "ROMS/TOMS output averages file";
}
File name: C:\data\conventions\cf\signell_july2_03.nc
--------------------------------------------------------------------------------
Output of CF-Checker follows...
CHECKING NetCDF FILE
=====================
------------------
Checking variable: theta_b
------------------
------------------
Checking variable: Cs_r
------------------
------------------
Checking variable: temp
------------------
------------------
Checking variable: h
------------------
------------------
Checking variable: longitude
------------------
------------------
Checking variable: s_rho
------------------
------------------
Checking variable: theta_s
------------------
------------------
Checking variable: time
------------------
------------------
Checking variable: latitude
------------------
------------------
Checking variable: hc
------------------
------------------
Checking variable: zeta
------------------
ERRORS detected: 0
WARNINGS given: 0
Received on Thu Jul 03 2003 - 13:22:43 BST
This archive was generated by hypermail 2.3.0
: Tue Sep 13 2022 - 23:02:40 BST