Module azcam.tools.arc.tempcon_arc

Contains the TempConArc class.

Classes

class TempConArc (tool_id='tempcon', description=None)

Defines the ARC temperature control class. This is used for Gen1, Gen2, and Gen3 ARC controllers.

Creates the tool.

Args

tool_id
Name of tool
description
Description of tool, defaults to tool_id.

Ancestors

Instance variables

var description

Inherited from: TempCon.description

descriptive tool name

var enabled

Inherited from: TempCon.enabled

1 when tool is enabled

var initialized

Inherited from: TempCon.initialized

1 when tool has been initialized

var is_reset

Inherited from: TempCon.is_reset

1 when tool has been reset

var tool_id

Inherited from: TempCon.tool_id

name used to reference the tool ("controller", "display", …)

var verbosity

Inherited from: TempCon.verbosity

verbosity for debug, >0 is more verbose

Methods

def apply_corrections(self, temperature: float, temperature_id: int = 0) ‑> None

Inherited from: TempCon.apply_corrections

Correct the temperatures for offset and scale is temperature correction is enabled.

Args

temperature
temperatures to be corrected

def convert_counts_to_temp(self, calflag: int, counts: int) ‑> float

Convert counts (DN) to degrees Celsius. Uses Chebyechev polynomial.

:param calflag: calibration curve to use :param counts: value to convert

  • 0 => convert DT670 counts to degrees C
  • 1 => convert AD590 counts to degrees C
  • 2 => convert 1N4148 counts to degrees C
  • 3 => convert 1N914 counts to degrees C
def convert_temp_to_counts(self, calflag: int, temperature: float) ‑> float

Convert degrees Celsius to counts.

:param calflag: calibration flag to use :param temperature: temperature in C to convert

def define_keywords(self)

Inherited from: TempCon.define_keywords

Defines and resets instrument keywords.

def delete_keyword(self, keyword: str)

Inherited from: TempCon.delete_keyword

Delete a keyword.

Args

keyword
keyword
def exposure_finish(self) ‑> None

Inherited from: TempCon.exposure_finish

Custom commands after exposure finishes.

def exposure_start(self) ‑> None

Inherited from: TempCon.exposure_start

Custom commands before exposure starts.

def get_control_temperature(self, temperature_id: int = 0) ‑> float

Inherited from: TempCon.get_control_temperature

Get the control temperature (set point).

Args

temperature_id
temperature sensor identifier

Returns

control_temperature
control temperature
def get_keyword(self, keyword: str) ‑> List

Inherited from: TempCon.get_keyword

Read a temperature keyword value and returns it as [value, comment, type string]

Args

keyword
name of keyword

Returns

list of [keyword, …

def get_keywords(self) ‑> list

Inherited from: TempCon.get_keywords

Return a list of all keyword names.

Returns

keywords
list of all keywords
def get_temperature(self, temperature_id=0)

Read a utlity board temperature. TemperaureID's are: 0 => CAMTEMP 1 => DEWTEMP 2 => DIODETEMP

def get_temperatures(self) ‑> List[float]

Inherited from: TempCon.get_temperatures

Return all system temperatures.

Returns

temperatures
list of temperatures read
def initialize(self) ‑> None

Inherited from: TempCon.initialize

Initialize the tool.

def read_header(self) ‑> list

Inherited from: TempCon.read_header

Reads and returns current header data.

Returns

list of header lines
[Header[]]: Each element Header[i] contains the sublist (keyword, value, …
def reset(self) ‑> None

Inherited from: TempCon.reset

Reset tempcon tool.

def set_calibrations(self, cals: List[int]) ‑> None

Inherited from: TempCon.set_calibrations

Set calibration curves for temperature sensors. The values of these flags are from the list below which define the calibration curves to use for each …

def set_control_temperature(self, temperature=None, temperature_id=0)

Set controller/detector control temperature. Ignored if no utlity board is installed. Temperature is temperature to set in Celsius.

def set_corrections(self, temperature_offsets: List[float] = None, temperature_scales: List[float] = None) ‑> None

Inherited from: TempCon.set_corrections

Set temperature correction values and enable correction. If both parameters are None then correction is disabled.

Args

temperature_offsets
list …
def set_keyword(self, keyword: str, value: Any, comment: str = 'none', typestring: str = 'none')

Inherited from: TempCon.set_keyword

Set a keyword value, comment, and type.

Args

keyword
keyword
value
value of keyword
comment
comment string
typestring
one of …
def update_header(self)

Inherited from: TempCon.update_header

Update the header, reading current data. Deletes all keywords if the object is not enabled.