OSError: Unable to open file (file signature not found)
I feel that the problem is .hdf file as I don't have .h5 or .hdf5 file. So how to I open .hdf in python?
OSError: Unable to open file (file signature not found)
I feel that the problem is .hdf file as I don't have .h5 or .hdf5 file. So how to I open .hdf in python?
You can check if the file is HDF4 format with this program:
https://www.hdfgroup.org/downloads/hdfview/
HDF4 files can be opened in python according to this tutorial:
https://hdfeos.org/software/pyhdf.php
from pyhdf.SD import SD, SDC
file_name = 'thefilename.hdf'
file = SD(file_name, SDC.READ)
print file.info()