szcf-weiya / techNotes

My notes about technology.
https://tech.hohoweiya.xyz/
11 stars 7 forks source link

cannot read mcds.hdf5 file by xarray in python #40

Closed Robert9799 closed 2 years ago

Robert9799 commented 2 years ago

The target file is downloaded from GSE132489 with the format of mcds.hdf5. The readme file introduces "The .mcds files are cell-by-feature raw count matrixes stored in an HDF5 based format (formal name is netCDF4)". After import Xarrat as xr, xr.open_dataset can be used to read mcds file. This is not exactly the same as '.mcds.hdf5'. If use the function to read the file, return the error: OSError: [Errno -101] NetCDF: HDF error: b'/lustre/project/Stat/s1155077016/BAG/GSE132489_10E-190625.mcds.hdf5'.