[Gdal-dev] The GDAL CF-NetCDF driver seems to lose the geoferencing info on output.

Rich Signell rsignell at usgs.gov
Thu Sep 7 07:49:47 EDT 2006


GDAL NetCDF driver folk:

I was excited to see that in the GDAL 1.3.2.0 that I got with FWTOOLS
1.0.6, the CF-style "netcdf" is available as an output format!  (Even
though
http://gdal.maptools.org/formats_list.html doesn't yet list "creation"
for NetCDF, however).

I tried converting a geotiff using:

gdal_translate -of netcdf  SeaWiFS.tif SeaWiFS.nc

and it works fine (but didn't give the usual 0... 10... 20...), but
loses the georeferencing information.  It writes only the pixel values
and not the coordinate variables:

$ ncdump -h SeaWiFS.nc
netcdf SeaWiFS {
dimensions:
        x = 36000 ;
        y = 7000 ;
variables:
        byte Band1(y, x) ;
                Band1:long_name = "GDAL Band Number 1" ;
                Band1:_FillValue = -9999. ;

// global attributes:
                :Conventions = "CF-1.0" ;
                :AREA_OR_POINT = "Area" ;
}


Thanks,
Rich

-- 
Dr. Richard P. Signell   (508) 457-2229
USGS, 384 Woods Hole Rd.
Woods Hole, MA 02543-1598



More information about the Gdal-dev mailing list