0
我想读取python中的hdf5图像(这是我第一次)。在hdfview中,我看到subdatasets
没有问题,但在Python中,我无法阅读它们。当我这样做:在python中读取hdf5时的空子数据集
f = gdal.Open(fileName, gdalconst.GA_ReadOnly)
sub = f.GetSubDatasets()[0][0]
它提供:
Traceback (most recent call last): File "", line 1, in sub=f.GetSubDatasets()[0][0]
IndexError: list index out of range
的它为什么发生任何想法?
你试过h5py? – MishaVacic