Skip to content

Commit

Permalink
include zero-valued pixels in diff calc
Browse files Browse the repository at this point in the history
  • Loading branch information
tapastro committed Oct 30, 2023
1 parent 1a68e35 commit ebb77a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwst/extract_1d/soss_extract/atoca_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def get_wv_map_bounds(wave_map, dispersion_axis=1):

# Compute the change in wavelength for valid cols
idx_valid = np.isfinite(wave_col)
idx_valid &= (wave_col > 0)
idx_valid &= (wave_col >= 0)
wv_col_valid = wave_col[idx_valid]
delta_wave = np.diff(wv_col_valid)

Expand Down

0 comments on commit ebb77a1

Please sign in to comment.