box_extract
- jwst.extract_1d.soss_extract.soss_boxextract.box_extract(scidata, scierr, scimask, box_weights)[source]
Perform a box extraction.
- Parameters:
- scidatandarray
2D array of science data with shape
(n_row, n_columns)- scierrndarray
2D array of uncertainty map with same shape as
scidata- scimaskndarray
2D boolean array of masked pixels with same shape as
scidata- box_weightsndarray
2D array of pre-computed weights for box extraction, with same shape as
scidata
- Returns:
- colsndarray
Indices of extracted columns
- fluxndarray
The flux in each column
- flux_varndarray
The variance of the flux in each column