Pure Python reader of SST camera waveform files.
Project description
tio
Python Reader for sstcam-waveform/TargetIO waveform files, utilising fitsio and numba.
These files are FITS containing binary tables, which have been used as an intermediate format to store waveforms from the SST (Small-Sized Telescope) camera of CTAO (Cherenkov Telescope Array Observatory), and are generated by the sstcam-waveform or the TargetIO packages.
This package provides convenient read-only access to the waveform files, with support for both R0 (uncalibrated) and R1 (calibrated) data, as full-camera and single-module files. The reader is designed for efficient access to waveform data and event properties, with support for iterating through events in a file.
- Supported Python versions: 3.10+
- Supported platforms: Linux, OSX
- Source: https://gitlab.cta-observatory.org/cta-array-elements/sst/camera/analysis/tio
- License: BSD-3-Clause
Installation
This package is installable via pip from PyPI:
pip install sstcam-tio
This package is also installable via pip directly from this repository (via https or ssh), e.g.:
pip install 'git+https://gitlab.cta-observatory.org/cta-array-elements/sst/camera/analysis/tio.git'
Optional Dependencies
Utilisation of Intel's short vector math library (SVML) for improved performance provided by numba:
conda install intel-cmplr-lib-rt
Usage
from tio import Reader
import numpy as np
path = "path/to/file_r0.tio"
event_index = 2
with Reader(path) as reader:
# Read a single event
event = reader[event_index]
wfs = event.waveforms # Access waveforms
print(wfs.shape) # Shape: (n_pixel, n_samples)
first_cell_id = event.first_cell_id # Access event properties
# Iterate through file
for event in reader:
pass
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 Distribution
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 sstcam_tio-2.0.1.tar.gz.
File metadata
- Download URL: sstcam_tio-2.0.1.tar.gz
- Upload date:
- Size: 299.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf6d44f80e22249bd88debf8b0e23a9f4f739514f669f21e539ee9bca8364e79
|
|
| MD5 |
1491e62bcfc99b76e4926cff4494d4ad
|
|
| BLAKE2b-256 |
c88c7725d24aee7d463c2b403a6b31b35855cd3eb0534ab6f1a56f9338dea429
|
File details
Details for the file sstcam_tio-2.0.1-py3-none-any.whl.
File metadata
- Download URL: sstcam_tio-2.0.1-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98c8101473025a3aabeddd5e74c75dc04bfdd2f58de05058caf69e06846318e9
|
|
| MD5 |
f73f1b014f7e52601fc3d709de2be03a
|
|
| BLAKE2b-256 |
f9a6a1b801acee0a5eeb42b6d2c6067e19eba939a1506eb16703cbb05dddefad
|