Skip to content
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

JP-3243: Updates to jump detection for snowball/shower enhancements #174

Merged
merged 157 commits into from
Jun 27, 2023

Conversation

mwregan2
Copy link
Collaborator

@mwregan2 mwregan2 commented Jun 15, 2023

Resolves JP-3243

This PR primarily addresses the problem of the effect of brighter-fatter in large multi-int exposures. When there are enough integrations it switches to using the numpy sigmaclip routine to find outliers.
This PR also adds in support for determining the rate of both regular Cosmic Rays and snowbals/showers and adds the rates to the Fits header.

Checklist

  • added entry in CHANGES.rst (either in Bug Fixes or Changes to API)
  • updated relevant tests
  • updated relevant documentation
  • updated relevant milestone(s)
  • added relevant label(s)

Copy link
Collaborator

@kmacdonald-stsci kmacdonald-stsci left a comment

Choose a reason for hiding this comment

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

Aside from minor variable name changes, it looks good to me.

.gitignore Outdated Show resolved Hide resolved
src/stcal/jump/twopoint_difference.py Outdated Show resolved Hide resolved
src/stcal/jump/twopoint_difference.py Outdated Show resolved Hide resolved
src/stcal/jump/twopoint_difference.py Show resolved Hide resolved
CHANGES.rst Outdated Show resolved Hide resolved
CHANGES.rst Outdated Show resolved Hide resolved
src/stcal/jump/jump.py Show resolved Hide resolved
src/stcal/jump/jump.py Show resolved Hide resolved
src/stcal/jump/jump.py Outdated Show resolved Hide resolved
src/stcal/jump/twopoint_difference.py Show resolved Hide resolved
src/stcal/jump/twopoint_difference.py Outdated Show resolved Hide resolved
src/stcal/jump/twopoint_difference.py Show resolved Hide resolved
src/stcal/jump/twopoint_difference.py Outdated Show resolved Hide resolved
src/stcal/jump/twopoint_difference.py Outdated Show resolved Hide resolved
@hbushouse hbushouse changed the title Sigma clip JP-3243: Updates to jump detection for snowball/shower enhancements Jun 21, 2023
I added a loop over integrations that was missing due to the post CR flagging being done once for all ints.
Remove loop over integrations and use where to get integration.
Copy link
Collaborator

@hbushouse hbushouse left a comment

Choose a reason for hiding this comment

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

Still several questions and requests that need a response.

CHANGES.rst Outdated Show resolved Hide resolved
CHANGES.rst Outdated Show resolved Hide resolved
src/stcal/jump/jump.py Outdated Show resolved Hide resolved
src/stcal/jump/jump.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@hbushouse hbushouse left a comment

Choose a reason for hiding this comment

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

Latest updates look good and address the review comments. The one failing CI test is just due to the mismatch between this PR branch and jwst/master. That will be fixed once spacetelescope/jwst#7609 is merged.

Reserving final approval until the latest regtest run is finished and reviewed.

@hbushouse
Copy link
Collaborator

Final regtest results are at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/765/ . All differences are due to the inclusion of the 2 new keywords and a small number of expected differences in pixel and DQ values. So I think it looks good.

@hbushouse hbushouse merged commit 644392a into spacetelescope:main Jun 27, 2023
@braingram
Copy link
Collaborator

@ddavis-stsci Is this going to impact roman?

It looks like stcal.jump.jump.detect_jump now returns 5 values:

return gdq, pdq, total_primary_crs, number_extended_events, stddev

whereas the use in romancal expects 2 values:
https://github.com/spacetelescope/romancal/blob/7d5d5fd7e5ab86b2611b421ff42602df025120b6/romancal/jump/jump_step.py#L121

@ddavis-stsci
Copy link
Collaborator

ddavis-stsci commented Jun 27, 2023 via email

@hbushouse
Copy link
Collaborator

Is this high priority for a release?

Yes, semi-high. We want to get a jwst release out by the end of this week, and a PR we're waiting to merge in jwst depends on getting this stcal PR released as soon as possible.

@ddavis-stsci
Copy link
Collaborator

ddavis-stsci commented Jun 27, 2023 via email

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.

5 participants