[winGRASS] r.in.hdf

Markus Neteler neteler at itc.it
Sun Sep 8 06:26:18 EDT 2002


On Sun, Sep 08, 2002 at 01:41:18AM +0100, Glynn Clements wrote:
> 
> Jan Bartholdy wrote:
> 
> > I am running Wingrass on Windows NT 4.0 and Windows 2000 Advanced Server and
> > have the following problems:
> > 
> > 1) It is impossible to import *.hdf files (I got samples from the NASA
> > (MODIS Products). I got the message couldn't execte r.in.hdf. R.in.hdf doen
> > not exist in the folder /cygwin/usr/local/grass5 instead of r.in.tiff. The
> > same problem exist in the linux version.
> 
> r.in.hdf isn't compiled by default, and isn't included in the binary
> packages. I'm not sure whether the HDF stuff has been updated for 5.x.

Some month ago I have somewhat rewritten r.in.hdf.
It works now (but without geocoding and not very convenient).
Extra HDF/HDFEOS libraries are required to compile the code.

But I strongly recommend to use r.in.gdal with *latest* CVS
version from GDAL library (or wait for the next GDAL release).
GDAL now supports HDF with geocoding, I have tested ASTER and ASTERDEM.
MODIS reprojection is not possible with GDAL.

For MODIS the "Modis Reprojection Tool" (MRT) from NASA/USGS should
be used, otherwise there is no way to convert the MODIS ISIN projection
to something useful. It writes out (for example) GeoTIFF. Then r.in.gdal
will import the reprojected MODIS channels.

Some MODIS/ASTER examples are available at
http://mpa.itc.it/rs/
(done with MRT, GDAL and GRASS)

> Unfortunately, all of the manual pages and HTML files are installed,
> regardless of whether the actual executable is present. This tends to
> cause confusion, but couldn't easily be fixed, so it was left as-is
> for 5.0.0. Hopefully it will be fixed for 5.1.
agreed.

 Markus




More information about the grass-windows mailing list