Skip to content

Add PAM to intake - #233

Merged
eramey16 merged 4 commits into
mainfrom
add-PAM-to-intake
Nov 24, 2026
Merged

eramey16 merged 4 commits into
mainfrom
add-PAM-to-intake

Conversation

@eramey16

Copy link
Copy Markdown
Contributor

Nothing to run. Docs only. Merge this before the matching rapid pull request (add-PAM-to-intake), per the docs-first rule.

What and why

Flight L2 files name no pixel area map (meta.ref_file.area is INCOMPLETE on every file checked to 2026-11-20), and pixel area varies across a detector by 2.5% on WFI01 and 3.3% on WFI16. Jacob asked for the correction in our fluxes. This is the first half: intake records which CRDS map applies to each file, so the packet stage can apply it.

Pages

  • system/intake.md: the lookup as step 3; a new section, "The pixel area map's name"; the l2files output; the [pixel_area_map] settings table.
  • system/datasets.md: flight's overlay turns the lookup on.
  • system/decisions.md: decision-pixel-area-map.
  • system/migration.md: l2files gains pixel_area_map.

Points for review

  • Intake asks CRDS for the best area reference by detector and exposure start. If CRDS does not answer it falls back to an index in the maps' store, then records null and succeeds. An intake never fails for this.
  • The maps (67 MB each, one per detector, the same for every filter) are kept once each in a store, not written per file.
  • The decision is attributed to me and dated 2026-11-20. Say if the schema column or the CRDS dependency should be discussed before it reads as settled.

🤖 Generated with Claude Code

eramey16 and others added 4 commits November 20, 2026 12:49
… found from the file, CRDS or the store's index

Flight L2 files name no pixel area map (meta.ref_file.area is INCOMPLETE),
and pixel area varies by 2.5% (WFI01) to 3.3% (WFI16) across a detector.
Intake records each file's map by its CRDS name so the alerts stage can
correct fluxes in nJy; the maps are kept once each in a store, copied by
scripts/copy_pixel_area_maps.py.

- intake.md: the lookup as step 3, the section "The pixel area map's
  name", the l2files output and the [pixel_area_map] settings table.
- datasets.md: flight's overlay turns the lookup on.
- decisions.md: decision-pixel-area-map (Emily Everetts, 2026-11-20; the
  correction asked for by Jacob Jencson).
- migration.md: l2files gains pixel_area_map.

Implemented by rapid branch add-PAM-to-intake.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…t applies the map follows

The intake page and the decision read as if the alerts stage already
multiplied fluxes by the map. It does not yet: this change records each
file's map name, and the conversion to nJy that reads it is its own change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…age, not the retired alerts page

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@eramey16
eramey16 merged commit 5d737dc into main Nov 24, 2026
1 check passed
@eramey16
eramey16 deleted the add-PAM-to-intake branch November 24, 2026 19:19
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