etiennesky/gdal-frmts-netcdf-issues — Issue #17: revise when GT, spatial_ref and coordinates = "lon lat" are written (for GEOGCS file)
Author: etiennesky
Created: 2011-12-06 13:36:01+00:00
State: open

example

ncdump -h MCD12Q1.IGBP.SA.2002.wgs84.mosaic_0p5.nc
netcdf MCD12Q1.IGBP.SA.2002.wgs84.mosaic_0p5 {
dimensions:
lon = 94 ;
lat = 138 ;
variables:
float Band1(lat, lon) ;
Band1:long_name = "GDAL Band Number 1" ;
Band1:_FillValue = -1.e+10f ;
Band1:vegtype_id = 1 ;
Band1:vegtype_name = "Evergreen Needleleaf forest" ;
Band1:grid_mapping = "crs" ;
Band1:coordinates = "lon lat" ;

...

float Band18(lat, lon) ;
Band18:long_name = "GDAL Band Number 18" ;
Band18:_FillValue = -1.e+10f ;
Band18:vegtype_id = 255 ;
Band18:vegtype_name = "Fill Value" ;
Band18:grid_mapping = "crs" ;
Band18:coordinates = "lon lat" ;
char crs ;
crs:grid_mapping_name = "latitude_longitude" ;
crs:longitude_of_prime_meridian = 0. ;
crs:semi_major_axis = 6378137. ;
crs:inverse_flattening = 298.257223563 ;
crs:spatial_ref = "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433],AUTHORITY[\"EPSG\",\"4326\"]]" ;
crs:GeoTransform = "-81.4999999545239 0.5000000000000004 0 12.99999999820093 0 -0.5000000000000004 " ;
double lat(lat) ;
lat:standard_name = "latitude" ;
lat:long_name = "latitude" ;
lat:units = "degrees_north" ;
double lon(lon) ;
lon:standard_name = "longitude" ;
lon:long_name = "longitude" ;
lon:units = "degrees_east" ;