New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore overscan rows with large charge deposit detected in preceeding active CCD pixels #1720
Conversation
… active CCD pixels
Example (from issue desihub/desisurveyops#28 )
Other example (from issue desihub/desisurveyops#20 )
|
If you want another example case, P6 on tile 2838 (124474) looks like it got hit with this too. |
The current version of this PR does not fix that case, where the cosmic is farther from the overscan region. |
Because this algorithm is applied before dark subtraction, it is sensitive to unsubtracted dark current hot columns, e.g. it is triggered near the upper edge of z7D for most exposures on 20220221, and often z7C as well. I think that's harmless because only a few edge rows are impacted in this case. Other non z7D/z7C cases from that night for followup spot checking:
(the arrays are the raw data rows, not the preproc rows, and not the row-within-the-amp reported by the warning message...) That's a large enough number of cases from a single night that I'd like to check more nights spanning more time and CCD conditions, looking for (and hopefully not finding) runaway false-positives. |
Brain dump for followup before I forget: I scanned 1/3 of the exposures for Fuji, looking for runaway making cases with more than 20 rows masked. The following came up for closer inspection:
that's not very many out of ~850 exposures scanned. There certainly are cases that are flagging rows that had a nearby cosmic but didn't have a charge trail, but it seems relatively harmless since only a few rows are impacted (albeit in a way that introduces a bias-subtraction correlation with neighboring rows, though I think that is minor relative to other "features" in the data). |
All 3 of the cases with >20 rows masked turned out to be zcam saturation events anyway, i.e. I did not find any significant problems on any of the thousands of CCD frames scanned. Merging. |
This solves desihub/desisurveyops#28
This change to the preprocessing still needs to be validated on a larger set of exposures/cameras (including ones with noisy amps and large OSTEP values, and other instances of cosmics near the overscan region).