I've been sent a CDF file from a user which was generated by some vendor
application, which appears to open correctly in HDFView but does not open
at all in libhdf5 or associated tools (h5ls, h5dump, etc). My understanding
is that this version of CDF is an H5 with particular structure so this
"should" be possible.
It seems to me the file is corrupted somehow, but I'm curious as to how
HDFView can extract some data from the file when libhdf5-based programs
can't even open it. Corruption is evident if you attempt to open a char
dataset, but the user wants to be able to extract particular datasets which
are viewable correctly in HDFView.
I'm using HDFView 3.0.0 and h5ls/h5dump from the v1.10.1 distro (Windows
10), which both return "unable to open file". The example file is at
The logic out there seems to be that "if HDFView can open it, it's a valid
HDF file" and therefore any HDF application should be able to process it -
or at least that there must be some way to extract the data.
Thanks for any assistance.