The documentation on h5py is very good https://docs.h5py.org/en/stable/quick.html though I cannot see an example or way of achieving what I need to do..
I want to read an h5 file in, adjust it in some way and write the new file to a separate location without changing the original. Is this possible? The following option doesn't suit my use case as the files are in a workflow:
f = h5py.File('myfile.hdf5','r+')
Ideally I would do something like:
f = h5py.File('myfile.hdf5','r')
... do something to f
f.write('newfile.hdf5')
Any help appreciated!