thanks for your reply. I uploaded myfile.h5. In fact the command i used was meant as example.
More specific it is:
h5edit -c "MODIFY /Output/Model/HumanModel/Right/Leg/Mus/AdductorBrevisDistal1 Fm {0.111}; " myfile.h5
Hope the file is not too large (35MB).
thanks for your helpful informations.
I managed to modify/write the desired values to my h5-file with a small c application. I took the output from h5diff and used H5Dwrite to overwrite the datasets.
Thanks a lot,
(I Cc our help desk in case there is other information they can offer.)
At the moment, there are two tools, h5view and h5import, that may help your needs.
You can check to see if they may meet your needs.
Meanwhile, we are looking for funding to add more features to the h5edit tool.
If you know of any possible source, please let us know.
-Albert
On Oct 23, 2013, at 9:26 AM, Thomas Zander wrote:
Hi Albert,
oops, i know about the h5 format no longer than few days. I just wanted to change the 0.559344 to another value. Can't i use h5edit for this?
In fact this wish comes from another one: I want to have a h5 file which contains the difference of two other h5 files (the difference of all Fm values they contain). There are several hundred Fm values in the two h5 files as reported from h5diff. Their structures are identical. I wanted to use the output of the h5diff to create a script which changes the Fm values in a copy of one of the two h5 files with the help of h5edit. The h5 files are from another software which i can't modify.
Do you know another command line solution for this problem?
Thanks,
Thomas
On 23.10.2013 16:02, Albert Cheng wrote:
Hi Thomas,
I did an h5dump on the file.
I found /Output/Model/HumanModel/Right/Leg/Mus/AdductorBrevisDistal1/Fm as a dataset,
not as an attribute of a group or a dataset. H5edit currently edits attributes only.
It does not edit datasets yet.
Did you misunderstand what h5edit does or did I miss attribute "Fm"?
On Oct 23, 2013, at 12:49 AM, Thomas Zander wrote:
Hi Albert,
thanks for your reply. I uploaded myfile.h5. In fact the command i used was meant as example.
More specific it is:
h5edit -c "MODIFY /Output/Model/HumanModel/Right/Leg/Mus/AdductorBrevisDistal1 Fm {0.111}; " myfile.h5
Hope the file is not too large (35MB).