Camera#
- class msfc_ccd.Camera(sensor=None, gain=None, bits_adc=16, timedelta_exposure=<Quantity 10. s>, timedelta_exposure_min=<Quantity 2. s>, timedelta_exposure_max=<Quantity 600. s>, timedelta_exposure_step=<Quantity 100. ms>, timedelta_transfer=<Quantity 50. ms>, timedelta_readout=<Quantity 1.1 s>, *, axis_tap_x='tap_x', axis_tap_y='tap_y')[source]#
Bases:
AbstractCameraA model of the cameras developed by the MSFC sounding rocket team.
This is a composition of a
msfc_ccd.abc.AbstractSensorobject and various parameters such as the exposure time etc. Also provided are some conversion equations between counts and physical units for various parameters such as the FPGA temperature, etc.Attributes
The name of the logical axis corresponding to changing horizontal tap.
The name of the logical axis corresponding to changing vertical tap.
The number of bits supported by the analog-to-digital converter
The conversion factor between electrons and DN.
A model of the sensor used by this camera to capture light.
The current exposure length.
The maximum exposure length supported by this camera
The minimum exposure length supported by this camera.
The smallest possible change in exposure length supported by this camera.
The time required to perform a readout operation.
The time required to transfer the exposed pixels into the storage region.
Methods
__init__([sensor, gain, bits_adc, ...])calibrate_temperature_adc_1(value)Convert the ADC 1 temperature from counts to physical units.
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.
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

- Parameters:
sensor (None | AbstractSensor)
gain (None | Quantity | AbstractScalar)
bits_adc (int)
timedelta_exposure (Quantity)
timedelta_exposure_min (Quantity)
timedelta_exposure_max (Quantity)
timedelta_exposure_step (Quantity)
timedelta_transfer (Quantity)
timedelta_readout (Quantity)
axis_tap_x (str)
axis_tap_y (str)
- classmethod calibrate_temperature_adc_1(value)#
Convert the ADC 1 temperature from counts to physical units.
- classmethod calibrate_temperature_adc_234(value)#
Convert the ADC 2, 3, or 4 temperature from counts to physical units.
- classmethod calibrate_temperature_fpga(value)#
Convert the FPGA temperature from counts to physical units.
- classmethod calibrate_timedelta_exposure(value)#
Convert the exposure time from counts to physical units.
- classmethod 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.- Parameters:
a (Quantity | AbstractArray)
- Return type:
- 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.
- gain: None | Quantity | AbstractScalar = None#
The conversion factor between electrons and DN.
This is usually tap-dependent and contains
axis_tap_xandaxis_tap_ydimensions.
- sensor: None | AbstractSensor = None#
A model of the sensor used by this camera to capture light.
If
None(the default),TeledyneCCD230will be used.
- timedelta_exposure_max: Quantity = <Quantity 600. s>#
The maximum exposure length supported by this camera
- timedelta_exposure_min: Quantity = <Quantity 2. s>#
The minimum exposure length supported by this camera.