I'd like to find the maximum value of every dataset in an hdf5 file.
Has anyone done this, perhaps with Python or C++?
Thanks,
Dave
I'd like to find the maximum value of every dataset in an hdf5 file.
Has anyone done this, perhaps with Python or C++?
Thanks,
Dave
Should be trivial in python; personally I use the h5py module for such things. Write a python function that recursively returns all dataset names as a /full/path/to/dataset (I can dig it out if you don't figure out how to do it yourself, cc me in that case). Finally, read out the arrays in a loop and call array.max() on each, put the results in a list, and call max() on the list.
Right?
Paul.
On 15. mars 2011, at 20.31, Dave Wade-Stein wrote:
I'd like to find the maximum value of every dataset in an hdf5 file.
Has anyone done this, perhaps with Python or C++?
Thanks,
Dave_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
Thanks, this is helpful. I'll give it a whirl.
Dave
On Mar 16, 2011, at 7:39 AM, Paul Anton Letnes wrote:
Should be trivial in python; personally I use the h5py module for such things. Write a python function that recursively returns all dataset names as a /full/path/to/dataset (I can dig it out if you don't figure out how to do it yourself, cc me in that case). Finally, read out the arrays in a loop and call array.max() on each, put the results in a list, and call max() on the list.
Right?
Paul.
On 15. mars 2011, at 20.31, Dave Wade-Stein wrote:
I'd like to find the maximum value of every dataset in an hdf5 file.
Has anyone done this, perhaps with Python or C++?
Thanks,
Dave