[gdal-dev] convert Grass Raster to netCDF

Scott Sinclair scott.sinclair.za at gmail.com
Wed Aug 12 11:50:58 EDT 2009

>2009/8/12 chen cui <cui_chan at hotmail.com>:
> i would like to convert Grass Raster to netCDF format.
> i have used  the following command from gdal library:
> gdal_translate /directory/Global/Permanent/cellhd/RasterMask RasterNC.nc
> which worked well!
> i also use gdalinfo to check the netCDF file:
> gdalinfo RasterNC.nc
> Driver: GTiff/GeoTIFF
> Which shows the driver information is GTiff/GeoTIFF not
> Driver:netCDF/Network Common Data Format


You need to specify the output format using the '-of netCDF' option to
gdal_translate, the default output is GeoTIFF..

See http://www.remotesensing.org/gdal/gdal_translate.html &


More information about the gdal-dev mailing list