[gdal-dev] HDF subdatasets
Nikos Alexandris
nikos.alexandris at felis.uni-freiburg.de
Wed Jan 23 14:04:45 EST 2008
Is the script below of any help on how to grep the names you require?
http://mpa.itc.it/markus/useful/modis_hdf2erdas_ll_wgs84.sh
On Wed, 2008-01-23 at 13:59 -0500, Bobby Braswell wrote:
> 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
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
--
Nikos Alexandris
.
Department of Remote Sensing & Landscape Information Systems
Faculty of Forestry & Environmental Sciences, Albert-Ludwigs-University Freiburg
.
Tel. +49 (0) 761 203 3697 / Fax. +49 (0) 761 203 3701 / Skype: Nikos.Alexandris
.
Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080123/07cf3dfa/attachment.bin
More information about the gdal-dev
mailing list