I am new to HDF5 format and I am also not hundred percent confident with Mathematica. I have googled to find out examples to deal with HDF5 files in Mathematica but couldn't find one that work out for me. What I would like to do is simply to import a .h5
file, print the dimension of all the subsets, choose one of them and plot it. After
In[1]:= Import["path/to/file.h5"]
Out[1]:= {"/AGB_CO", "/AGB_PY", "/AGE", "/AREA", "/AREA_SI", \
"/AVG_MONTHLY_WATERDEF", "/BALIVE", "/BALIVE_N_PY", "/BALIVE_PY", \
"/BASAL_AREA_PY", "/BA_CO", "/BDEAD", "/BDEAD_N_PY", "/BDEAD_PY", \
"/BLEAF", "/BROOT", "/BSAPWOODA", "/BSAPWOODA_N_PY", "/BSAPWOODA_PY", \
"/BSAPWOODB", "/BSAPWOODB_N_PY", "/BSAPWOODB_PY", "/BSEEDS_CO", \
...lots of other subsets...}
which shows all the subsets in the hdf5 file I am stuck. Thanks for any help.
elem
. Then trytest=Import["file.h5",elem1];Dimensions[test]
$\endgroup$ – Jason B. Nov 18 '15 at 10:44elem1 is not a valid format or element specification. Expecting a \ string, list, or integer
. Moreover I may not know which are the subsets in the file before Importing it. What I would need is a script that Import the file, shows all the imported data and plot it. $\endgroup$ – Manfredo Nov 18 '15 at 10:52Import["path/to/file.h5"]
$\endgroup$ – Jason B. Nov 18 '15 at 10:57