8000 JP-2331 Cube build footprint by jemorrison · Pull Request #6478 · spacetelescope/jwst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JP-2331 Cube build footprint #6478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ cube_build

- Fix a bug when creating internal_cal type cubes [#6398]

- Fix incorrect spatial footprint for single band MRS IFU cubes [#6478]

dark_current
----------

Expand Down
11 changes: 11 additions & 0 deletions jwst/cube_build/ifu_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,17 @@ def setup_ifucube_wcs(self):
world = False
if self.coord_system == 'skyalign':
world = True
# Do not use the default spatial or spectral region found in the wcs if
# 1. instrument is MIRI and
# 2. Output type is not multi and (not default calspec2) and
# 3. Channel is 1 or 3 - channel with smaller FOV on detector
if self.instrument == 'MIRI' and self.output_type != 'multi':
ch1 = '1'
ch3 = '3'
if ch1 in self.list_par1 or ch3 in self.list_par1:
spatial_found = False
spectral_found = False

if(spectral_found & spatial_found & world):
[lmin,lmax] = input_model.meta.wcsinfo.spectral_region
spatial_box = input_model.meta.wcsinfo.s_region
Expand Down
19 changes: 0 additions & 19 deletions jwst/fits_generator/tests/dotfile/._05181.prop

This file was deleted.

0