AbstractCamera#

class msfc_ccd.abc.AbstractCamera[source]#

Bases: Printable

An interface describing a generalized camera.

Attributes

axis_tap_x

The name of the logical axis corresponding to changing horizontal tap.

axis_tap_y

The name of the logical axis corresponding to changing vertical tap.

gain

The conversion factor between electrons and ADC counts.

sensor

A model of the sensor used by this camera to capture light.

timedelta_exposure

The current exposure length.

Methods

__init__()

calibrate_temperature_adc_1(value)

Convert the ADC 1 temperature from counts to physical units.

calibrate_temperature_adc_234(value)

Convert the ADC 2, 3, or 4 temperature from counts to physical units.

calibrate_temperature_fpga(value)

Convert the FPGA temperature from counts to physical units.

calibrate_timedelta_exposure(value)

Convert the exposure time from counts to physical units.

calibrate_voltage_fpga(value)

Convert the FPGA voltage from counts to physical units.

dn_to_electrons(a)

Convert an array from DN to electrons by multiplying by gain.

to_string([prefix])

Public-facing version of the __repr__ method that allows for defining a prefix string, which can be used to calculate how much whitespace to add to the beginning of each line of the result.

Inheritance Diagram

Inheritance diagram of msfc_ccd.abc.AbstractCamera
classmethod calibrate_temperature_adc_1(value)[source]#

Convert the ADC 1 temperature from counts to physical units.

Parameters:

value (int) – The ADC 1 temperature in counts.

Return type:

Quantity

classmethod calibrate_temperature_adc_234(value)[source]#

Convert the ADC 2, 3, or 4 temperature from counts to physical units.

Parameters:

value (int) – The ADC 2, 3, or 4 temperature in counts.

Return type:

Quantity

classmethod calibrate_temperature_fpga(value)[source]#

Convert the FPGA temperature from counts to physical units.

Parameters:

value (int) – The FPGA temperature in counts.

Return type:

Quantity

classmethod calibrate_timedelta_exposure(value)[source]#

Convert the exposure time from counts to physical units.

Parameters:

value (int) – The exposure time in counts.

Return type:

Quantity

classmethod calibrate_voltage_fpga(value)[source]#

Convert the FPGA voltage from counts to physical units.

Parameters:

value (int) – The FPGA voltage in counts.

Return type:

Quantity

dn_to_electrons(a)[source]#

Convert an array from DN to electrons by multiplying by gain.

Parameters:

a (Quantity | AbstractArray)

Return type:

AbstractArray

to_string(prefix=None)#

Public-facing version of the __repr__ method that allows for defining a prefix string, which can be used to calculate how much whitespace to add to the beginning of each line of the result.

Parameters:

prefix (None | str) – an optional string, the length of which is used to calculate how much whitespace to add to the result.

Return type:

str

abstract property axis_tap_x: str#

The name of the logical axis corresponding to changing horizontal tap.

abstract property axis_tap_y: str#

The name of the logical axis corresponding to changing vertical tap.

abstract property gain: Quantity | AbstractScalar#

The conversion factor between electrons and ADC counts.

abstract property sensor: AbstractSensor#

A model of the sensor used by this camera to capture light.

abstract property timedelta_exposure: Quantity | AbstractScalar#

The current exposure length.