HDF object/tag retrieval [message #55875] |
Tue, 18 September 2007 01:08 |
leatherback
Messages: 15 Registered: November 2005
|
Junior Member |
|
|
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: 2002-07-3 07:53:22)?
Also: is there a way to retrieve a listing of all the tags available?
I am a bit confused by the way to access all these parameters, and the
IDL manual is not too useful on the topic.
Cheers,
Jelle.
|
|
|