SofiaDetectorArrayInfo

class sofia_redux.scan.custom.sofia.info.detector_array.SofiaDetectorArrayInfo[source]

Bases: InfoBase

Initialize the SOFIA detector array information.

Contains information on the generic detector array for SOFIA instruments. All SOFIA detectors are given a boresight index, a grid (type assigned from FITS header information), and pixel size information.

Attributes Summary

log_id

Return the string log ID for the info.

subarrays

Methods Summary

apply_configuration()

Update detector array information with FITS header information.

edit_header(header)

Edit an image header with available information.

get_table_entry(name)

Given a name, return the parameter stored in the information object.

Attributes Documentation

log_id

Return the string log ID for the info.

The log ID is used to extract certain information from table data.

Returns:
str
subarrays = 0

Methods Documentation

apply_configuration()[source]

Update detector array information with FITS header information.

Updates the detector information by taking the following keywords from the FITS header:

DETECTOR - The name of the detector (str)
DETSIZE - The size of the detector (str)
PIXSCAL - The pixel size on the sky (arcsec)
SUBARRNO - The number of subarrays (int)
SIBS_X - The position of the boresight in the x-direction (pixels)
SIBS_Y - The position of the boresight in the y-direction (pixels)
CTYPE1/CTYPE2 - If both are present, determines the grid (str)
Returns:
None
edit_header(header)[source]

Edit an image header with available information.

Parameters:
headerastropy.fits.Header

The FITS header to apply.

Returns:
None
get_table_entry(name)[source]

Given a name, return the parameter stored in the information object.

Note that names do not exactly match to attribute names.

Parameters:
namestr
Returns:
value