Apply calibration to Jungfrau raw data (#216)

- Added function to read calibration file
- Multi threaded pedestal subtraction and application of the calibration
This commit is contained in:
Erik Fröjdh
2025-07-18 10:19:14 +02:00
committed by GitHub
parent 1414d75320
commit abae2674a9
12 changed files with 236 additions and 87 deletions

View File

@@ -25,6 +25,7 @@ AARE
:maxdepth: 1
pyFile
pycalibration
pyCtbRawFile
pyClusterFile
pyClusterVector

View File

@@ -0,0 +1,24 @@
Calibration
==============
Functions for applying calibration to data.
.. code-block:: python
import aare
# Load calibration data for a single JF module (512x1024 pixels)
calibration = aare.load_calibration('path/to/calibration/file.bin')
raw_data = ... # Load your raw data here
pedestal = ... # Load your pedestal data here
# Apply calibration to raw data to convert from raw ADC values to keV
data = aare.apply_calibration(raw_data, pd=pedestal, cal=calibration)
.. py:currentmodule:: aare
.. autofunction:: apply_calibration
.. autofunction:: load_calibration