exosim.tasks.detector.analogToDigital#
Classes#
It converts the \(counts\) units of sub-exposures into \(adu\) units of NDRs. |
Module Contents#
- class AnalogToDigital[source]#
Bases:
exosim.tasks.task.TaskIt converts the \(counts\) units of sub-exposures into \(adu\) units of NDRs. The conversion is related to the user defined number of bits of the ADC. In the number of bits is not defined, 32 is the default value. This Task select the smallest
dtypeto represent the desired data type:if the input number of bits is smaller than 16, a
int16data type is used,if the input number of bits is smaller than 8, a
int8data type is used.
Otherwise, a
int32data type is used.The user should also specify the ADC gain factor to apply to the focal plane before the conversion.
Finally, the user should specify the rounding method to use to cast the float into integers. The ADC_round_method keyword indicates which method the ADC should use to cast the float into integers. Three options are available:
floor which uses
numpy.floor;ceil which uses
numpy.ceil;round which uses
numpy.round;
Default is floor.
- Returns:
sub-exposures converted into NDRs \(adu\) units
- Return type: