acdc.utils.utils.get_psa_wca

get_psa_wca(segment, cenwave, lp, binning, pad_psa=[0, 0], pad_wca=[0, 0])[source]

Determine the rows that correspond to the PSA and WCA apertures for a given segment, cenwave, and lifetime position. Return the row indices in the binned superdark coordinate system.

Parameters:
  • segment (str) – Get PSA/WCA regions for this segment.

  • cenwave (str) – Get PSA/WCA regions for this cenwave.

  • lp (str) – Get PSA/WCA regions for this lifetime position.

  • binning (dict) – Dictionary that describes the binning information in both the spatial and PHA dimensions.

Returns:
  • excluded_rows (array) – List of rows to exclude. Corresponds to the PSA and WCA regions.

  • apertures (dict) – The excluded rows for each aperture, PSA and WCA.