From 6d094be88ee639b4fe9f869a0d5d4759c04627da Mon Sep 17 00:00:00 2001 From: mdlpstsci Date: Tue, 22 Aug 2023 06:35:24 -0400 Subject: [PATCH] Fix BIASCORR checking. (#591) --- pkg/wfc3/calwf3/wf3ccd/getflags.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkg/wfc3/calwf3/wf3ccd/getflags.c b/pkg/wfc3/calwf3/wf3ccd/getflags.c index 9e945017..b4fcec79 100644 --- a/pkg/wfc3/calwf3/wf3ccd/getflags.c +++ b/pkg/wfc3/calwf3/wf3ccd/getflags.c @@ -227,7 +227,17 @@ int *nsteps io: incremented if this step can be performed sprintf (MsgText, "A single threshold value will be used for full-well saturation flagging."); trlmessage(MsgText); } - } + /* + At the least BIASCORR is not set to PERFORM, so issue a message and set the scalar_satflag so + the 2D saturation image will not be used. + */ + } else { + wf3->scalar_satflag = True; + sprintf (MsgText, "BIASCORR is *NOT* set to PERFORM."); + trlmessage(MsgText); + sprintf (MsgText, "A single threshold value will be used for full-well saturation flagging.\n"); + trlmessage(MsgText); + } return (status); }