Re: HDF attribute retrieval [message #55859] |
Tue, 18 September 2007 09:06 |
devin.white
Messages: 50 Registered: March 2007
|
Member |
|
|
One solution would be to use the MODIS Conversion Toolkit. However,
it does require that you have both ENVI and IDL. Here is a link to
where you can download it:
http://www.ittvis.com/codebank/search.asp?FID=485
It's batch accessible, so you can process a large number of files
using an IDL program. The output is ENVI format, though, so you'd
have to include an additional step in your program that converts the
output to GeoTIFF using ENVI_OUTPUT_TO_EXTERNAL_FORMAT.
On Sep 18, 4:06 am, leatherback <jelle.ferwe...@rmit.edu.au> wrote:
> Dear All,
>
> For the past 2 weeks I have been trying to find an automated way to
> get my MODIS MYD09A1 HDF images opened, retrieve some parameters, and
> spit out a geotiff for each grid in the file.
>
> I have gotten as far as retrieving the grid, and slumbering around
> writing the GeoTiff (Anybody got an easy routine to take a projection
> structure and use that in one step to create a geotiff tag?). But I am
> stumped on getting the metadata.
>
> When I use the HDF_SD_ATTRINFO command, all the global attribute are
> there, but the individual tags cannot be accessed: All data is just
> one big string of nested information. how do I go one level deeper,
> and get the actual tag => Value combinations out of this (e.g.:
> GRANULEBEGINNINGDATETIME value: ? Is there a way to retrieve a
> listing of all the tags available?
|
|
|