Ticket #2129 (closed task: fixed)
NetCDF created by GDAL not CF-1.0 compliant for geographical grids
| Reported by: | bokhorst | Owned by: | dnadeau |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | GDAL_Raster | Version: | 1.8.1 |
| Severity: | normal | Keywords: | netcdf, cf |
| Cc: | kyle, etiennesky, JoshVote, pds |
Description
The NetCDF created by GDAL for a (non-projected) geographical grid does not seem to be CF-1.0 compliant, although the 'Conventions' attribute states otherwise.
The part that is not compliant is the grid_mapping_name "Geographics Coordinate System" that is not a valid grid_mapping_name in CF-1.0.
Here is an example of a GDAL-generated NetCDF (in CDL, only the header):
netcdf gdal_netcdf {
dimensions:
x = 10 ;
y = 10 ;
variables:
char GDAL_Geographics ;
GDAL_Geographics:Northernmost_Northing = 55. ;
GDAL_Geographics:Southernmost_Northing = 60. ;
GDAL_Geographics:Easternmost_Easting = 5. ;
GDAL_Geographics:Westernmost_Easting = 0. ;
GDAL_Geographics:spatial_ref = "GEOGCS[\"WGS
84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS
84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]"
;
GDAL_Geographics:GeoTransform = "0 0.5 -0 55 0 0.5 " ;
GDAL_Geographics:grid_mapping_name = "Geographics
Coordinate System" ;
GDAL_Geographics:long_name = "Grid_latitude" ;
float Band1(y, x) ;
Band1:_FillValue = 0.f ;
Band1:grid_mapping = "GDAL_Geographics" ;
Band1:long_name = "GDAL Band Number 1" ;
// global attributes:
:Conventions = "CF-1.0" ;
data:
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

