get_detsec¶
- sofia_redux.instruments.exes.utils.get_detsec(header_or_str)[source]¶
Parse the DETSEC keyword in a header or from a string.
DETSEC should be a string of the form “[xstart,xstop,ystart,ystop]” where each entry marks the beginning and end indices of a 2D. array (ny, nx).
- Parameters:
- header_or_strfits.Header or str
Either a header containing the DETSEC keyword/value or a string containing the value.
- Returns:
- xstart, xstop, ystart, ystopint, int, int, int
The start and stop indices marking an area of a 2D array.