Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2551 closed defect (invalid)

GDAL cannot convert into GMT grids; Ubuntu packages?

Reported by: dinkyd Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords: gmt
Cc: Mateusz Łoskot

Description (last modified by Mateusz Łoskot)

I'm trying to use gdal_translate to produce GMT grids. The problems I'm having look similar to those described by ticket num #1487

The command

gdal_translate -b 1 -of GMT test.tif test.grd

produces the error

Input file size is 1864, 1471
netcdf: 5 is not a valid cdfid

I am using kubuntu (Hardy) and have used the debian package installer to manage all the relevant packages.

I have tried removing all of the netcdf, gdal and hdf packages and starting again (simply installing the gdal-bin package) to see if this will resolve any dependencies, but without success. After removing everything and using apt-get install gdal-bin I have the following packages installed

libgdal1-1.5.0                             1.5.1-3
gdal-bin                                   1.5.1-3
libnetcdf4                                 1:3.6.2-2
libhdf4g                                   4.1r4-21
libhdf5-serial-1.6.5-0                     1.6.5-5.2build1

Any suggestions as to ways to proceed, gratefully received.

Change History (3)

comment:1 Changed 12 years ago by Even Rouault

Resolution: invalid
Status: newclosed

Here what you can do :

  • Uninstall everything again, and make sure that libhdf4g is well uninstalled.
  • Install only libnetcdf4 from apt-get
  • Compile GDAL from source.
  • If someone hasn't yet done it, open a bug to the Debian bugzilla so that they try to fix their build of libhdf4g to be compatible with libnetcdf4. You can mention http://trac.osgeo.org/gdal/wiki/HDF.

This issue comes back regularly. Last time was a few days ago : http://lists.osgeo.org/pipermail/gdal-dev/2008-August/018121.html

I close the ticket because, as you, I think that it's not a GDAL issue per se. If the above procedure doesn't solve your problem, please reopen.

comment:2 Changed 12 years ago by Mateusz Łoskot

Cc: Mateusz Łoskot added
Description: modified (diff)
Keywords: gmt added
Summary: GDAL cannot convert into GMT grids; Ubuntu packages????GDAL cannot convert into GMT grids; Ubuntu packages?

comment:3 Changed 12 years ago by dinkyd

Bug report submitted to the debian HDF package list as suggested above. The relevant bug track in the debian system is https://bugs.launchpad.net/ubuntu/+source/libhdf4/+bug/263497

Note: See TracTickets for help on using tickets.