Despite dual_image_mode being set to False in process_2023.py, the function make_dual_image_catalogs is being called every time this script is run (which we don't want). This especially becomes a problem when you don't run the b band of a given cluster first, because detection_bandpass – a parameter passed to make_dual_image_catalogs – is set to b in process_2023.py. Swarp is thus expecting to have received a coadd of the b band before any other band. Furthermore, we suspect that the swarp external headers are not being overwritten.
A new branch should and will be made where make_dual_image_catalogs is called on the condition that dual_image_mode is set to True, and where the external header is being deleted every time so that a fresh one is made with every run. This branch will be merged into process_2023.py once adequately tested.
Despite
dual_image_mode
being set toFalse
inprocess_2023.py
, the functionmake_dual_image_catalogs
is being called every time this script is run (which we don't want). This especially becomes a problem when you don't run theb
band of a given cluster first, becausedetection_bandpass
– a parameter passed tomake_dual_image_catalogs
– is set tob
inprocess_2023.py
.Swarp
is thus expecting to have received a coadd of theb
band before any other band. Furthermore, we suspect that theswarp
external headers are not being overwritten.A new branch should and will be made where
make_dual_image_catalogs
is called on the condition thatdual_image_mode
is set toTrue
, and where the external header is being deleted every time so that a fresh one is made with every run. This branch will be merged intoprocess_2023.py
once adequately tested.