FifiLsChannels

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

Bases: SofiaCamera

Initialize FIFI-LS channels.

Parameters:
parentobject, optional

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

infoHawcPlusInfo, optional

The info object relating to these channels.

sizeint, optional

The intended size of the channels (number of total data channels).

namestr, optional

The name for the channels.

Attributes Summary

detector

Return the detector info.

pixel_sizes

Return the (x,y) pixel size.

Methods Summary

add_hdu(hdul, hdu, extname)

Add a FITS HDU to the HDUList.

calculate_overlaps([point_size])

Calculate channel overlaps.

copy()

Return a copy of the FIFI-LS channels.

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.

max_pixels()

Return the maximum pixels in the detector array.

read_data(hdul)

Read a FITS HDU list to populate channel data.

set_nominal_pixel_positions()

Set the channel pixel positions.

write_flat_field(filename[, include_nonlinear])

Write a flat field file used for chop-nod pipelines.

Attributes Documentation

detector

Return the detector info.

Returns:
FifiLsDetectorArrayInfo
pixel_sizes

Return the (x,y) pixel size.

Returns:
pixel_sizesCoordinate2D

The x, y pixel size in arc seconds.

Methods Documentation

add_hdu(hdul, hdu, extname)[source]

Add a FITS HDU to the HDUList.

Parameters:
hdulfits.HDUList

The HDUList to append to.

hdufits.ImageHDU or fits.PrimaryHDU or fits.BinTableHDU

The fits HDU to append.

extnamestr

The name of the HDU extension.

Returns:
None
calculate_overlaps(point_size=None)[source]

Calculate channel overlaps.

Parameters:
point_sizeCoordinate2D1, optional

The overlap point size (beam FWHM for example). The default is the instrument spatial and spectral resolution.

Returns:
None
copy()[source]

Return a copy of the FIFI-LS channels.

Returns:
FifiLsChannels
get_si_pixel_size()[source]

Return the science instrument pixel size

Returns:
x, yCoordinate2D

The (x, y) pixel sizes

init_divisions()[source]

Initializes channel divisions.

Divisions contain sets of channel groups.

The FIFI-LS channel adds divisions consisting of groups where each contains 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.

The FIFI-LS modalities simply contain additional correlated modes based on the additional channel fields. A new coupled modality is also created according to polarization arrays.

Returns:
None
load_channel_data()[source]

Load the channel data.

The channel data is read in directly from the HDU list, not a pixel file.

Returns:
None
max_pixels()[source]

Return the maximum pixels in the detector array.

Returns:
countint
read_data(hdul)[source]

Read a FITS HDU list to populate channel data.

Parameters:
hdulfits.HDUList
Returns:
None
set_nominal_pixel_positions()[source]

Set the channel pixel positions.

Returns:
None
write_flat_field(filename, include_nonlinear=False)[source]

Write a flat field file used for chop-nod pipelines.

Parameters:
filenamestr

The filename to write to.

include_nonlinearbool, optional

If True, include the nonlinear responses.

Returns:
None