diff --git a/system/decisions.md b/system/decisions.md index 70efcba..f2c5f81 100644 --- a/system/decisions.md +++ b/system/decisions.md @@ -60,6 +60,9 @@ A ruling that closes one goes under Rulings and its line leaves. (decision-fluxes-in-njy)= **The packet's fluxes are in nJy, each calibrated by its own image's zero point and pixel area map when the packet is assembled** (not in `dev`, whose packets carry instrumental fluxes): `flux_nJy = flux × 10^(−0.4 × (zptmag − 31.4)) × factor`, the same on the uncertainty, where `flux` is in DN/s on the difference image, which is on its science image's scale, `zptmag` is that image's `l2files.zptmag`, and `factor` is its pixel area map ({ref}`decisions `) interpolated bilinearly at the measurement's position. This holds for every flux in the packet: the triggers', the previous detections' and the forced photometry's, each from its own image, since one object's measurements span detectors whose zero points differ by up to about 0.25 mag. Each source and forced-photometry record carries `zeroPoint` and `pixelAreaFactor`, so the instrumental flux can be recovered. An image with no zero point gives null fluxes, with a warning; an image naming no map, or a position off the detector, gives a null `pixelAreaFactor` and the zero point alone, which is the correction by the detector's nominal pixel area. The object's flux statistics are computed from the calibrated fluxes. The database keeps instrumental fluxes (`xsources`, `forced`, `xmemberships`), so a flux measured by any job is calibrated the same way by whichever job puts it in a packet. Each distinct map is fetched once per job from `[pixel_area_map] store`. No aperture or encircled-energy correction is applied; that is its own item. (Emily Everetts, 2026-11-20; the pixel area correction asked for by Jacob Jencson) +(decision-reference-dates)= +**A detection's `firstRefMjd` and `lastRefMjd` are the dates of its reference at its own position** (not in `dev`): the earliest and latest `l2files.mjdobs` (the exposure start) among the frames coadded into the reference its difference job named (`refimimages`) whose footprint holds the detection's measured position. Why at the position: a reference is one mosaic per field and filter, coadded from frames that each cover part of it, so the dates of the whole mosaic can be earlier or later than those of the light under a given source. The footprint test is the one the packet's coverage count uses, the frame's four corners on the sphere. It does not know a frame's masked pixels, so a frame counts where its corners hold the position even if its pixels there were masked. Each detection in a packet, the trigger and the previous ones, takes the reference of its own difference job, since an object's detections span filters and each filter has its own reference. Both are null when no frame's footprint holds the position, or when the difference job's reference cannot be found. `refMayContainObject` stays unfilled: the team has not agreed that it would be read correctly. (Emily, 2026-11-24) + (decision-cutover-scope)= **The flight and HLWAS overlays publish SFFT's difference, its xsources and their packets, and nothing else**: each sets `[difference] skip_loading_sources_records = true`, `[difference.zogy] run_zogy = false` and `[difference.naive_diffimage] naive_diffimage_flag = false`, and the base keeps `dev`'s false, true and true. That is what commissioning publishes. No `sources` rows are loaded (the PSF-fit catalogs stay as files) and nothing is associated into `objects`, while the xsources still found their xobjects and the packets come from them ({ref}`ruling `); ZOGY's and the naive subtraction's products are diagnostics nothing published reads ({ref}`ruling `). The two are the cutover's datasets; flipping the base would be fewer lines and would change GBTDS, OpenUniverse and RimTimSim, which are outside the cutover. (The rebuild-migration plan's decision, Ben's go 2026-11-14 06:55 UTC; rapid e39b11bf)