Skip to content

Commit

Permalink
JP-3745: Fixed SUBSTRIP96 flux drop (#8983)
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke authored Dec 13, 2024
2 parents 2e6ebc9 + f422e50 commit 67dee7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/8983.extract_1d.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Set order 2 weights to 1.0 for NIRISS SOSS SUBSTRIP96 data to avoid a spurious flux drop in spectra around 1.5um.
2 changes: 2 additions & 0 deletions jwst/extract_1d/soss_extract/soss_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,8 @@ def run_extract1d(input_model, pastasoss_ref_name,
# Pre-compute the weights for box extraction (used in modeling and extraction)
args = (ref_files, scidata_bkg.shape)
box_weights, wavelengths = compute_box_weights(*args, width=soss_kwargs['width'])
if subarray == 'SUBSTRIP96':
box_weights['Order 2'] = np.ones((96, 2048))

# Model the traces based on optics filter configuration (CLEAR or F277W)
if soss_filter == 'CLEAR' and generate_model:
Expand Down

0 comments on commit 67dee7c

Please sign in to comment.