superbit-collaboration / superbit-metacal

Contains a collection of routines used to perform gmix/metacalibration on simulated SuperBIT images
4 stars 0 forks source link

Dual Image Mode #143

Closed MayaAmit closed 3 months ago

MayaAmit commented 3 months ago

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.