Hello Team,
I want to copy few groups from one hdf5 file to hdf5 another file which is not yet created and this should be done inside the C++ code..can you please tell me how can i use this inside this tool
Hello Team,
I want to copy few groups from one hdf5 file to hdf5 another file which is not yet created and this should be done inside the C++ code..can you please tell me how can i use this inside this tool
Hey sandhya, this sounds like the perfect question for our next HDF Clinic. If you can make it, I reckon @steven will get you up and running in 10 min or your money back . If you can’t make it, you can watch the recording on the hdf5 YouTube channel. Deal? G.
On the next Gerd Heber’s HDF Clinic, Feb 23 13:00CT I will explore this problem by providing a fast implementation of random trees based on Prufer sequence – to generate the datasets we will be using for this exercise; then demonstrate the HDF5 C API interop feature of H5CPP to delegate tedious HDF5 handle management to simple/safe RAII idiom – a feature of H5CPP. Then use the H5O_visit(…) in a visitor pattern to traverse the specified input subgroup and H5O_copy(…) to the newly created or opened HDF5 container.
The presentation will be short, roughly 10mins , will provide the MIT licensed C++ code with GNU Makefiles and here is the outline:
The prerequisites:
LIBS=-lhdf5 -lz -ldl -lm
Post your questions here, or ask them in person on the event!
best wishes: steven
The few liner example code is uploaded to this github page, you can generate random dataset by downloading this project
And tomorrow, on Gerd Heber’s HDF Clinic I will go through the code
best wishes: steven
ocpy.cpp (4.0 KB)