[Gdal-dev] gdal_translate problem converting to netcdf

Florian Wobbe floh at restlaufzeit.de
Mon Aug 21 05:22:07 EDT 2006


Hello list,

I've got problems converting to netcdf with GDAL 1.2.6.0, released
2005/03/13. The package gdal-bin (1.2.6-1) was installed from the
stable debian distibution and depends on netcdfg3 (3.5.0-7.1).

gdal_translate complains about invalid cdfid:

 gdal_translate -b 1 -ot Int16 -of GMT test.pix test.grd
 Input file size is 1963, 1188
 netcdf: 3 is not a valid cdfid

Whereas GDAL 1.3.2.0, FWTools 1.0.5, released 2006/07/06 functions
without any problems:

 ~/bin/FWTools-1.0.5/bin_safe/gdal_translate -b 1 -ot Int16 -of GMT
test.pix test.grd
 Input file size is 1963, 1188

 grdinfo test.grd
 test.grd: Normal node registration used
 test.grd: grdfile format # 0
 test.grd: x_min: 476136 x_max: 484453 x_inc: 4.237 units: meters
nx: 1963
 test.grd: y_min: 2.28557e+06 y_max: 2.29061e+06 y_inc: 4.237 units:
meters ny: 1188
 test.grd: z_min: 0 z_max: 255 units: meters
 test.grd: scale_factor: 1 add_offset: 0

Regards,
Florian




More information about the Gdal-dev mailing list