clipimg¶
- sofia_redux.instruments.flitecam.clipimg.clipimg(hdul, datasec)[source]¶
Clip image to useful portion of the detector.
- Parameters:
- hdulfits.HDUList
Input data. Should have FLUX, ERROR, and BADMASK extensions.
- dataseclist or tuple
Data section to clip to, as [xmin, xmax, ymin, ymax].
- Returns:
- fits.HDUList
Clipped data, with all extensions updated.
- Raises:
- ValueError
If the data section is invalid or the input data has missing or invalid WCS keywords.