Open stscijgbot-jp opened 2 weeks ago
I have a good idea how to fix this. I think it should be straight forward
Thanks Jeroen Bouwman . Clarifying, this is a clear bugfix that impacts MIRI TSO data that gets split into multiple segments, and has no effect on other kinds of observations.
Issue JP-3778 was created on JIRA by Jeroen Bouwman:
The RSCD step for MIRI data in the detector 1 pipeline flags the first few groups of the detector ramps as DO_NOT_USE. Only for the first integration not flagging should be done as the first integration has no RSCD effect. However, in case of segmented files, the RSCD step treats the first integration in each segmented file as if it was the real first integration. This means that every first integration of a segment does not get flagged causing a difference in the ramp fitting and thus a difference in the photometric signal. The RSCD step should follow the same procedure as is implemented in the dark_current step of the detector 1 pipeline for MIRI data and check if the first integration in a segmented file is the true fist integration or not by checking the INTSTART and INTEND keywords in the header.