CosmoStat / CosmoStat/shapepipe
[NEW FEATURE] Fourth-order moments
@sachaguer is already working on this.
Since May 12, 2025.
- Dominant language
- Python
- Stars
- 18
- Forks
- 14
- Avg merge
- 8h 40m
- Merged PRs (30d)
- 10
Description
Implement fourth-order moments for PSF diagnostics (PSFHOME-style; useful for PSF-leakage systematics in DES/HSC).
Current state. No higher-order-moment code exists on develop. PR #698 (branch moment4) implemented this in psfex_interp.py (_get_psfshapes / _get_starshapes): whiten the pixel grid with the inverse-sqrt second-moment matrix, compute the centered p+q=4 moments, store the spin-2 combinations M40 − M04 and 2(M13 + M31) as M_4_{PSF,STAR}_{1,2}. That branch is now ~435 commits behind develop and predates the HSM column-grammar refactor.
Plan. Implement as a follow-up on top of #812 (sky-coords HSM), which rewrites the same two functions. Measuring in sky coordinates removes the pixel→sky rotation the old code would need. Deliverables:
- spin-2 fourth-moment combinations (port the #698 math onto the sky-coords frame; the whitening matrix must be built from the sky-frame moments),
- galsim's spin-0
moments_rho4(already computed byFindAdaptiveMom, currently discarded), - tests for both.
#698 is kept open as reference for the original implementation; the new work supersedes it.
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.
Assessment
This issue has not been assessed yet.