HawcPlusDetectorArrayInfo

class sofia_redux.scan.custom.hawc_plus.info.detector_array.HawcPlusDetectorArrayInfo[source]

Bases: SofiaDetectorArrayInfo

Initialize the HAWC+ detector array information.

Contains information specific to the HAWC+ detector array.

Attributes Summary

DARK_SQUID_ROW

FITS_CHANNELS

FITS_COLS

FITS_ROWS

JUMP_RANGE

MCE_BIAS_LINES

POL_ID

R0

R1

R_ARRAY

T0

T1

T_ARRAY

default_boresight_index

hwp_step

pixels

pol_array_pixels

pol_arrays

pol_cols

pol_subarrays

rows

subarray_cols

subarray_pixels

subarrays

Methods Summary

apply_configuration()

Apply the configuration to the detector array.

create_dark_squid_lookup(channels)

Store dark squid pixels (blind channels) in a lookup array.

get_sibs_position(sub, row, col)

Given a subarray, row, and column, return the pixel position.

get_subarray_id(subarray)

Return the subarray string ID.

initialize_channel_data(data)

Apply this information to create and populate the channel data.

load_detector_configuration()

Apply the configuration to set various parameters for the detector.

parse_configuration_hdu(hdu)

Parse the data from a configuration HDU and apply to the header data.

select_subarrays([specification])

Select the detector subarrays to be included in the detector array.

set_boresight()

Set the boresight index of the detector array.

set_hwp_header()

Set the HWP angle of the detector array.

Attributes Documentation

DARK_SQUID_ROW = 40
FITS_CHANNELS = 5248
FITS_COLS = 128
FITS_ROWS = 41
JUMP_RANGE = 128
MCE_BIAS_LINES = 20
POL_ID = ('R', 'T')
R0 = 0
R1 = 1
R_ARRAY = 0
T0 = 2
T1 = 3
T_ARRAY = 1
default_boresight_index = x=33.5 y=19.5 <sofia_redux.scan.coordinate_systems.coordinate_2d.Coordinate2D object>
hwp_step = <Quantity 0.25 deg>
pixels = 5248
pol_array_pixels = 2624
pol_arrays = 2
pol_cols = 64
pol_subarrays = 2
rows = 41
subarray_cols = 32
subarray_pixels = 1312
subarrays = 4

Methods Documentation

apply_configuration()[source]

Apply the configuration to the detector array.

Returns:
None
create_dark_squid_lookup(channels)[source]

Store dark squid pixels (blind channels) in a lookup array.

The lookup array is of the form lookup[sub, col] = fixed_index. Invalid values are marked with values of -1 (good pixels).

Parameters:
channelsHawcPlusChannels
Returns:
None
get_sibs_position(sub, row, col)[source]

Given a subarray, row, and column, return the pixel position.

The SIBS position are in tEl, tXel coordinates in units of the pixel_xy_size attribute.

Parameters:
subint or numpy.ndarray (int)

The detector subarray index.

rowint or float or numpy.ndarray (int or float)

The channel/pixel detector row.

colint or float or numpy.ndarray (int or float)

The channel/pixel detector column.

Returns:
positionCoordinate2D

The pixel (x, y) pixel positions.

get_subarray_id(subarray)[source]

Return the subarray string ID.

Parameters:
subarrayint
Returns:
str
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 subarray (index mod sub_cols)
- row: The row on the array (index div sub_cols)
- sub: The subarray index (index div sub_pixels)
- pol: The polarization index of the subarray (sub // 2)
- fits_row: The FITS row index (row mod detector_rows)
- fits_col: The FITS column index (sub * sub_cols) + col
- subrow: The row on the subarray (row mod detector_rows)
- mux: Multiplexer readout index (sub * sub_cols) + col
- bias_line: The SQUID detector bias index (row // 2)
- series_array: The second stage SQUID series array (mux // 4)
- fits_index: The index on the FITS file (fits_row * 128) + fits_row

Additionally, the channel string ID is set to:

<SubPolID>[<subrow>,<col>]

where subrow and col are described above and SubPolID may be one of {R0, R1, T0, R1} where R relates to sub=0 and T relates to sub=1, and the second character represents pol.

Parameters:
dataHawcPlusChannelData
Returns:
None
load_detector_configuration()[source]

Apply the configuration to set various parameters for the detector.

Returns:
None
parse_configuration_hdu(hdu)[source]

Parse the data from a configuration HDU and apply to the header data.

Parameters:
hdufits.BinTableHDU
Returns:
None
select_subarrays(specification=None)[source]

Select the detector subarrays to be included in the detector array.

Parameters:
specificationstr, optional

A string specifying which subarrays to select. If not supplied, will be extracted from the ‘subarray’ setting in the configuration.

Returns:
None
set_boresight()[source]

Set the boresight index of the detector array.

Returns:
None
set_hwp_header()[source]

Set the HWP angle of the detector array.

Note that the angle is stored as an integer value indicating the number of HWP steps.

Returns:
None