Open stscijgbot-jp opened 2 months ago
Would it be possible to include an ignore_region_min
and ignore_region_max
argument, similar to the residual fringe step in spec2 that zeroes out the relevant weights?
I'm not sure if the problem is that the 1D correction isn't actually a "step" at the moment with it's own parameters.
I am currently working on a target with bright emission lines in my data and this actually seems to negatively affect the efficacy of the fringe correction. Since I already exclude them in the spec2 residual fringe step, I would like to use the same exclusion for the spec3 extract1d step, if possible.
Issue JP-3692 was created on JIRA by David Law:
The MRS 1d residual fringe algorithm seems to have a failure case when one or two bright emission lines in a spectrum confuse the fringe finding routine.
Attached plot illustrates that there is only marginal difference between the regular (blue) and defringed (orange) spectra.
PR in progress that may fix this, but needs to be tested more extensively first.