Bonsoir,
Je dois écrire un code python qui lit un fichier HDF.
J'ai trouver le module GDAL.
J'ai tenté ça :
from osgeo import gdal
gdal_dataset = gdal.Open ("/data/geospatial_10/ucfajlg/MOD12/MCD12Q1.A2005001.h17v03.005.2008310174635.hdf")
gdal_dataset.GetSubDatasets()
mais ça fonctionne pas, le message m'indique " AttributeError: 'NoneType' object has no attribute 'GetSubDatasets'"
Quelqu'un pourrait-il me débloquer ???
Julien
Partager