In this PR we implement the stellar mode, which is a form of windowing of the detector so the readout time is reduced significantly. Now, data in stellar mode can be fully reduced, solving the issue #45. In this configuration, just half of the detector is used (centred in the middle of the CCD) and just 12 full slices.
Multiple scripts have been changed to address this mode. The general approach is as follows:
There is a validator at the beginning of most of the modules, called _is_halfframe() for triggering the half-frame logic (e.g. detector limits, slitlet index, etc...).
Throughout the multiple modules, when _is_halfframe()==True, we set nslits = 12, first = 7, and last = 19. We have re-write the functions according to this logic - before it was based on the total number of slitlets but now it is important to pick the right slitlets in the detector.
Can use calibration images taken in full-field mode by cutting down the calibration data to match the smaller stellar frame using calib_to_half_frame().
We set an extra step before the proper data reduction starts. Raw data are now copied into the data_products/intermediate/raw_data_temp/ directory. There, the images are pre-treated (e.g. cut down calibration frames to stellar mode size, when needed). These files are then removed when the pipeline completes.
In this PR we implement the stellar mode, which is a form of windowing of the detector so the readout time is reduced significantly. Now, data in stellar mode can be fully reduced, solving the issue #45. In this configuration, just half of the detector is used (centred in the middle of the CCD) and just 12 full slices. Multiple scripts have been changed to address this mode. The general approach is as follows:
_is_halfframe()
for triggering the half-frame logic (e.g. detector limits, slitlet index, etc...)._is_halfframe()==True
, we setnslits = 12
,first = 7
, andlast = 19
. We have re-write the functions according to this logic - before it was based on the total number of slitlets but now it is important to pick the right slitlets in the detector.calib_to_half_frame()
.data_products/intermediate/raw_data_temp/
directory. There, the images are pre-treated (e.g. cut down calibration frames to stellar mode size, when needed). These files are then removed when the pipeline completes.