mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-12-17 02:21:29 +01:00
- Added function to read calibration file - Multi threaded pedestal subtraction and application of the calibration
9 lines
259 B
Python
9 lines
259 B
Python
|
|
from aare import apply_calibration
|
|
import numpy as np
|
|
raw = np.zeros((5,10,10), dtype=np.uint16)
|
|
pedestal = np.zeros((3,10,10), dtype=np.float32)
|
|
calibration = np.ones((3,10,10), dtype=np.float32)
|
|
calibrated = apply_calibration(raw, pedestal, calibration,)
|
|
|