8000 JP-2153: Enable spectral order as input to WCS in NIRIS SOSS mode. by WilliamJamieson · Pull Request #6496 · spacetelescope/jwst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JP-2153: Enable spectral order as input to WCS in NIRIS SOSS mode. #6496

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

Conversation

WilliamJamieson
Copy link
Collaborator
@WilliamJamieson WilliamJamieson commented Dec 8, 2021

Resolves JP-2153

Description

This uses the new astropy compound bounding box in order to enable usage of spectral order as a direct input to the wcs in NIRIS SOSS mode.

Note this PR requires the changes from #6205 (so that it passes with the recent changes to gwcs) and spacetelescope/gwcs#375 (to enable the use of compound bounding boxes in gwcs).

Checklist

  • Tests
  • Documentation
  • Change log
  • Milestone
  • Label(s)

@WilliamJamieson WilliamJamieson requested a review from nden December 8, 2021 19:28
@WilliamJamieson WilliamJamieson force-pushed the feature/niriss_compound_bounding_box branch from 7c5d458 to 9db606f Compare December 8, 2021 19:30
@nden
Copy link
Collaborator
nden commented Dec 22, 2021

The CompoundBoundingBox changes are relased now in gwcs 0.18.0. This can be rebased and made into a PR.

@WilliamJamieson WilliamJamieson force-pushed the feature/niriss_compound_bounding_box branch from 9db606f to a949555 Compare January 3, 2022 16:53
@WilliamJamieson WilliamJamieson marked this pull request as ready for review January 3, 2022 16:53
@codecov
Copy link
codecov bot commented Jan 3, 2022

Codecov Report

Merging #6496 (444742a) into master (8fc5091) will decrease coverage by 0.08%.
The diff coverage is 18.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6496      +/-   ##
===========================
8000
===============
- Coverage   78.33%   78.24%   -0.09%     
==========================================
  Files         405      405              
  Lines       34620    34737     +117     
==========================================
+ Hits        27119    27180      +61     
- Misses       7501     7557      +56     
Flag Coverage Δ *Carryforward flag
nightly 78.31% <100.00%> (ø) Carriedforward from 8fc5091
unit 55.25% <18.75%> (-0.02%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
jwst/assign_wcs/niriss.py 67.27% <18.75%> (-11.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8fc5091...444742a. Read the comment docs.

elif order == 2:
return (tuple(2 * bbox_y), tuple(2 * bbox_x))
elif order == 3:
return (tuple(3 * bbox_y), tuple(3 * bbox_x))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently all orders have the same bbox, defined correctly under order=1. In the future we may want to change this but for now we'll use the entire subarray.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See changes in 444742a.

@nden nden added this to the Build 7.9 milestone Jan 5, 2022
@nden
Copy link
Collaborator
nden commented Jan 5, 2022

Needs a change log.

@WilliamJamieson WilliamJamieson force-pushed the feature/niriss_compound_bounding_box branch from a949555 to 6c3c413 Compare January 6, 2022 17:51
@nden nden merged commit aabc434 into spacetelescope:master Jan 6, 2022
@WilliamJamieson WilliamJamieson deleted the feature/niriss_compound_bounding_box branch January 6, 2022 21:38
stscieisenhamer pushed a commit to stscieisenhamer/jwst that referenced this pull request Jan 7, 2022
…pacetelescope#6496)

* Initial changes to enable complex bounding_box use

* Removed some prints

* Moved CompoundBoundingBox to gwcs

* Changes to enable compound bounding box for niriss

* Enabled order support for compound bounding box

* Added changelog and addressed review comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0