HDF attribute retrieval [message #55876] |
Tue, 18 September 2007 01:06 |
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: ? Is there a way to retrieve a
listing of all the tags available?
|
|
|