Error in reading hdf file using h5py package for python
问题 I want to extract data from hdf files that I downloaded from MODIS website. A sample file is provided in the link. I am reading the hdf file by using the following lines of code: >>> import h5py >>> f = h5py.File( 'MYD08_M3.A2002182.051.2008334061251.psgscs_000500751197.hdf', 'r' ) The error I am getting: Traceback (most recent call last): File "<pyshell#3>", line 1, in <module> f = h5py.File( 'MYD08_M3.A2002182.051.2008334061251.psgscs_000500751197.hdf', 'r' ) File "C:\Python27\lib\site