-
Notifications
You must be signed in to change notification settings - Fork 180
JP-3830: MRS residual cosmic ray shower straylight correction #9126
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
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ec3c12d
Initial version of MRS cosmic droplet cleanup
drlaw1558 5830e5e
Merge branch 'main' into JP-3830
drlaw1558 8c1d9f4
Merge branch 'main' into JP-3830
drlaw1558 f4c314f
Cleanup and doc updates
drlaw1558 3dc64e2
Change log
drlaw1558 615f445
PEP8
drlaw1558 a8c09c5
Fix some formatting
drlaw1558 a15815a
Merge branch 'main' into JP-3830
melanieclarke 5600f64
Merge branch 'main' into JP-3830
melanieclarke 31fb509
Add unit test
drlaw1558 dc18e7e
Pass proper dq array
drlaw1558 e76f8c5
Merge branch 'main' into JP-3830
drlaw1558 0c2264e
Update jwst/straylight/straylight.py
drlaw1558 e5eaeaa
Update jwst/straylight/straylight.py
drlaw1558 f3cf9a6
Update jwst/straylight/straylight.py
drlaw1558 bf5bd84
Various changes based on review
drlaw1558 875a008
Merge branch 'main' into JP-3830
melanieclarke 6e1274e
Update jwst/straylight/straylight.py
drlaw1558 d0d1a67
Update jwst/straylight/straylight_step.py
drlaw1558 bdd2a34
Merge branch 'main' into JP-3830
melanieclarke 8191748
typo
drlaw1558 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add an additional optional step to the MIRI MRS straylight correction code to measure and remove residual cosmic ray showers using information from the inter-slice pixels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,32 @@ | ||
| Step Arguments | ||
| ============== | ||
| The ``straylight`` step has no step-specific arguments. | ||
| The ``straylight`` step has the following optional arguments. | ||
|
|
||
| ``--clean_showers`` (boolean, default=False) | ||
| A flag to indicate whether to remove straylight due to residual cosmic | ||
| ray showers using pixels between the IFU slices. | ||
|
|
||
| ``--shower_plane`` (int, default=3) | ||
| Identifies the throughput plane to use from the MRS regions reference | ||
| files to identify between-slice pixels. Lower values identify pixels | ||
| with less science signal, but result in fewer (or no) pixels between | ||
| slices in some bands. | ||
|
|
||
| ``--shower_x_stddev`` (float, default=18) | ||
| Standard deviation to use for gaussian kernel convolution in the X | ||
| (between-slice) direction. Must be large enough to reach the middle | ||
| of the IFU slices. | ||
|
|
||
| ``--shower_y_stddev`` (float, default=5) | ||
| Standard deviation to use for gaussian kernel convolution in the Y | ||
| (along-slice) direction. | ||
|
|
||
| ``--shower_low_reject`` (float, default=0.1) | ||
| Percentile of low-valued pixels to reject when performing gaussian | ||
| kernel convolution. Important to ensure unmasked bad pixels do | ||
| not bias the kernel convolution. | ||
|
|
||
| ``--shower_high_reject`` (float, default=99.9) | ||
| Percentile of high-valued pixels to reject when performing gaussian | ||
| kernel convolution. Important to ensure unmasked bad pixels do | ||
| not bias the kernel convolution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.