Ticket #1487 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

GDAL cannot convert into GMT grids

Reported by: josegomez@… Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.4.0
Severity: normal Keywords:
Cc: josegomez@…

Description (last modified by warmerdam) (diff)

Cannot convert other grid formats into GMT using gdal_translate on Linux/i386.

gdal_translate -of GMT test.tif testOut.grd
Input file size is 1347, 1032
netcdf: 3 is not a valid cdfid

Versions: GDAL 1.4.0 (Linux), with HDF4 (libhdf4 (4.1r4-18.1ubuntu1) support and NetCDF 3.6.1) compiled in (these are both Kubuntu Breezy packages).

"on Frank's Ubuntu system using the packaged libnetcdf" :)

Change History

Changed 6 years ago by warmerdam

  • priority changed from highest to normal
  • status changed from new to assigned
  • description modified (diff)
  • severity changed from blocker to normal

Changed 6 years ago by warmerdam

  • status changed from assigned to closed
  • resolution set to fixed

I have established this is due to the system HDF4 libraries including the NetCDF API, and this interfering with proper operation of the netcdf library. The solution is to configure without hdf4 support, or to uninstall the HDF4 libraries, and build and install them from the HDF4.2r1 source code with the HAVE_NETCDF macro defined.

I have added details in the HDF and NetCDF wiki topics to help people in the future.

Note: See TracTickets for help on using tickets.