H4 to h5 question

I am a rank beginner with h5. I issued the following command to convert a h4 file to a h5 file:

~/Downloads/HDF_Group/H4H5/2.2.5/bin/h4toh5convert /home/jerry/ecmwf/GMTED2010_15n060_0250deg.hdf

A new h5 file showed up about the same size as the h4 file, but hdfview does not show the tree structure of the new file (does work with h4 file).

Any help would be appreciated.

Jerry

HI, @hrhrbb !

Would you please share both .hdf and .h5 files?
You can use something like medaifire for file sharing if you can’t upload them on this forum due to file sizes.

GMTED2010_15n060_0250deg.hdf (2.0 MB)
GMTED2010_15n060_0250deg.hdf5 (2.0 MB)

Hi, @hrhrbb !

Thanks for sharing the files.

What do you mean by “hdfview does not show the tree structure of the new file (does work with h4 file).”?

I’m asking this because they both look identical to me from HDFView.
Please see the attached HDFView screenshot.

Hi Joe,

I am glad to see the h5 file looks OK, but the tree structure is still not showing up on my hdfview.
Any suggestions as what else I can try?

Jerry

Hi, @hrhrbb !

What do you mean by “tree structures”?
Do you see any tree structure in your HDFView for the original HDF4 file?
I’d appreciate if you can share your HDFView screenshot for the HDF4 file
after circling the tree structure that you’re seeing.

The list of groups and data files is called a tree structure because they are in descending order much like the linux file system and the roots of a tree. In this case there is a list of items like in both of your pictures for the hdf file but not the hdf5 file.

Jerry

Hi, @hrhrbb !

My HDFView picture is showing both the original HDF4 and the converted HDF5 file that you shared.

So, what’s the name of missing HDF4 dataset that you don’t see in the converted HDF5 file?

Joe,

When I try to list the items in the hdf5 nothing shows up? Possibly either a bug in my particular OS or an outdated hdfview?

Hi @hrhrbb , that’s possible. What’s your HDFView version?

Joe,

Hdfview 2.11

Jerry

Hi, Jerry (@hrhrbb) !

I tested HDFView 2.10.1 from HDFView HDF-EOS Plug-in.

I can open your HDF5 file on my Ubuntu / WSL.

Are you using HDFView 2.11 from # apt install hdfview?
It has a bug: #853750 - hdfview: HDF5 files appear empty - Debian Bug report logs.

You can try HDF Compass - # apt install hdf-compass and $ HDFComapss.

Joe,

Will give it a try. Seems you found the problem!
Thanks so much for your help!

Jerry

1 Like

Joe,

I tried hdrcompass and was able to see the items, but
it issues an error message when accessed. It seems like there is a considerable amount of questionable hdr type software around?

Jerry

Hi, Jerry!

I’m sorry to hear that you encountered an error message. Please submit your error here:

HDFGroup/hdf-compass: Python-based viewer for HDF5 on other file formats

Hi @hrhrbb ,

I’m surprised no one so far has suggested trying https://myhdf5.hdfgroup.org/. This is an HDF5 file viewer in the browser, so no need to apt install ... anything.

1 Like