[gdal-dev] Reading Modis level1b HDF4 data

Martin Raspaud martin.raspaud at smhi.se
Fri Feb 26 07:15:37 EST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ivan,

Ivan skrev:
> Martin,
>> Try to use gdal.Open() on a subdataset and then call GetRasterBand(),
>> example:
> 
>> dataset =
>> gdal.Open('HDF4_EOS:EOS_SWATH:"/local_disk/data/satellite/terra/MOD021KM.A2005161.0920.005.2005161194747.hdf":MODIS_SWATH_Type_L1B:EV_1KM_RefSB')
> 
>> band = dataset.GetRasterBand(1)
> 
>> See http://gdal.org/frmt_hdf4.html for more details on HDF subdatasets.

Indeed, this was what I was missing !

I looks like I can retreive the data now...

Thanks a lot,
Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLh7tpAAoJEBdvyODiyJI4jBUIAIY/9/dNHc46LqK6la0PxQv1
MUqbi+3o/yKNwcI0insLDkdjZppScR5fD21oFwovMVIVZsPjXvE7f7FkMDqlz11q
1yhbPYFos+ykORZbM7bG8ou2l3gSXL9rlgETpW4WeKcYtycQM2JeKpiReWvCCqe3
mBZV+FxswOl0Xreb59qytgDyY0SUHXdWybnljn8kdos9J9sKcF6pd+iPl3hFEqVO
iSMcSfGU2o2lfRuRnSCWqmTE1cVB0xrTITTGGUGMPqpeJpsT5MAvA9ahZ3saa6hq
0UNtf08MVSBgqoqBpu00+Z+TRaqWDcQbe1+zDG/Y6iJWv37w4IImmlbTSEgM6LM=
=Q6rM
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: martin_raspaud.vcf
Type: text/x-vcard
Size: 259 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100226/9f9235d3/martin_raspaud.vcf


More information about the gdal-dev mailing list