[Gdal-dev] ASTER HDF Metadata problem

Frédéric Trastour support at geoimage.fr
Wed Jan 28 06:38:19 EST 2004


Hello,

I would like to use GDAL to extract all the medata from ASTER Level 1A HDF Files.

In this files, global metadata are stocked in attributes :
    'coremetadata.0',
    'productmetada.x', ( in my files x=0, 1)
    'productmetada.y', ( in my files y=0, 1, v, s, x)
    'structmetada.z'.    ( in my files z=0, 1)

GDAL attempts to interpret all of them and success execpt for 'structmetadata'.

The problem is the following : in my sample file structmetadata is divided in structmetadata.0 and
structmetadata.1 but it is brutal cut ( at the #32000 char) of an unique ODL content.

GDAL tries to parse these two attributes separately with HDFEOSParseStructMetadata and fails
because it should concat the content of these two attributes before parsing.

Am I right ?

If will try to modify ReadGlobalAttributes in order to properly  handle this case, but I don't know
if I have to do the same processing (ie concat attr.0 .. attr.n ) for all other attributes or not.

Any ideas would be greatly appreciated.

Best regards.

Frédéric.
_________________________________________________________________
Frédéric Trastour - SpacEyes - dev at spaceyes.fr





More information about the Gdal-dev mailing list