Eiger raw file to hdf5 converter
Project description
hdfmaker
Python package to convert PSI Eiger raw files to hdf5 with Bitshuffle+LZ4.
Command line tool
#Usage
raw2hdf5 /path/to/run_master_0.raw /output/path/
raw2hdf5 -h #show usage
Python API
WIP
Data processing
Limitations
The software assumes that files are written with padding in the receiver such that each frame is header+data and no size variation due to packet loss.
Image size
The tool reads raw files from disk and uses row, col information in the frame header in combination with the master fileto figure out the image size.
Gap pixels
-
Inter module gaps are by default set to 0, and marked as true in the pixel mask.
-
Large pixels on the chip borders are split in two (or four) with the counts split between pixels. In the case of an odd number of counts the extra count is randomly assigned to on of the pixels.
File format
- Nexus like hdf5 with Bitshuffle + LZ4
- Readable with Albula 4.x
Master file
The master holds in addition to the pixel mask only links to the data files
HDF5 "test1_0000.h5" {
FILE_CONTENTS {
group /
group /entry
group /entry/data
ext link /entry/data/data_000001 -> test/test1_0000_000000.h5 entry/data/data
group /entry/instrument
group /entry/instrument/data
group /entry/instrument/detector
group /entry/instrument/detector/detectorSpecific
dataset /entry/instrument/detector/detectorSpecific/pixel_mask
}
}
Data file
HDF5 "test1_0000_000000.h5" {
FILE_CONTENTS {
group /
group /entry
group /entry/data
dataset /entry/data/data
}
}
Dependencies
Compatibility
We aim to follow NEP 29 regarding supported Python and Numpy versions https://numpy.org/neps/nep-0029-deprecation_policy.html#nep29
At the moment this means:
- Python 3.9-3.11
- Numpy 1.22-1.24
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hdf5maker-2025.10.29.tar.gz.
File metadata
- Download URL: hdf5maker-2025.10.29.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e794c1aef80fa03feb4b9ff7f60279f744cbcf3007181e338a35d76722a0ae5
|
|
| MD5 |
1b730dcc51fca350ebbf22d021889220
|
|
| BLAKE2b-256 |
d554e1cde088571d795386d26af125adfbf4db56e1981c2dbab8a328ff519418
|
Provenance
The following attestation bundles were made for hdf5maker-2025.10.29.tar.gz:
Publisher:
build_wheel.yml on slsdetectorgroup/hdf5maker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hdf5maker-2025.10.29.tar.gz -
Subject digest:
2e794c1aef80fa03feb4b9ff7f60279f744cbcf3007181e338a35d76722a0ae5 - Sigstore transparency entry: 654096189
- Sigstore integration time:
-
Permalink:
slsdetectorgroup/hdf5maker@33df6507876b1be2ccb8462042c0294c57ee18e0 -
Branch / Tag:
refs/tags/v2025.10.29 - Owner: https://github.com/slsdetectorgroup
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@33df6507876b1be2ccb8462042c0294c57ee18e0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file hdf5maker-2025.10.29-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: hdf5maker-2025.10.29-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 39.4 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f5a4e4bbe7e4bb302cad82c6363cc448d8a1454949dad9c5d1364fdbc0a8547
|
|
| MD5 |
2b43b64d59eb6454f5953fe83b5825ea
|
|
| BLAKE2b-256 |
1b8e0b54e72742c4c595d70ff03b26db7b8e49840025ecead8813ba2cec1bf9a
|
Provenance
The following attestation bundles were made for hdf5maker-2025.10.29-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
build_wheel.yml on slsdetectorgroup/hdf5maker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hdf5maker-2025.10.29-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
7f5a4e4bbe7e4bb302cad82c6363cc448d8a1454949dad9c5d1364fdbc0a8547 - Sigstore transparency entry: 654096191
- Sigstore integration time:
-
Permalink:
slsdetectorgroup/hdf5maker@33df6507876b1be2ccb8462042c0294c57ee18e0 -
Branch / Tag:
refs/tags/v2025.10.29 - Owner: https://github.com/slsdetectorgroup
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@33df6507876b1be2ccb8462042c0294c57ee18e0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file hdf5maker-2025.10.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: hdf5maker-2025.10.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 39.6 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdf35f3b185d27a5a32290cd79fb2ea23b56f1dc3b59ebed1b2e12ebee28ec06
|
|
| MD5 |
34b60f4705e5a189ebcf640b007b1143
|
|
| BLAKE2b-256 |
27a54d1373987ce61365d8ca7fdc67054edfccaae611d5f852e3b527ef3a2f1a
|
Provenance
The following attestation bundles were made for hdf5maker-2025.10.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
build_wheel.yml on slsdetectorgroup/hdf5maker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hdf5maker-2025.10.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
cdf35f3b185d27a5a32290cd79fb2ea23b56f1dc3b59ebed1b2e12ebee28ec06 - Sigstore transparency entry: 654096194
- Sigstore integration time:
-
Permalink:
slsdetectorgroup/hdf5maker@33df6507876b1be2ccb8462042c0294c57ee18e0 -
Branch / Tag:
refs/tags/v2025.10.29 - Owner: https://github.com/slsdetectorgroup
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@33df6507876b1be2ccb8462042c0294c57ee18e0 -
Trigger Event:
release
-
Statement type: