_ROOT Version:6.08
_Platform:Ubuntu 16.10
_Compiler: root c/c++
Is there a software to convert HDF5 file to root file?
I used the software provided in this link:
A few months back there was a request in this forum for a tool that would convert HDF5 files to root format. I had to solve the problem myself, and I offer the solution to the following problem: convert a rank 1 HDF5 dataset of a compound HDF5 data type made of primitive types to a root tree.
The code follows. It handles only an HDF5 dataset right under “/”, but the limitation is easily removed (but I have’t done it).
// Giuseppe Vacanti (cosine science & computing bv)
// April 23, 2004
//
…
but I have problem with the HDF5 libraries (required).
Is there someone that know wich kind of library must be installed and how can be installed?
Many thanks in advance for your support,
Kind regards,
Daniele.
Pnine
June 25, 2019, 7:44pm
2
Hi Daniele,
it looks like the package is this one http://h5cpp.org/
What you can also do is
Dump the content as a CSV using python
Read back the csv and dump it to ROOT using RDataFrame
It seems that RDataFrame provides an easy way to dump columnar datasets in ROOT format via the Snapshot method.
Cheers,
P
1 Like
sbinet
June 26, 2019, 12:17pm
4
FYI, this was discussed a bit over there:
with the direct link to the hdf5->ROOT converter:
and the reverse:
hth,
-s
system
Closed
July 10, 2019, 12:17pm
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.