[GRASSLIST:6259] Re: hdf and modis/aster

Trevor Wiens twiens at interbaun.com
Fri Mar 25 19:54:31 EST 2005


On Fri, 25 Mar 2005 14:14:58 -0800
"Ian W. Macmillan" <ian_macmillan at umail.ucsb.edu> wrote:

> Hi all, I am trying to import some MASTER data (combined MODIS and
> ASTER) that is an hdf4 file (it should have the same exact format as
> MODIS data).  After realizing that I need to import the subdatasets
> (which import fine into an XY location), I have run into a problem.  It
> seems that the data I want is in one subdataset, but the latitudes and
> longitudes are in separate subdatasets.  How can I import this so that
> the data I want is actually georeferenced?
> 
> I tried gdal_translate on a whim (gdal_translate -of GTiff -b 1
> subdataset myfile.tif), but I ended up with a geotiff that either gives
> me an error of "cellhd.proj = 0 (unreferenced)" or if r.in.gdal -o
> "G_set_window(): Illegal latitude for South".
> 
I've not imported hdf4 directly, but used the MODIS reprojection tool to tile and convert the data GeoTiff. Then importing it into GRASS was a breeze.

T
-- 
Trevor Wiens 
twiens at interbaun.com

The significant problems that we face cannot be solved at the same 
level of thinking we were at when we created them. 
(Albert Einstein)




More information about the grass-user mailing list