Skip to content

fix: correct values and references for CFHTLS, COSMOS, LSST, DES, HSC, Euclid - #135

Merged
aboucaud merged 5 commits into
mainfrom
fix/values-refs
Sep 30, 2026
Merged

aboucaud merged 5 commits into
mainfrom
fix/values-refs

Conversation

@aboucaud

Copy link
Copy Markdown
Member

Summary

A batch of value and reference corrections/clarifications across 6 existing survey YAMLs, found during a verification pass against primary sources:

  • CFHTLS: fix i-band effective_wavelength (716.766 → 761.766, a digit transposition), z-band zeropoint (25.05 → 25.02, aligned with the CFHT MegaCam page), and replace figure-derived psf_fwhm values with the T0007 paper's Table 4 band means (u/g/r/i/z all shift slightly).
  • COSMOS: add the previously-empty sky_brightness reference (GalSim docs — was violating AGENTS.md's "values without a source are not accepted"), and clarify the gain comment to note observations were obtained with gain of 1 (Koekemoer 2007, §2.1).
  • LSST: update all 6 zeropoints (u/g/r/i/z/y) to match current speclite lsst2016 computation — they were all ~0.03–0.04 mag low — and fix a broken imSim gain reference URL (stamp.py#L416 → readout.py, with an updated comment explaining the per-amplifier gain convention).
  • DES: clarify the zeropoint_airmass comment (value of 1.3 confirmed correct per the decam2014 convention; comment now cites the reference airmass source).
  • HSC: fix zeropoint rounding for the y-band (27.33 → 27.34, matching speclite), and replace a dead Suprime-Cam sky-brightness URL with a Wayback Machine archive link, with a comment noting these are Suprime-Cam values used as an approximation for HSC.
  • Euclid_VIS: fix zeropoint rounding (25.91 → 25.92, matching speclite).

Test plan

  • pytest --cov — 36 passed
  • pre-commit run --all-files — all hooks pass
  • python -m surveycodex and surveycodex --refs run cleanly
  • scripts/check_zeropoints.py and scripts/check_effective_wavelengths.py — LSST and HSC values now match speclite exactly (previously off by rounding/precision)

🤖 Generated with Claude Code

…nd psf_fwhm values

- effective_wavelength i: 716.766 -> 761.766 (digit transposition)
- zeropoint z: 25.05 -> 25.02 (align with CFHT Megacam page)
- psf_fwhm: replace figure-derived values with T0007 Table 4 band means
  u 0.81->0.85, g 0.84->0.78, r 0.73->0.71, i 0.66->0.64, z 0.66->0.68
- sky_brightness: add GalSim docs as reference (was empty, violating AGENTS.md)
- gain: refine comment to note observations obtained with gain of 1
  (confirmed from Koekemoer 2007, section 2.1)
… URL

- zeropoints: u/g/r/i/z/y updated to match speclite lsst2016 computation
  (all were ~0.03-0.04 mag lower than current speclite output)
- gain reference: replace broken imSim stamp.py#L416 URL with readout.py
  (gain is now per-amplifier from camera model; 1.0 is the e-image convention)
- zeropoint_airmass: keep 1.3 (confirmed correct per speclite decam2014
  convention), add explanatory comment referencing Ting Li's airmass
… reference

- Euclid VIS zeropoint: 25.91 -> 25.92 (speclite rounding)
- HSC y-band zeropoint: 27.33 -> 27.34 (speclite rounding)
- HSC sky_brightness: replace dead Suprime-Cam URL with Wayback Machine
  archive, add comment noting values are Suprime-Cam used as approximation
@aboucaud
aboucaud merged commit 338b727 into main Sep 30, 2026
7 checks passed
@aboucaud
aboucaud deleted the fix/values-refs branch September 30, 2026 23:03
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.

1 participant