-
Notifications
You must be signed in to change notification settings - Fork 171
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-1694: fix outlier detection #5601
Changes from all commits
70157e4
90a76c5
b37dfb5
01ed074
4ac0ea2
70b4b38
a22b26f
b13e8c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,6 +215,11 @@ def apply_flat_field(science, flat, inverse=False): | |
# Combine the science and flat DQ arrays | ||
science.dq = np.bitwise_or(science.dq, flat_dq) | ||
|
||
# Find all pixels in the flat that have a DQ value of NON_SCIENCE | ||
# add the DO_NOT_USE flag to these pixels. We don't want to use these pixels | ||
# in futher steps | ||
flag_nonsci = np.bitwise_and(science.dq, dqflags.pixel['NON_SCIENCE']).astype(np.bool) | ||
science.dq[flag_nonsci] = np.bitwise_or(science.dq[flag_nonsci], dqflags.pixel['DO_NOT_USE']) | ||
Comment on lines
+218
to
+222
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding NON_SCIENCE doesn't seem to have any effect on the issue described in the ticket. I.e. in the dataset from the ticket, running So what is the purpose of this section of code? Currently the NON_SCIENCE area in MIRI data gets set to zero in the resampled |
||
|
||
# | ||
# The following functions are for NIRSpec spectrographic data. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit, but we like to keep the change entires in alphabetical order of step/pipeline name, so these should go below
cube_build
in the list.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I think I finally have the change log correct. I just edited it on GitHub
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, looks good to me now.