FifiLsDetectorArrayInfo

class sofia_redux.scan.custom.fifi_ls.info.detector_array.FifiLsDetectorArrayInfo[source]

Bases: SofiaDetectorArrayInfo

Initialize the FIFI-LS detector array information.

Contains information specific to the FIFI-LS detector array.

Attributes Summary

center_spaxel

ch

Return the single letter representation of the channel.

default_boresight_offset

int_date

Return the observation date as an integer of the form YYYYMMDD

n_spaxel

n_spexel

pixel_indices

pixels

spaxel_cols

spaxel_indices

spaxel_rows

spexel_indices

tel_sim_to_detector

Methods Summary

apply_configuration()

Update detector array information with FITS header information.

calculate_delta_coefficients()

Used to derive offsets of the telescope boresight from the instrument.

calculate_pixel_offsets()

Calculate the pixel offsets on the detector in arcseconds.

detector_coordinates_to_equatorial(coordinates)

Convert detector coordinates to equatorial coordinates.

detector_coordinates_to_equatorial_offsets(...)

Convert detector coordinates to equatorial offsets.

edit_header(header)

Edit an image header with available information.

equatorial_offsets_to_detector_coordinates(offsets)

Convert equatorial offsets to detector coordinates.

equatorial_to_detector_coordinates(equatorial)

Convert equatorial coordinates to detector coordinates.

find_pixel_positions(detector_xy)

Calculate the pixel positions based on inputs.

get_boresight_equatorial(xs, ys)

Get the boresight equatorial trajectory given input detector coordinates.

get_boresight_trajectory(xs, ys)

Given x and y FIFI-LS coordinates, return the boresight trajectory.

initialize_channel_data(data)

Apply this information to create and populate the channel data.

set_boresight()

Set the boresight index of the detector array.

Attributes Documentation

center_spaxel = 12
ch

Return the single letter representation of the channel.

Returns:
str
default_boresight_offset = x=0.0 arcsec y=0.0 arcsec <sofia_redux.scan.coordinate_systems.coordinate_2d.Coordinate2D object>
int_date

Return the observation date as an integer of the form YYYYMMDD

Returns:
int
n_spaxel = 25
n_spexel = 16
pixel_indices = array([  0,   1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11,  12,         13,  14,  15,  16,  17,  18,  19,  20,  21,  22,  23,  24,  25,         26,  27,  28,  29,  30,  31,  32,  33,  34,  35,  36,  37,  38,         39,  40,  41,  42,  43,  44,  45,  46,  47,  48,  49,  50,  51,         52,  53,  54,  55,  56,  57,  58,  59,  60,  61,  62,  63,  64,         65,  66,  67,  68,  69,  70,  71,  72,  73,  74,  75,  76,  77,         78,  79,  80,  81,  82,  83,  84,  85,  86,  87,  88,  89,  90,         91,  92,  93,  94,  95,  96,  97,  98,  99, 100, 101, 102, 103,        104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,        117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129,        130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142,        143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,        156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,        169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,        182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,        195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207,        208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,        221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233,        234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246,        247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,        260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272,        273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285,        286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298,        299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311,        312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,        325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,        338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350,        351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363,        364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376,        377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389,        390, 391, 392, 393, 394, 395, 396, 397, 398, 399])
pixels = 400
spaxel_cols = 5
spaxel_indices = array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16,        17, 18, 19, 20, 21, 22, 23, 24,  0,  1,  2,  3,  4,  5,  6,  7,  8,         9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,  0,         1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17,        18, 19, 20, 21, 22, 23, 24,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9,        10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,  0,  1,         2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17, 18,        19, 20, 21, 22, 23, 24,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10,        11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,  0,  1,  2,         3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,        20, 21, 22, 23, 24,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11,        12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,  0,  1,  2,  3,         4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,        21, 22, 23, 24,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12,        13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,  0,  1,  2,  3,  4,         5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,        22, 23, 24,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13,        14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,  0,  1,  2,  3,  4,  5,         6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,        23, 24,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14,        15, 16, 17, 18, 19, 20, 21, 22, 23, 24,  0,  1,  2,  3,  4,  5,  6,         7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,        24,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15,        16, 17, 18, 19, 20, 21, 22, 23, 24])
spaxel_rows = 5
spexel_indices = array([ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,         0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,  1,  1,  1,         1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  2,         2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,         2,  2,  2,  2,  2,  2,  2,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,         3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  4,  4,         4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,         4,  4,  4,  4,  4,  4,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,         5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  6,  6,  6,         6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,         6,  6,  6,  6,  6,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,         7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  8,  8,  8,  8,         8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,         8,  8,  8,  8,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,         9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9, 10, 10, 10, 10, 10,        10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,        10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,        11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12,        12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,        12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,        13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14,        14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,        14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,        15, 15, 15, 15, 15, 15, 15, 15, 15])
tel_sim_to_detector = 0.842

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:

stuff
Returns:
None
calculate_delta_coefficients()[source]

Used to derive offsets of the telescope boresight from the instrument.

Returns:
None
calculate_pixel_offsets()[source]

Calculate the pixel offsets on the detector in arcseconds.

Returns:
None
detector_coordinates_to_equatorial(coordinates)[source]

Convert detector coordinates to equatorial coordinates.

Parameters:
coordinatesCoordinate2D
Returns:
equatorialEquatorialCoordinates
detector_coordinates_to_equatorial_offsets(coordinates)[source]

Convert detector coordinates to equatorial offsets.

Parameters:
coordinatesCoordinate2D
Returns:
equatorial_offsetsCoordinate2D
edit_header(header)[source]

Edit an image header with available information.

Parameters:
headerastropy.fits.Header

The FITS header to apply.

Returns:
None
equatorial_offsets_to_detector_coordinates(offsets)[source]

Convert equatorial offsets to detector coordinates.

Parameters:
offsetsCoordinate2D
Returns:
detector_coordinatesCoordinate2D
equatorial_to_detector_coordinates(equatorial)[source]

Convert equatorial coordinates to detector coordinates.

Parameters:
equatorialEquatorialCoordinates
Returns:
detector_coordinatesCoordinate2D
find_pixel_positions(detector_xy)[source]

Calculate the pixel positions based on inputs.

Parameters:
detector_xyCoordinate2D

The raw XY detector coordinates of shape (n, n_pixels) or (n, n_spexels, n_spaxels).

Returns:
pixel_positionsCoordinate2D
get_boresight_equatorial(xs, ys)[source]

Get the boresight equatorial trajectory given input detector coordinates.

Parameters:
xsunits.Quantity

The x-coordinates of shape (n, n_pixels)

ysunits.Quantity

The y-coordinates of shape (n, n_pixels)

Returns:
boresight_equatorialEquatorialCoordinates
get_boresight_trajectory(xs, ys)[source]

Given x and y FIFI-LS coordinates, return the boresight trajectory.

Parameters:
xsunits.Quantity

The x-coordinates of shape (n, n_pixels), (n_pixels,), (n_spexels, n_spaxels) or (n, n_spexels, n_spaxels)

ysunits.Quantity

The y-coordinates of shape (n, n_pixels)

Returns:
detector_offsetsCoordinate2D
initialize_channel_data(data)[source]

Apply this information to create and populate the channel data.

The following attributes are determined from the detector:

- col: The column on the array
- row: The row on the array
- spexel: The spexel index
- spaxel: The spaxel index
- position: The spaxel offset on the array (arcseconds)
- wavelength : The spexel wavelength (um). Set to NaN.

Additionally, the channel string ID is set to:

<CHANNEL>[<spexel>,<spaxel>]

where spexel and spaxel are described above and CHANNEL may be one of {B, R} for the RED and BLUE channels respectively.

Parameters:
dataFifiLsChannelData
Returns:
None
set_boresight()[source]

Set the boresight index of the detector array.

Returns:
None