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

RAD-136 Add Slope and Error to Dark #323

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

PaulHuwe
Copy link
Collaborator

@PaulHuwe PaulHuwe commented Oct 10, 2023

Resolves RAD-136

Closes #318

This PR addresses adding slope and slope error to the dark reference file for use in the ramp fitting step.

Checklist

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

All modified lines are covered by tests ✅

📢 Thoughts on this report? Let us know!.

@PaulHuwe PaulHuwe marked this pull request as ready for review October 10, 2023 18:06
@PaulHuwe PaulHuwe requested review from WilliamJamieson and a team as code owners October 10, 2023 18:06
Copy link
Collaborator

@ddavis-stsci ddavis-stsci left a comment

Choose a reason for hiding this comment

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

LGTM

@PaulHuwe PaulHuwe merged commit 9726fe3 into spacetelescope:main Oct 10, 2023
11 checks passed
@PaulHuwe PaulHuwe deleted the RAD-136_DarkSlope branch October 10, 2023 18:49
@schlafly
Copy link
Collaborator

I think we also want to get rid of "err" as part of this PR. That's a 3D quantity that we're currently not using. I don't think we want both err and dark_slope_err.

@ddavis-stsci
Copy link
Collaborator

I thought the slope errors are just for the fitting. There are no other errors associated with this file?

@tddesjardins
Copy link

tddesjardins commented Oct 10, 2023

@schlafly is correct, we don't need both a dark_slope_err and err array. The error propagation in the end should look like:

total_var = var_rnoise + dark_slope_err + (dark_slope + f) x var_poisson

where f is the fitted slope in the science pixels. The dark reference file should have arrays for:

data (2-D, float32, units DN / sec)
dq (2-D, uint32)
dark_slope (2-D, float32, units DN / sec)
dark_slope_err (2-D, float32, units DN^2 / sec^2).

@PaulHuwe PaulHuwe linked an issue Oct 19, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Slope and Error to Dark Modify Dark Reference File
4 participants