Skip to content

decisions, reference: reference inputs scaled by photmjsr, not photmjsr x pixel area; awaicgen -sf 0 - #251

Open
jjencson91 wants to merge 2 commits into
mainfrom
docs/reference-sb-scaling
Open

jjencson91 wants to merge 2 commits into
mainfrom
docs/reference-sb-scaling

Conversation

@jjencson91

Copy link
Copy Markdown
Contributor

Corrects the reference stage page and records the ruling ahead of the pipeline change (rapid PR to follow, which implements this page).

What changes on the page

  • system/reference.md, Preparation: each frame's factor is 10 ** (0.4 * (zprefimg - ZPTMAG)) * A_mosaic / A, with A the pixel area in that ZPTMAG (the frame's WCS pixel area, or [reference.awaicgen] nominal_pixel_area under use_nominal_zptmag). In effect the inputs are scaled by photmjsr, not photmjsr times pixel area. awaicgen step: the simple coadd keeps the inputs' unit, and awaicgen_pixelflux_scale_flag is 0. Settings table and the MAGZP sentence updated.
  • system/decisions.md: new ruling decision-reference-surface-brightness; decision-nominal-zptmag gets a pointer to it.

Why

  • ZPTMAG = -2.5 log10(photmjsr * 1e6 * pixel_area / 3631) is a point-source zero point; awaicgen's simple coadd is an overlap-weighted mean (surface brightness), so the per-SCA pixel area was counted twice. Flight pixel areas fall in three groups (about 2.63, 2.72, 2.80e-13 sr).
  • -sf 1 multiplies the coadd by (0.11")^2 over the first input file's CDELT1 * CDELT2 (awaicgen_store_img_fnames.c), 1.015 to 1.081 across flight SCAs, so the mosaic's real zero point differed from MAGZP depending on input order.
  • Reprocessed program 1049 F158 (romancal 1.2.0, CRDS roman_0104): SCA-to-SCA scatter of matched stars 7.4% (nominal ZP), 5.3% (current per-frame ZPTMAG), 3.5% (photmjsr alone).

Checks run locally: check-public-safety.sh, sphinx-build -W --keep-going, acceptance.sh.

🤖 Generated with Claude Code

…sr x pixel area; awaicgen -sf 0

The reference stage's per-frame factor 10^(0.4 (zprefimg - ZPTMAG)) keeps each
SCA's pixel area (ZPTMAG is a point-source zero point), while awaicgen's simple
coadd averages surface brightness, so the area was counted twice. The factor
gains A_mosaic / A (A = the frame's WCS pixel area, or [reference.awaicgen]
nominal_pixel_area under use_nominal_zptmag), and awaicgen_pixelflux_scale_flag
becomes 0: -sf 1 rescaled the coadd by (0.11")^2 over the first input's
CDELT1 * CDELT2 only, so the zero point followed the input order.

New ruling decision-reference-surface-brightness, with the measurements on the
reprocessed program 1049 F158 frames; decision-nominal-zptmag points to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants