Skip to content

Incorporate weightmask (per-exposure weight maps + masks) before the second v2 run #970

Open

Description

@cailmdaley

Seb Fabbro has written astroai/weightmask, a package that builds a weight map and a mask for FITS exposures. In his words, it is "fairly classic" (unlike maximask):

  • tuned astroscrappy for cosmics
  • use flatfield image for proper inverse variance map, and masking bad columns and hot pixels
  • masked saturated (not just based on a falsly reported saturation levels but on pixel histograms)
  • streaks masking: using hough/radon and other transforms. this part is quite slow though and not as robust, but you can disable it.

Seb says it would be easy to run on individual UNIONS exposures, and he has offered to help set it up for ShapePipe on the DRAC clusters.

Goal: add weightmask to ShapePipe's per-exposure masking before the second ShapePipe v2 run. It won't make the first run. The two runs then give a tile/patch-level comparison of the current masks against weightmask.

The histogram-based saturation mask is relevant to #943 (saturated pixels reaching ngmix unflagged).

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions