Repository navigation
decisions, reference: reference inputs scaled by photmjsr, not photmjsr x pixel area; awaicgen -sf 0 - #251
Open
jjencson91 wants to merge 2 commits into
Open
decisions, reference: reference inputs scaled by photmjsr, not photmjsr x pixel area; awaicgen -sf 0#251jjencson91 wants to merge 2 commits into
jjencson91 wants to merge 2 commits into
Conversation
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 is10 ** (0.4 * (zprefimg - ZPTMAG)) * A_mosaic / A, withAthe pixel area in thatZPTMAG(the frame's WCS pixel area, or[reference.awaicgen] nominal_pixel_areaunderuse_nominal_zptmag). In effect the inputs are scaled byphotmjsr, notphotmjsrtimes pixel area. awaicgen step: the simple coadd keeps the inputs' unit, andawaicgen_pixelflux_scale_flagis 0. Settings table and theMAGZPsentence updated.system/decisions.md: new rulingdecision-reference-surface-brightness;decision-nominal-zptmaggets 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 1multiplies the coadd by (0.11")^2 over the first input file'sCDELT1 * CDELT2(awaicgen_store_img_fnames.c), 1.015 to 1.081 across flight SCAs, so the mosaic's real zero point differed fromMAGZPdepending on input order.Checks run locally:
check-public-safety.sh,sphinx-build -W --keep-going,acceptance.sh.🤖 Generated with Claude Code