Skip to content

Commit

Permalink
JP-3790: apply aperture correction of residual fringe corrected data (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke authored Mar 10, 2025
2 parents 1951eb6 + 97db183 commit e659802
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/9260.extract_1d.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
For MIRI MRS data apply aperture correction to residual fringe corrected flux and surface brightness
13 changes: 12 additions & 1 deletion jwst/extract_1d/apply_apcorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,18 @@ def apply(self, spec_table):
spec_table : `~fits.FITS_rec`
Table of aperture corrections values from apcorr reference file.
"""
flux_cols_to_correct = ("flux", "flux_error", "surf_bright", "sb_error")
# check if MIRI data and correct the residual fringe flux and surface brightness columns.
if self.model.meta.instrument.name == "MIRI":
flux_cols_to_correct = (
"flux",
"flux_error",
"surf_bright",
"sb_error",
"rf_flux",
"rf_surf_bright",
)
else:
flux_cols_to_correct = ("flux", "flux_error", "surf_bright", "sb_error")
var_cols_to_correct = (
"flux_var_poisson",
"flux_var_rnoise",
Expand Down

0 comments on commit e659802

Please sign in to comment.