SingleColorArrangement

class sofia_redux.scan.channels.camera.single_color_arrangement.SingleColorArrangement(name=None, parent=None, info=None, size=0)[source]

Bases: ColorArrangement

Expands upon the color arrangement channels by defining each pixel as a detector that receives only a single stream of data. For example, a gray scale camera, rather than a multi-wavelength receiver.

Initialize camera channels.

The Camera class extends the Channels class by including additional handling of the channels with respect to their field of view such as rotation with respect to a reference, correlated sky gradient modalities, and how to read and apply the hardware file containing channel data.

Parameters:
namestr, optional

The name for the channels.

parentobject, optional

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

infosofia_redux.scan.info.info.Info, optional

The channel information.

sizeint, optional

The number of stored channels.

Methods Summary

get_mapping_pixels([discard_flag, ...])

Return the mapping pixels.

get_pixel_count()

Return the number of pixels.

get_pixels()

Return the pixel data.

Methods Documentation

get_mapping_pixels(discard_flag=None, keep_flag=None, match_flag=None, name='mapping-pixels')[source]

Return the mapping pixels.

Parameters:
discard_flagint or str or ChannelFlagTypes
keep_flagint or str or ChannelFlagTypes
match_flagint or str or ChannelFlagTypes
namestr, optional

The name of the returned channel group. The default is ‘mapping-pixels’.

Returns:
ChannelGroup

The mapping channel group.

get_pixel_count()[source]

Return the number of pixels.

Returns:
int
get_pixels()[source]

Return the pixel data.

Returns:
ChannelData