ExampleChannels

class sofia_redux.scan.custom.example.channels.channels.ExampleChannels(parent=None, info=None, size=0, name='example')[source]

Bases: SingleColorArrangement

Initialize channels for the example instrument.

Parameters:
parentobject, optional

The owner of the channels such as a Reduction, Scan or Integration.

infosofia_redux.scan.custom.example.info.info.ExampleInfo, optional

The information object from which to create the channels.

sizeint, optional

The number of channels to be stored.

namestr, optional

A name for the channels.

Methods Summary

copy()

Create and return a copy.

get_si_pixel_size()

Return the science instrument pixel size

init_divisions()

Initializes channel divisions.

init_modalities()

Initializes channel modalities.

load_channel_data()

Load the channel data.

read_data(hdul)

Read and apply channel data from an HDU list.

Methods Documentation

copy()[source]

Create and return a copy.

Returns:
ExampleChannels
get_si_pixel_size()[source]

Return the science instrument pixel size

Returns:
pixel_sizeCoordinate2D

The (x, y) pixel sizes

init_divisions()[source]

Initializes channel divisions.

Divisions contain sets of channel groups.

Each divisions is composed of channel groups where all channels in a group contain a unique value of a certain data field. For example, the “rows” division contains a group for row 1, a group for row 2, etc.

Returns:
None
init_modalities()[source]

Initializes channel modalities.

A modality is based of a channel division and contains a mode for each channel group in the channel division.

Here, we add mux and bias lines to the correlated modalities.

Returns:
None
load_channel_data()[source]

Load the channel data.

The pixel data and wiring data files should be defined in the configuration.

Returns:
None
read_data(hdul)[source]

Read and apply channel data from an HDU list.

Parameters:
hdulfits.HDUList
Returns:
None