I have the satellite data files (2) which are available as satdat
and satdat.hdr
.
As per the answer provided here, I tried the following, but, it gave me an invalid header format error.
import imageio
from pathlib import Path
imageio.plugins.freeimage.download()
datapath = Path(r'./sat_data/')
filename = str(datapath / 'satdat.hdr') # I even tried not using this extension
im = imageio.imread(filename, format='HDR-FI')
print(im.shape)
I was expecting this to read the data into numpy arrays; rather it threw the error as invalid ENVI header file. Looking forward to any library to open this type of file, except OpenCV (due to certain constraints on the compute environment I am using.)