Hello,
I came across the XArray and its functionalities and wanted to ticker around with NASA MODIS Climatic files in .hdf file format.
However, whenever I attempted to read the file, I ran into an error of
IOError: [Errno -51] NetCDF: Unknown file format: '/content/MYD03.A2002185.0000.061.2017362174430.hdf'
Note that I ran the program in various environments like :
1. Locally on my machine
2. On Google Colab
Moreover, still ran into the same error. I even tried changing the file extension to .h4 as per one of the post suggestion in this group about HDF files, still no luck.
Kindly provide me with some assistance on this issue.
xr.open_dataset('MYD03.A2002185.0000.061.2017362174430.h4', engine='pynio')
foo1 = xr.open_mfdataset('MYD03.A2002185.0000.061.2017362174430.hdf')
foo = xr.DataArray('MYD03.A2002185.0000.061.2017362174430.hdf')
Forgive me for my lack of knowledge since I am still new to this topic and subject.
When I use the netCDF python library and the Function Dataset, I get this as its output:**Please view the attached Jupyter Notebook for reference.
Kindly Help.