hispecdrp.primitives.bias_subtraction.bias_primitive
Functions
|
Subtract the bias from the ramps. |
|
Classes
|
Subtract the bias level from the input data. |
- class BiasSubtractionPrimitive(dataset=None, config=None, context=None, log_config=None, parent=None, **kwargs)[source]
Bases:
BasePrimitiveSubtract the bias level from the input data.
This is the base signal from which accumulated charges are measured. The bias voltage is to prevent negative values to be read given the unsigned nature of the values produced by the ADC. Bias subtraction is useful to set the y-intercept term of the UTR data close to 0.
This primitive applies the appropriate bias calibration to the input data product. The bias frame is subtracted from the science data, the associated uncertainties are propagated by adding errors in quadrature, and data quality (DQ) flags are combined using a bitwise OR.
- Parameters:
dataset (str or RampModel) – Input file path or data model to process. Currently, this is expected to be a raw (ramp) data product.
suffix (str or None, optional) – Suffix to append to the output filename. Default is
'biassub'.max_cores (int, optional) – Maximum number of CPU cores to use for parallel processing. Default is 1 (no parallelization).
- Calibrations:
bias (BiasModel) –
selector:
BiasSelector
- Returns:
output (DataModel) – Bias-subtracted data model with updated error and data quality arrays.