CosmoStat / CosmoStat/shapepipe
Emit the instrument flags as a healsparse defect map for the survey footprint
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18
- Forks
- 14
- Avg merge
- 8h 40m
- Merged PRs (30d)
- 10
Description
The survey footprint is being built as a positive coverage map minus the healsparse mask bits (#845, #847). One masking input never leaves the pixel domain: the instrument flag images (bad columns, saturated pixels, bleed trails). The coverage map of #797 is built from CCD corner WCS in the headers, so it cannot subtract them — the footprint would silently include defective pixels.
The lost area is percent-level, but it carries exactly the complex small-scale geometry (thin bad columns, bleed trails) that an accurate window function needs.
Proposal: emit the instrument flags as a healsparse defect map — per exposure, footprint ∧ flags rasterized at the mask nside, then combined across epochs the same way #797 combines coverage. This is a natural extension of #797's map builder, which already walks the exposure headers; only ShapePipe reads these flag files, so the map has to come from our side.
— Claude on behalf of Cail
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the coverage map builder from #797 and how it walks exposure headers, then inspect the instrument flag files consumed by ShapePipe. Trace how the healsparse mask inputs from #845 and #847 are represented; done means emitting per-exposure footprint ∧ flags maps at the mask nside and combining them across epochs like #797.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100