>2009/8/12 chen cui <[email protected]>: > 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
Hi, 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 & http://www.remotesensing.org/gdal/formats_list.html Cheers, Scott _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
