[GRASSLIST:8849] Re: HDF files?

Hamish hamish_nospam at yahoo.com
Wed Nov 2 20:44:44 EST 2005


> Is there any way to get HDF files into GRASS?  I saw there is an
> r.in.hdf command, but Grass 6.0.1 on MacOS X is throwing and error
> when I try it: command not found

Use r.in.gdal, but GDAL must be built using the --with-hdf4 switch.

http://www.remotesensing.org/gdal/frmt_hdf4.html

try "gdal_translate --formats" and check for:

  HDF4 (ro): Hierarchical Data Format Release 4
  HDF4Image (rw+): HDF4 Dataset


or just "gdalinfo <dataset>" and see if it understands the file(s).


"r.in.gdal -f in=dummy out=dummy" will also list supported GDAL formats.
(often there will be about 50 of them)



Hamish




More information about the grass-user mailing list