I'm concerned by the kind of flagging happening in this line:
|
flagarray = (partial_sat * dnu).astype(np.uint32) |
I understand what is happening to be:
- saturated resultants are flagged as saturated, but not as do not use
- partially saturated resultants (i.e., some of the reads are saturated, others aren't) are flagged as DO_NOT_USE, but not as SATURATED.
I think the pipeline should be flagging both of these as SATURATED and neither of them as DO_NOT_USE. Do people feel differently?
For pixels we've talked about having special behavior surrounding partially saturated ramps:
- all groups saturated -> DO_NOT_USE & SATURATED
- some but not all groups saturated -> SATURATED, not DO_NOT_USE
which I'm partial to, but I don't think is relevant here.
I'm concerned by the kind of flagging happening in this line:
stcal/src/stcal/saturation/saturation.py
Line 176 in f7c6d19
I understand what is happening to be:
I think the pipeline should be flagging both of these as SATURATED and neither of them as DO_NOT_USE. Do people feel differently?
For pixels we've talked about having special behavior surrounding partially saturated ramps:
which I'm partial to, but I don't think is relevant here.