https://github.com/dev-geof/root2hdf5
Lightweight ROOT to HDF5 file converter
https://github.com/dev-geof/root2hdf5
converter data-science hdf5 root-cern
Last synced: 4 months ago
JSON representation
Lightweight ROOT to HDF5 file converter
- Host: GitHub
- URL: https://github.com/dev-geof/root2hdf5
- Owner: dev-geof
- License: mit
- Created: 2024-01-20T15:49:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-04T09:03:23.000Z (about 2 years ago)
- Last Synced: 2025-12-16T10:16:57.494Z (6 months ago)
- Topics: converter, data-science, hdf5, root-cern
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lightweight ROOT to HDF5 File Converter
## Introduction
The `root2hdf5` tool provides a streamlined solution for converting CERN ROOT files into HDF5 format. This lightweight implementation specifically targets ROOT files containing `TTree` structures, seamlessly transforming them into organized HDF5 compound datasets.
## Getting the Code
To get started you can clone the `root2hdf5` repository from GitHub using the following command:
```bash
git clone https://github.com/dev-geof/root2hdf5.git
```
## Installation
To install `root2hdf5` and its dependencies you can use the following command:
```bash
python -m pip install -e . -r requirements.txt
```
Pre-built `root2hdf5` can also be installed from PyPI via:
```bash
pip install root2hdf5
```
## Usage
### Script Invocation
```bash
root2hdf5 -i input_root_file -o output_hdf5_file -t tree_name
```
### Parameters
- **input_root_file** (str): The name of the input ROOT file.
- **output_hdf5_file** (str): The name of the output HDF5 file.
- **tree_name** (str): The name of the ROOT tree to be processed.
## License
`root2hdf5` is distributed under the [MIT License](LICENSE), granting users the freedom to use, modify, and distribute the code. Contributions, bug reports, and suggestions for improvements are warmly welcomed.