[Gdal-dev] NetCDF CF-1 understood by GDAL?

Frank Warmerdam warmerdam at pobox.com
Sun Dec 3 19:50:01 EST 2006


Jeff Bullard wrote:
> I'm using gdal-1.3.2 to read NetCDF-3 CF-1 compliant files from NOAA
> NDFD.  GDAL does not seem to pick up the coordinates or projection.
> When I type
>  
> $gdal_translate NETCDF:"200612010300_sky.nc":Sky_SFC sky.tif
> 
> I get a TIFF that is upside-down and lacks lat/lon reference.  Unidata
> NetCDF 2.2 tools (java) handles the same files without problem, picking
> up the coordinates and projection automatically.  What argument can I
> pass to gdal_translate to get a correct geotiff?
> 
> $ gdalinfo 200612010300_sky.nc
> Driver: netCDF/Network Common Data Format
> Size is 512, 512
> Coordinate System is `'
> Metadata:
>   NC_GLOBAL#title=GRIB Data translated to NetCDF
>   NC_GLOBAL#Conventions=CF-1.0
>   NC_GLOBAL#CreatedBy=degrib
>   NC_GLOBAL#comment=Used degrib with: -NetCDF 3
>   NC_GLOBAL#references=http://www.nws.noaa.gov/mdl/NDFD_GRIB2Decoder/
> Subdatasets:
>   SUBDATASET_1_NAME=NETCDF:"200612010300_sky.nc":longitude
>   SUBDATASET_1_DESC=[689x1073] longitude (32-bit floating-point)
>   SUBDATASET_2_NAME=NETCDF:"200612010300_sky.nc":latitude
>   SUBDATASET_2_DESC=[689x1073] latitude (32-bit floating-point)
>   SUBDATASET_3_NAME=NETCDF:"200612010300_sky.nc":Sky_SFC
>   SUBDATASET_3_DESC=[1x689x1073] Sky_SFC (32-bit floating-point)

Jeff,

What does "gdalinfo NETCDF:"200612010300_sky.nc":Sky_SFC" report?

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list