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.
Return the science instrument pixel size
Initializes channel divisions.
Initializes channel modalities.
Load the channel data.
read_data
(hdul)Read and apply channel data from an HDU list.
Methods Documentation
- 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