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

add the QUALITY header keyword to the primary header of reductions #125

Open
havok2063 opened this issue Jul 29, 2024 · 5 comments
Open
Labels
bug Something isn't working

Comments

@havok2063
Copy link
Collaborator

We have a QUALITY keyword that indicates whether an exposure is good or bad for reductions. It can take on three values, "excellent", "bad", or "test". Currently, this keyword is set, or looked up from hdrFix files, during the raw frame metadata curation. This keyword should be added to the primary header of the reductions and propagated down to all reduced files. It is currently missing and I think we want it. This keyword is different from the DRPQUAL keyword which tracks problems with the reductions.

@havok2063 havok2063 added the bug Something isn't working label Jul 29, 2024
@ndrory
Copy link
Contributor

ndrory commented Jul 30, 2024 via email

@havok2063
Copy link
Collaborator Author

Hi Niv,

I think the bitfield that tracks the reduction quality throughout the pipeline for a given exposure is the DRPQUAL header keyword. Alfredo started setting that up here, but it's not being used yet.

class QualityFlag(BaseBitmask):
.

I think we want a separate keyword to indicate holistically whether or not an exposure is good or bad, and should even be reduced at all. That is the QUALITY keyword. The pipeline skips reducing exposures with a bad QUALITY. I thought that is what Dmitry needed. I think we should avoid setting the DRPQUAL flag manually inside the hdrFix files.

I thought Dmitry was working on some separate QA code to flag an exposure as good or bad. But if he's working on the main pipeline QA, then he should just write his QA code into the pipeline and have it update the existing DRPQUAL keyword.

@ndrory
Copy link
Contributor

ndrory commented Jul 30, 2024 via email

@havok2063
Copy link
Collaborator Author

I've missed some meetings, so I don't know the full idea behind the intended workflow. Where is his QA pipeline intended to run and intersect with the main pipeline? Is the idea to perform some QA that informs the main DRP whether to reduce that exposure at all?

If you want to capture more information, then it's fine to make it a bitfield. If the intended workflow is that his scripts run at LCO, perform some QA, then update a hdrFix file with this final quality bitfield, and the pipeline uses this info to decide to reduce the exposure or not, then I think that should work. I don't see this working if it's intended to run at Utah after or during regular DRP reductions.

We could repurpose the QUALITY flag into this new QA bitfield. We would only need to make a few small changes to the existing pipeline. In any case, it should still be added to the primary header of the reduced files.

@ndrory
Copy link
Contributor

ndrory commented Jul 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants