I work with the GRASS GIS project and haven’t been able to import and georeference Terra ASTER hdf files since gdal version 1.2.6. I recently compiled and installed the most recent 1.3.1 (as of last week) and it still produces errors (see below). As an update, I just tried r.in.gdal from GRASS 6.1 cvs and it will not import the ASTER files either. First it did not recognize the projection, so I set the override projection flag. Then it won’t recognize a band number or import all bands (default).
So, back to my original question, what has changed since 1.2.6 that keeps me from importing ASTER’s? Could this be fixed?
Thanks much
Michael Barton
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA
voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
On Thu, Nov 03, 2005 at 09:02:00AM -0700, Michael Barton wrote:
I tried to import Terra ASTER hdf files using the latest gdalwarp and my
r.in.aster script last week, after compiling the latest version (1.3.1) of
gdal. It still gives an error that gdal cannot read the projection info in
the ASTER hdf’s. This has been an issue since 1.2.7 (version 1.2.6 still
works fine on my Mac).I haven’t tried r.in.gdal, but suspect that I’d have similar problems
(please correct me if wrong!).Is there a fix or workaround to this? All ASTERs are in WGS84, UTM
projection (the zone varies of course).Michael
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USAvoice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbartonFrom: Hamish hamish_nospam@yahoo.com
Date: Thu, 3 Nov 2005 14:44:44 +1300
To: Jonathan Greenberg jgreenberg@arc.nasa.gov
Cc: GRASSLIST@baylor.edu
Subject: [GRASSLIST:8849] Re: HDF files?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 foundUse 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 Datasetor just “gdalinfo ” 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