Skip to content

Conversation

mwittgen
Copy link
Contributor

@mwittgen mwittgen commented Oct 9, 2023

No description provided.

As the number of input visits increases, the number of pixels with the
INTRP mask bit set increases, which eventually leads to a very large
fraction pixels with this mask bit set.  Thus, if INTRP is included in
the list of masks to avoid when laying down sky objects, very deep
coadds will end up with little-to-no available locations for sky
objects, leading to a failure in the dynamic detection.  Thus, the
safest thing to do is leave it out of the masks to avoid list.
In the dynamic detection task, compute and log the number of "good"
pixels in the exposure, where "good" is defined simply as not having
either the NO_DATA or BAD mask bit set.  If this fraction is greater
than 20% of the total number of pixels, yet we still fail to locate
enough spots to lay down sky objects, raise an RuntimeError exception.
The message includes the fraction of the "good" pixels marked either
DETECTED or DETECTED_NEGATIVE as this is a likely reason for this
situation.
@mwittgen mwittgen requested a review from laurenam October 9, 2023 20:04
Copy link
Contributor

@laurenam laurenam left a comment

Choose a reason for hiding this comment

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

Thanks!

@mwittgen mwittgen merged commit 0e4bf82 into v26.0.x Oct 10, 2023
@mwittgen mwittgen deleted the tickets/DM-40186-v26 branch October 10, 2023 23:25
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.

2 participants