[gdal-dev] HDF subdatasets
Bobby Braswell
rob.braswell at unh.edu
Wed Jan 23 13:59:24 EST 2008
Hi-
Is it possible to access the names of subdatasets in HDF4 files using
gdal-python? I can get the SDS names using gdalinfo, but would like
to do it from within my code.
For example the result of
D = gdal.Open('MCD43A4.A2002001.h18v01.005.2007115060137.hdf')
produces some dictionaries within D containing metadata information,
but I can't find the subdataset names anywhere, e.g.,
'HDF4_EOS:EOS_GRID:"MCD43A4.A2002001.h18v01.005.2007115060137.hdf":Nadir
_Reflectance_Band1'
Thanks very much,
Rob Braswell
More information about the gdal-dev
mailing list