Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@gbrammer
Copy link
Owner

The function in grizli.prep.find_single_image_CRs enables masking of individual exposures in parts of the final mosaic where only a single exposure contributes. With the previous behavior, small clumps of pixels where N-1 exposures in an association of N exposures were flagged as CRs were then excluded from the final mosaic. For N=2, this results in many holes across the mosaic but where pixels should probably be acceptable, the primary intention of the mask function is to mask large parts of the mosaic only sampled by single exposures, e.g., around the edges of a dither pattern.

This update adds a parameter grizli.prep.find_single_image_CRs(erode_ctx_single=3) that performs a binary erosion / dilation on the single image mask derived from the context image to fill these holes.

An additional minor change treats the HST/ACS DQ=128 bit as valid, which further helps to fill gaps, especially in N=2 visits.

@gbrammer
Copy link
Owner Author

Also includes additional minor changes to message logging and removes some old large commented code blocks.

@gbrammer gbrammer merged commit c348055 into master Jun 24, 2025
17 checks passed
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