exosim.tasks.detector.analogToDigital#

Classes#

AnalogToDigital

It converts the \(counts\) units of sub-exposures into \(adu\) units of NDRs.

Module Contents#

class AnalogToDigital[source]#

Bases: exosim.tasks.task.Task

It 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 dtype to represent the desired data type:

  • if the input number of bits is smaller than 16, a int16 data type is used,

  • if the input number of bits is smaller than 8, a int8 data type is used.

Otherwise, a int32 data 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:

Adu

execute()[source]#

Class execution. It runs on call and executes all the task actions returning the outputs. It requires the input with correct keywords