From b3e4bee7f10043260e08f26d858fca867bafdd71 Mon Sep 17 00:00:00 2001 From: Ben Rusholme Date: Tue, 1 Dec 2026 00:29:55 +0000 Subject: [PATCH] Reference pages: alert packet fields at 00.08, products, quality, tiling, acronyms, access; blobless clone on day one Placeholders before the first community release, each read from rapid rebuild at ce36bb4a. Co-Authored-By: Claude Opus 5.5 --- index.md | 1 + project/day-one.md | 8 + reference/access.md | 33 ++++ reference/acronyms.md | 39 ++++ reference/index.md | 23 +++ reference/products.md | 36 ++++ reference/quality.md | 117 ++++++++++++ reference/tiling.md | 53 ++++++ system/alerts.md | 404 +++++++++++++++++++++++++++++++++++++++++- system/index.md | 2 +- 10 files changed, 712 insertions(+), 4 deletions(-) create mode 100644 reference/access.md create mode 100644 reference/acronyms.md create mode 100644 reference/index.md create mode 100644 reference/products.md create mode 100644 reference/quality.md create mode 100644 reference/tiling.md diff --git a/index.md b/index.md index 90d626c..99bc258 100644 --- a/index.md +++ b/index.md @@ -27,6 +27,7 @@ site is being built up section by section. :hidden: system/index +reference/index project/index log/index ``` diff --git a/project/day-one.md b/project/day-one.md index 704a6d1..b7faf69 100644 --- a/project/day-one.md +++ b/project/day-one.md @@ -48,6 +48,14 @@ cd rapid git config core.hooksPath .githooks # the public-safety check, before your first push ``` +A blobless clone downloads the full commit history but fetches the +contents of past versions of a file only when a command needs them, so +it is faster to make: + +```sh +git clone --filter=blob:none -b rebuild git@github.com:Caltech-IPAC/rapid.git +``` + ## One epoch on your workstation Run this on your workstation, the Personal EC2 from Setup above, not on a diff --git a/reference/access.md b/reference/access.md new file mode 100644 index 0000000..27b7af6 --- /dev/null +++ b/reference/access.md @@ -0,0 +1,33 @@ +# Access + +This page states only what RAPID has already published about access to +its outputs, each statement with the published page it rests on. It +gives no date, location or address beyond those pages. What is +available, once it is, will be stated on this site's reference pages +([home page](../index)). + +RAPID's outputs are public, for the whole time-domain astronomy +community. They are a public alert stream of transient and variable +candidates, carrying alert-driven forced-photometry histories, and +public source catalogs ([home page](../index)). + +The alert stream keeps two months of alerts. The stream is not the +archive, so an archive with stated retention and ownership must exist +before alerts are published +([specification, Constraints](../system/specification.md#constraints)). + +How alerts reach brokers and MAST, and how RAPID receives Roman's data, +has not been decided ([specification, +Edges](../system/specification.md#edges)). The working +target, which the team has yet to confirm, is that a detector image's +alerts are current within about an hour of the image's delivery to +RAPID ({ref}`latency `). + +What an alert contains, field by field, is on the [alert +packet](../system/alerts.md#the-alert-packet-schema-0008) page. + +The pipeline's software is public under the BSD 3-Clause License, and +this site's text under CC BY 4.0 ([Project](../project/index)). +Questions go to , and announcements to the +community go to the `rapid-announce@lists.ipac.caltech.edu` list +([Team and contact](../project/team)). diff --git a/reference/acronyms.md b/reference/acronyms.md new file mode 100644 index 0000000..a2da7bc --- /dev/null +++ b/reference/acronyms.md @@ -0,0 +1,39 @@ +# Acronyms + +The acronyms in the pipeline's code at `rebuild` commit `ce36bb4a` +(2026-11-30) and on this site. Each expansion is the one its source +spells, and the Source column names where it was read: the code, a page +of this site, or the defining organisation's public page (read +2026-12-01). An acronym whose expansion no source read here states is +given its meaning in the pipeline instead. + +| Acronym | Meaning | Source | +|---|---|---| +| ASDF | Advanced Scientific Data Format, the format of Roman's WFI data products and of the L2 files the pipeline reads | [ASDF Standard](https://www.asdf-format.org/projects/asdf-standard/en/latest/) | +| CRDS | Calibration Reference Data System, STScI's service for calibration reference files; the `psf` stage fetches the ePSF reference from it by name | [HST CRDS](https://hst-crds.stsci.edu/) | +| DSC | Discrete Source Classifier, Gaia DR3's source classification; its probabilities are in `gaiaMatch` | [Gaia DR3 Apsis III](https://arxiv.org/abs/2206.06710) | +| ePSF | effective PSF; the `psf` stage reduces the CRDS ePSF reference to the pipeline's science PSF | [difference](../system/difference) | +| FITS | Flexible Image Transport System, the format of every image the pipeline writes after intake | [FITS Support Office](https://fits.gsfc.nasa.gov/) | +| GBTDS | Galactic Bulge Time-Domain Survey, one of Roman's core community surveys | [STScI, Roman surveys and programs](https://www.stsci.edu/roman/surveys-and-programs.html) | +| HEALPix | Hierarchical Equal Area isoLatitude Pixelation of a sphere; `hp6` and `hp9` are nested HEALPix indexes at orders 6 and 9 | [HEALPix](https://healpix.sourceforge.io/) | +| HLWAS | High-Latitude Wide-Area Survey, one of Roman's core community surveys | [STScI, Roman surveys and programs](https://www.stsci.edu/roman/surveys-and-programs.html) | +| ICRS | International Celestial Reference System, the frame of every position in a packet | [USNO](https://aa.usno.navy.mil/faq/ICRS_doc) | +| IPAC | Infrared Processing and Analysis Center, at Caltech, where RAPID is based | [IPAC](https://www.ipac.caltech.edu/) | +| KONA | the solar-system prediction module the packet stage's solar-system match uses (`rapidpipe.science.alerts.kona`), from propagated Minor Planet Center orbits | code: `[packet]` settings | +| L2 | the SOC's calibrated image of one exposure on one SCA, the `_cal.asdf` file the `intake` stage reads | code: `rapidpipe/stages/intake.py` | +| LVS | Local Volume Sample, NED's local-volume galaxy catalog (NED-LVS), matched into `lvsMatches` | [NED](https://ned.ipac.caltech.edu/) | +| MAST | Barbara A. Mikulski Archive for Space Telescopes | [MAST](https://archive.stsci.edu/) | +| MJD | Modified Julian Date, the time unit of every `Mjd` field | [loop](../system/loop) | +| MPC | Minor Planet Center, of the International Astronomical Union; `ssMatch.designation` is its designation | [MPC](https://data.minorplanetcenter.net/swamo) | +| NED | NASA/IPAC Extragalactic Database, matched into `nedMatches` | [NED](https://ned.ipac.caltech.edu/) | +| PIT | Project Infrastructure Team, what RAPID is for the Roman mission | [home page](../index) | +| RAPID | Roman Alerts Promptly from Image Differencing | [home page](../index) | +| RuBR-AT | the real/bogus classifier that scores each difference-image detection; its score is `reliability` | code: `param_registry.py` | +| RUWE | re-normalised unit weight error, Gaia's astrometric fit quality, in `gaiaMatch.ruwe` | [ESA, Gaia DR2 known issues](https://www.cosmos.esa.int/web/gaia/dr2-known-issues) | +| SCA | Sensor Chip Assembly, one of the WFI's 18 detectors; `detector` in a packet | [Roman documentation](https://roman-docs.stsci.edu/roman-instruments/the-wide-field-instrument/wfi-characterization-activities/wfi-ground-testing-campaigns) | +| SFFT | Saccadic Fast Fourier Transform, the image-subtraction method of the published difference image | [Hu et al., arXiv:2109.09334](https://arxiv.org/abs/2109.09334) | +| SIP | Simple Imaging Polynomial, the FITS convention for image distortion | [FITS registry, SIP](https://fits.gsfc.nasa.gov/registry/sip.html) | +| SMDC | the NASA AWS environment RAPID runs in, reached through the SMDC AWS portal | [day one](../project/day-one) | +| SOC | Science Operations Center; STScI is Roman's | [STScI, Roman partners](https://www.stsci.edu/roman/about/partners) | +| WFI | Wide Field Instrument, Roman's imager | [STScI, Roman](https://www.stsci.edu/roman) | +| ZOGY | the image-subtraction method of Zackay, Ofek and Gal-Yam (2016), run beside SFFT as a diagnostic | [licence audit](../log/2026-11-08-licence-audit) | diff --git a/reference/index.md b/reference/index.md new file mode 100644 index 0000000..9dcce69 --- /dev/null +++ b/reference/index.md @@ -0,0 +1,23 @@ +# Reference + +Short reference pages for a reader of RAPID's outputs, each read from the +pipeline's code on its `rebuild` branch at the commit it names. They are +placeholders, written before the first community data release, and are +revised in place as the pipeline changes. + +- [The alert packet](../system/alerts.md#the-alert-packet-schema-0008): every field of schema 00.08, with its type and meaning +- [Products and formats](products): what each stage makes and in what format +- [Quality columns and InfoBits](quality): the status, InfoBits and quality measurements on each image +- [Sky tiling](tiling): the fields the sky is divided into, and the HEALPix indexes beside them +- [Acronyms](acronyms) +- [Access](access): what RAPID has published about access to its outputs + +```{toctree} +:hidden: + +products +quality +tiling +acronyms +access +``` diff --git a/reference/products.md b/reference/products.md new file mode 100644 index 0000000..7ba0121 --- /dev/null +++ b/reference/products.md @@ -0,0 +1,36 @@ +# Products and formats + +Read from the pipeline's `rebuild` branch at commit `ce36bb4a` +(2026-11-30), from each stage module's docstring and the files it writes. +This page lists what the pipeline makes today, a placeholder until RAPID +publishes products. What reaches users, and where, is on +[Access](access). + +Each stage job writes its files under its own prefix, with a +`manifest.json` written last, and declares rows in the pipeline's +database. A row names its file by path and MD5 checksum. Every FITS file +the pipeline keeps is gzipped at level 1 (`.fits.gz`). + +| Stage | What it makes | Format | +|---|---|---| +| `intake` | One calibrated SOC L2 image (`_cal.asdf`) converted to FITS, the pixels its DQ bits mark set to NaN, with its limiting magnitude measured: `_cal.fits.gz` | gzipped FITS; an `l2files` row and, for one SCA of each exposure, an `exposures` row | +| `psf` | The science PSF of one filter and SCA, reduced from the CRDS ePSF reference the L2 file names, normalised to unit sum: `sciimage_psf__sca.fits` | FITS; a `psfs` row | +| `reference` | A field's reference image, coadded by awaicgen from the L2 images that overlap the field in one filter: the mosaic, its coverage map and its uncertainty image, 9,100 pixels square at 0.11 arcsec per pixel, north up, centred on the field's [tile](tiling); the mosaic's SExtractor catalog; with the PSF-fit catalog enabled, the PSF used and the Photutils PSF-fit catalog | gzipped FITS; SExtractor text catalog; PSF-fit catalog as text and Parquet; `refimages`, `refimimages`, `refimcatalogs` and `refimmeta` rows, the last holding the [quality columns](quality) | +| `difference` | One epoch minus its reference. SFFT's positive difference image (`sfftdiffimage_masked.fits.gz`), its uncertainty, its mask and its PSF are published; ZOGY's and the naive subtraction's images are kept beside them as diagnostics. Also the background-subtracted science image and the resampled, gain-matched reference the cutouts are cut from, and the positive and negative PSF-fit catalogs of SFFT and ZOGY | gzipped FITS; PSF-fit catalogs as Parquet; a `diffimages` row; the source sets (`sources` from the PSF-fit catalogs, `xsources` from SFFT's SExtractor catalogs), and the objects and memberships each source joins | +| `packet` | The alert packets of one difference image: `packets/--.avro`, one Avro object container, deflate level 1, one record per block, schema 00.08 ([fields](../system/alerts.md#the-alert-packet-schema-0008)); beside it `packets.parquet` (each record's block offset and length), `forced.parquet` (the forced photometry the packets carry) and `external.parquet` (the catalog matches) | Avro; Parquet | + +The packet job also sends each packet, its Avro block, to the alert +topic as one message. + +## Fluxes and identifiers + +The fluxes in the packets are in nJy, each calibrated with its own +image's AB zero point (`zptmag`, the magnitude of 1 DN/s) and the value of +the image's pixel area map at the source. The database tables and +the Parquet files keep the instrumental fluxes. + +Images and catalogs carry the pipeline's own identifiers: `expid` for an +exposure (a serial the database hands out, the same for every SCA of the +exposure, with the Roman observation identifiers beside it), `rid` for an +L2 image, `rfid` for a reference, `pid` for a difference image, and +`field` for the [sky tile](tiling) an image is centred on. diff --git a/reference/quality.md b/reference/quality.md new file mode 100644 index 0000000..8aa8812 --- /dev/null +++ b/reference/quality.md @@ -0,0 +1,117 @@ +# Quality columns and InfoBits + +Read from the pipeline's `rebuild` branch at commit `ce36bb4a` +(2026-11-30): `database/schema.sql`, `cdf/infobitsref.txt`, +`rapidpipe/science/reference/infobits.py`, +`rapidpipe/products/diffimage.py`, +`rapidpipe/science/difference/metrics.py` and the `[reference.infobits]` +and `[gate]` tables of `rapidpipe/settings/foundation-thin.toml`. + +Three kinds of quality record exist. Each image row carries a `status` +and an InfoBits mask; a reference also has a row of measurements; and +each difference job records quality numbers that the quality gate reads +before the job's alerts are sent. + +## Status and InfoBits on each image row + +| Table | Column | Meaning | +|---|---|---| +| `l2files` | `status` | 1 when intake converted the file; 0 is the column's default | +| `l2files` | `infobits` | always 0: no bit is defined for an L2 image | +| `refimages` | `status` | 1, or 0 when a fatal InfoBit is set (below). A status 0 reference is published but its binding is refused, so no difference is made against it | +| `refimages` | `infobits` | the reference's InfoBits (below) | +| `diffimages` | `infobitssci` | the catalog-outcome mask (below) | +| `diffimages` | `infobitsref` | the InfoBits of the reference it was made against | +| `diffimages` | `status` | 1 when the difference job finished | +| `psfs` | `status` | 1 when the PSF was made | + +## A reference's InfoBits + +The reference stage grades each new reference. A bit is set when its +condition holds. A measurement that could not be made sets no bit. The +thresholds are `[reference.infobits]`'s, values the pipeline inherited as +provisional ("loose enough that a normal reference image raises no +bit"). Bits 5, 6, 7 and 16 are evaluated only when the reference's +PSF-fit catalog is enabled (`[reference.psfcat] enabled`): a catalog that +was not attempted is not one that failed. The bits listed in +`fatalinfobits` set the reference's status to 0. The bits not listed are +reserved. The mosaic's FITS header carries each defined bit's definition +as a `BITnn` card, with the threshold filled in. + +| Bit | Value | Set when | Threshold | +|---|---|---|---| +| 0 | 1 | the mosaic's median background is above `t00` | 1.0 DN/s | +| 1 | 2 | the robust pixel noise, 0.5 (p84 − p16), is above `t01` | 0.1 DN/s | +| 2 | 4 | NaN or saturated pixels are more than `t02` per cent of the covered pixels | 65 per cent | +| 3 | 8 | the mode of the point sources' FWHM in the SExtractor catalog is above `t03` | 1.0 arcsec | +| 4 | 16 | the 90th percentile of the same sources' FWHM is above `t04` | 2.0 arcsec | +| 5 | 32 | the limiting magnitude from the PSF-fit catalog's flux uncertainties is below `t05` | 15.0 mag | +| 6 | 64 | the limiting magnitude from the background noise and the PSF is below `t06` | 15.0 mag | +| 7 | 128 | the PSF-fit catalog has fewer than `t07` sources | 10 | +| 8 | 256 | the SExtractor catalog has fewer than `t08` sources | 10 | +| 10 | 1024 | the robust spread, 0.5 (p84 − p16), of the coadded frames' zero points is above `t10` | 3.5 mag | +| 16 | 65536 | the PSF-fit catalog could not be made | | + +Pixels are in DN/s at the filter's reference zero point, and both +limiting magnitudes are at S/N 5 (`maglim_snr`). + +## A difference image's catalog-outcome mask + +`diffimages.infobitssci` has one bit for each differencer and sign, set +when no Photutils PSF-fit catalog was produced for that image and sign. +When ZOGY is switched off its two bits are never set. + +| Bit | Value | No PSF-fit catalog for | +|---|---|---| +| 0 | 1 | ZOGY, positive | +| 1 | 2 | ZOGY, negative | +| 2 | 4 | SFFT, positive | +| 3 | 8 | SFFT, negative | +| 4 | 16 | naive subtraction, positive | +| 5 | 32 | naive subtraction, negative | + +## A reference's measurements: `refimmeta` + +One row per reference, the columns of the pipeline it was ported from. + +| Column | Meaning | +|---|---| +| `field`, `fid` | the reference's sky tile and filter | +| `hp6`, `hp9` | the level-6 and level-9 nested HEALPix indexes of its centre | +| `nframes` | images in the stack | +| `mjdobsmin`, `mjdobsmax` | the earliest and latest MJD of the input images | +| `npixnan` | NaN pixels in the reference image | +| `clmean`, `clstddev`, `clnoutliers` | the pixel mean after clipping, the standard deviation after clipping and reinflating, and the pixels clipping discarded | +| `gmedian` | the global pixel median | +| `datascale` | the global robust spread, 0.5 (p84 − p16) | +| `gmin`, `gmax` | the global minimum and maximum pixel values | +| `cov5percent` | the coverage-depth metric, for a depth of at least 5 | +| `medncov` | the median of the depth-of-coverage image | +| `medpixunc` | the median of the uncertainty image | +| `fwhmmedpix`, `fwhmminpix`, `fwhmmaxpix` | the median, minimum and maximum `FWHM_IMAGE` of the SExtractor catalog's point sources, in pixels | +| `nsxcatsources` | sources in the SExtractor catalog | +| `npucatsources` | sources in the Photutils PSF-fit catalog when it was attempted; null when none is made | + +## A difference job's quality numbers + +The difference job records these in its manifest's `metrics`, and the +database's `job_metrics` view exposes them. A number the job could not +measure, for too few stars or no sources, is absent, never zero. + +| Metric | Meaning | +|---|---| +| `core_fraction`, `ring_fraction` | at isolated bright reference stars, the difference image's sum within the core radius, and between it and the ring radius, over the star's reference flux; each the median over the stars used, counted in `n_residual_stars`. Near zero for a clean subtraction | +| `registration_dx_px`, `registration_dy_px` | the median centroid of the science image minus the reference's at the reference stars, in pixels, counted in `n_registration_stars` | +| `usable_fraction` | the difference image's pixels that are finite and at or above the coverage threshold, over all its pixels | +| `n_sources`, `n_sources_snr_gt20` | the sources kept, and those whose fit flux over its error is above 20 | +| `on_reference_star_fraction` | the share of the sources within a few pixels of a reference catalog source | +| `n_in_bright_footprint`, `bright_footprint_fraction` | the sources inside a bright reference source's footprint, and their share of the sources above the bright S/N cut | +| `sci_star_sigma_px` | the median second-moment width of the registration stars on the science image, beside the ePSF's `sci_psf_sigma_px` | +| `n_sources_near_bright_px`, `n_sources_ring_snr_gt20` | sources near a bright reference pixel, and bright sources in a ring around the brightest stars, two counts of subtraction residuals | + +The quality gate holds a difference image's alerts back when, once the +run has `[gate] min_epochs` published differences, its +`n_sources_snr_gt20` is above a factor times the run's median, its +`core_fraction` or `ring_fraction` is beyond its bound, its +`usable_fraction` is below `usable_fraction_min`, or its registration +offset is above `registration_max_px`. diff --git a/reference/tiling.md b/reference/tiling.md new file mode 100644 index 0000000..3719c6e --- /dev/null +++ b/reference/tiling.md @@ -0,0 +1,53 @@ +# Sky tiling + +Read from the pipeline's `rebuild` branch at commit `ce36bb4a` +(2026-11-30): `database/modules/utils/roman_tessellation.py`, the +tessellation's one source, and `rapidpipe/products/spatial.py`. The +numbers below were computed with those two modules. + +RAPID divides the sky into fixed tiles and calls each one a field. A +field is the unit the pipeline works in: a reference image is made per +field and filter, centred on the field's tile, and a source is +associated against the objects of the field it falls in and of that +field's neighbours. Every L2 image and difference image row carries the +`field` its centre falls in, and every source and packet the `field` of +the source's own position. An L2 image also lists in `overlapfields` +every field that the image, less a 25-pixel border, overlaps; a field's +reference is coadded from the L2 images that list it. + +## The tiles + +The tiling uses the ring latitudes of HEALPix at NSIDE 512 with twice +HEALPix's resolution in right ascension, so it is not HEALPix itself. +It has 2,047 rings of latitude between two polar cap tiles, 6,291,458 +tiles in all. Ring `i`, counted from the north, holds `8i` tiles in the +north polar region, 4,096 in the equatorial belt, and `8(2048 − i)` in +the south polar region. Tiles are bounded by lines of constant +declination and right ascension, and every tile has the same area to +within 0.03 per cent, about 23.6 square arcminutes. + +| Where | Ring | Tiles in the ring | Height | Width | +|---|---|---|---|---| +| next to the north cap | 1 | 8 | 5.48 arcmin | 4.31 arcmin | +| edge of the equatorial belt, dec 41.8° | 512 | 4,096 | 6.00 arcmin | 3.93 arcmin | +| equator | 1,024 | 4,096 | 4.48 arcmin | 5.27 arcmin | + +A tile's identifier, `rtid`, is the `field` value. Tile 1 is the north +polar cap, above declination 89.954315°; tiles 2 onwards run ring by +ring from north to south and, within a ring, eastward from right +ascension 0, so the first tile of each ring straddles RA 0; tile +6,291,458 is the south polar cap. The identifier is computed in closed +form from a position, with no table lookup, and a point on a boundary +belongs to the tile above it in declination and to the east of it in +right ascension. + +A reference image, 9,100 pixels square at 0.11 arcsec per pixel, is +about 16.7 arcminutes on a side, so it covers its own tile and a margin +of neighbours around it. + +## HEALPix indexes + +Beside the field, rows carry `hp6` and `hp9`, the nested HEALPix +indexes of the position at order 6 (NSIDE 64, about 0.84 square degrees +a pixel) and order 9 (NSIDE 512, about 47.2 square arcminutes), for +queries by HEALPix region. diff --git a/system/alerts.md b/system/alerts.md index 3fff002..b479430 100644 --- a/system/alerts.md +++ b/system/alerts.md @@ -1,11 +1,409 @@ -# The alerts stage +# The alerts stage and the alert packet -**Status: retired** +**Status: retired** (the stage); the alert packet section is current, read from `rebuild` at `ce36bb4a` (2026-11-30) The module this page describes was retired from the `rebuild` branch with the run model. The [foundation](foundation) page states what replaced it; this page stays as the record of the port until the replacement's own page -supersedes it. +supersedes it. Its first section, the alert packet, describes what the +`packet` stage that replaced it writes today. + +## The alert packet, schema 00.08 + +Each alert is one Avro record of the schema `rapid.v00_08`, version +`00.08`. The schema files are +`rapidpipe/science/alerts/schema/00/08/rapid.v00_08..avsc` in the +pipeline repository, nine records in all, and they are written from one +source, `rapidpipe/science/alerts/param_registry.py`. The tables below +are generated from that registry at commit `ce36bb4a`, where +`gen_schema --check` finds the files and the registry identical. Each +field's meaning is the schema's own `doc` string, with its unit in +square brackets. + +The `packet` stage writes one Avro object container per difference +image, deflate at level 1, with one record in each block. The triggers +are the SExtractor sources of the published SFFT difference image, +positive and negative, each with its object and that object's other +detections. +Every flux in a packet is in nJy, calibrated with its own image's zero +point and pixel area map, and every record that carries a flux also +carries the `zeroPoint` and `pixelAreaFactor` used. + +The Filled column says whether the pipeline sets the field. "No, always +null" marks a field the schema declares that the pipeline does not yet +fill. A nullable field marked "yes" is still null where its doc string +says so, for example a cross-match that did not run. The nested records +follow the alert record, in the order the registry declares them. + +Where the code says more than the doc string, or says something else: + +- `diaSourceId`, in the alert and in each `diaSource`, is the source's + `xsid`: the pipeline numbers the sources of each source set from 1, so + the id is unique only together with the set that holds it. + `diaObjectId` is the object's `xaid`, which the database keys together + with the object's dataset, field and founding job. +- `pid` is the identifier of the difference image the source was found + on (the `diffimages` row), not of the science image. +- `nDiaSources` counts the object's detections up to and including the + trigger. The doc string's "over the whole history" is the older + wording, kept with the schema files. +- `prvDiaSources` holds the object's other detections within + `[packet] prv_window_days` before the trigger; `prvDiaForcedSources` + holds forced photometry at the object's founding position on every + difference image of the last `[packet] forced_window_days` whose + footprint holds it. The registry marks `prvDiaForcedSources` as a stub, + but the stage fills it. +- `apFlux`, `apFluxErr` in `diaSource` and `scienceFlux`, + `scienceFluxErr` in `diaForcedSource` are filled although their doc + strings still say "(stub)": the aperture flux is SExtractor's 3 pixel + aperture, and the science flux is forced PSF photometry on the + background-subtracted science image. The `ssMatch` record's own doc + says "(stub)" as well; its fields are filled when the solar-system + match runs (`[packet] ss_match`, on in the shipped settings). +- A source triggers a packet when its SExtractor `FLAGS` are 0, of + either sign, and at most `[packet] max_alerts` (2,000) packets are made + per source set, the highest absolute S/N first. `psfFitFlags` is the + separate Photutils PSF fit's flag mask on that source, 0 when the + fit gave no flux, so it, `centroid_flag` and `psfFlux_flag` can be + set on a packet. A source with no finite fit flux or S/N carries its + 3 pixel aperture flux in `psfFlux` and `psfFluxErr`. RAPID's + bright-footprint bit, `1 << 14`, is never set on these sources. +- `psfCfit` is the fit's `cfit` value; the code gives it no meaning + beyond the doc string's "PSF-fit chi parameter". + +### The `alert` record + +Top-level alert record. + +| Field | Type | Filled | Meaning | +|---|---|---|---| +| `schemaVersion` | string, nullable | yes | Version of the alert schema used to serialize this packet | +| `pipelineVersion` | string, nullable | no, always null | Version of the RAPID pipeline that produced this alert (stub) | +| `diaSourceId` | long | yes | Identifier for the triggering diaSource | +| `diaSource` | diaSource | yes | Triggering source detection | +| `prvDiaSources` | array of diaSource, nullable | yes | Previous detections of the same object | +| `diaObject` | diaObject, nullable | yes | Summary object record | +| `prvDiaForcedSources` | array of diaForcedSource, nullable | yes | Forced photometry history at the object position | +| `ssMatches` | array of ssMatch, nullable | when the solar-system match runs | Nearest known solar system objects (max 3) within the cutout radius (SS_MATCH_RADIUS_ARCSEC, ~7 arcsec) of the triggering source; null if association was not run, empty if none found | +| `refStarMatches` | array of refMatch, nullable | yes | Nearest star-classified reference-catalog sources (max 3, nearest first) within REF_MATCH_RADIUS_ARCSEC of the triggering source; null if matching was not run (catalog unavailable), empty if none within the radius; a full array (3) means the neighborhood may extend beyond what is reported (crowding) | +| `refGalaxyMatches` | array of refMatch, nullable | yes | Nearest galaxy-classified reference-catalog sources (max 3, nearest first) within REF_MATCH_RADIUS_ARCSEC of the triggering source; null/empty semantics as refStarMatches | +| `nedMatches` | array of nedMatch, nullable | yes | Nearest NED candidate host galaxies (max 3, nearest first) within NED_MATCH_RADIUS_ARCSEC of the triggering source; null if matching was not run (disabled, or NED unavailable/unreachable), empty if none within the radius; a full array (3) means the neighborhood may extend beyond what is reported. Restricted to host candidates by providers.select_host_candidates; an unrestricted NED match is ~98% non-galaxy at this depth | +| `lvsMatches` | array of lvsMatch, nullable | yes | Nearest NED-LVS galaxies (max 3, nearest first) within LVS_MATCH_RADIUS_ARCSEC (30 arcsec) of the triggering source; NED's vetted local-volume sample (D < 1000 Mpc) with distances, angular diameters, photometry, SFR and stellar mass; null if matching was not run (disabled, or the table unavailable), empty if none within the radius; a full array (3) means the neighborhood may extend beyond what is reported. Joins to nedMatches by prefName | +| `gaiaMatches` | array of gaiaMatch, nullable | yes | Nearest Gaia DR3 sources (max 3, nearest first) within GAIA_MATCH_RADIUS_ARCSEC (1 arcsec) of the triggering source, with catalog positions propagated by proper motion to its epoch; a known-star veto and variable/non-single-star tag (Gaia reaches G ~ 21, so most detections match nothing); null if matching was not run (disabled, or the copy unavailable), empty if none within the radius. In the bulge the chance-coincidence rate at 1 arcsec is ~0.3 per detection: cut on sep | +| `cutoutDifference` | bytes, nullable | yes | FITS cutout of difference image | +| `cutoutScience` | bytes, nullable | yes | FITS cutout of science image | +| `cutoutReference` | bytes, nullable | yes | FITS cutout of reference image | +| `observation_reason` | string, nullable | no, always null | Reason for observation (e.g. survey, ToO) | +| `target_name` | string, nullable | no, always null | Target name if targeted observation | + +### The `diaSource` record + +Individual source detection on a difference image. + +| Field | Type | Filled | Meaning | +|---|---|---|---| +| `diaSourceId` | long | yes | Unique identifier for this source detection | +| `expId` | long | yes | RAPID-assigned exposure identifier (pipeline database serial, not a Roman SOC identifier; see observation_id) | +| `detector` | int | yes | Detector (SCA) number | +| `diaObjectId` | long | yes | Associated diaObject identifier | +| `midpointMjd` | double | yes | Effective mid-observation time: the exposure start plus half the exposure time (UTC scale) [MJD] | +| `timeProcessedMjd` | double, nullable | yes | Time alert was processed (UTC scale) [MJD] | +| `exposureTime` | float, nullable | yes | Exposure time [s] | +| `ra` | double | yes | Right ascension; ICRS [deg] | +| `dec` | double | yes | Declination; ICRS [deg] | +| `x` | float | yes | x-pixel position on detector [pixels] | +| `y` | float | yes | y-pixel position on detector [pixels] | +| `xErr` | float, nullable | no, always null | Uncertainty in x [pixels] | +| `yErr` | float, nullable | no, always null | Uncertainty in y [pixels] | +| `raErr` | float, nullable | no, always null | Uncertainty in ra [deg] | +| `decErr` | float, nullable | no, always null | Uncertainty in dec [deg] | +| `band` | string, nullable | yes | Filter band name (F062, F087, F106, F129, F146, F158, F184, F213) | +| `psfFlux` | float, nullable | yes | Flux from PSF-fit on difference image [nJy] | +| `psfFluxErr` | float, nullable | yes | Uncertainty in psfFlux [nJy] | +| `snr` | float, nullable | yes | Signal-to-noise ratio (psfFlux / psfFluxErr) | +| `isNegative` | boolean | yes | true if source is from negative (ref minus sci) subtraction | +| `apFlux` | float, nullable | yes | Aperture flux on difference image (stub) [nJy] | +| `apFluxErr` | float, nullable | yes | Uncertainty in apFlux (stub) [nJy] | +| `zeroPoint` | float, nullable | yes | AB zero point of the image the fluxes were measured on: the magnitude of 1 DN/s [mag] | +| `pixelAreaFactor` | float, nullable | yes | Pixel area map value at the source position, a factor in the fluxes; null when the image has no map | +| `scienceFlux` | float, nullable | no, always null | Forced PSF flux on science image (stub) [nJy] | +| `scienceFluxErr` | float, nullable | no, always null | Uncertainty in scienceFlux (stub) [nJy] | +| `refFlux` | float, nullable | no, always null | Forced PSF flux on reference image (stub) [nJy] | +| `refFluxErr` | float, nullable | no, always null | Uncertainty in reference Flux (stub) [nJy] | +| `diffimglimmag` | float, nullable | no, always null | Expected 5-sigma limiting magnitude of difference image (stub) [mag] | +| `psfQfit` | float, nullable | no, always null | PSF-fit quality parameter | +| `psfCfit` | float, nullable | yes | PSF-fit chi parameter | +| `psfRChi2` | float, nullable | yes | Reduced chi-square of PSF fit | +| `psfNdata` | int, nullable | yes | Number of pixels used in PSF fit | +| `sharpness` | float, nullable | yes | DAOFIND sharpness: the central pixel's excess over its neighbors, over the smoothed peak; high for a cosmic ray, low for an extended source | +| `roundness1` | float, nullable | yes | DAOFIND roundness from the source's symmetry about its center (SROUND); 0 is round | +| `roundness2` | float, nullable | yes | DAOFIND roundness: the difference of the Gaussian fit heights along x and y over their mean (GROUND); 0 is round | +| `elongation` | float, nullable | yes | Ratio of the source's windowed long to short width (AWIN_IMAGE / BWIN_IMAGE); 1 is round | +| `peak` | float, nullable | no, always null | Peak pixel value in source stamp [DN] | +| `extendedness` | float, nullable | no, always null | Probability of being extended (stub) | +| `reliability` | float, nullable | yes | Real/bogus score from the RuBR-AT classifier, 0 (bogus) to 1 (real); null when the detection was not scored | +| `reliabilityThreshold` | float, nullable | yes | Score at or above which the classifier calls a detection real | +| `reliabilityVersion` | string, nullable | yes | Identifier of the real/bogus model that produced the score | +| `ixx` | float, nullable | no, always null | Adaptive second moment Ixx (stub) [arcsec^2] | +| `iyy` | float, nullable | no, always null | Adaptive second moment Iyy (stub) [arcsec^2] | +| `ixy` | float, nullable | no, always null | Adaptive second moment Ixy (stub) [arcsec^2] | +| `ixxErr` | float, nullable | no, always null | Uncertainty in ixx (stub) [arcsec^2] | +| `iyyErr` | float, nullable | no, always null | Uncertainty in iyy (stub) [arcsec^2] | +| `ixyErr` | float, nullable | no, always null | Uncertainty in ixy (stub) [arcsec^2] | +| `elong` | float, nullable | no, always null | Elongation of source: ratio of major to minor axis (stub) | +| `psfFitFlags` | long | yes | Bitmask of PhotUtils PSFPhotometry fit-condition flags; bit definitions follow the photutils version used by the pipeline | +| `pixelFlags_saturated` | boolean, nullable | no, always null | Source has saturated pixels (stub) | +| `pixelFlags_bad` | boolean, nullable | no, always null | Source has bad pixels (stub) | +| `pixelFlags_edge` | boolean, nullable | no, always null | Source is near detector edge (stub) | +| `pixelFlags_cr` | boolean, nullable | no, always null | Source has cosmic ray pixels (stub) | +| `centroid_flag` | boolean, nullable | yes | Centroid measurement failed (position outside image, at a fit bound, or non-finite) | +| `apFlux_flag` | boolean, nullable | no, always null | Aperture flux measurement failed (stub) | +| `psfFlux_flag` | boolean, nullable | yes | PSF flux measurement failed (non-positive or non-finite flux, non-convergence, or missing covariance) | +| `scienceFlux_flag` | boolean, nullable | no, always null | Science flux measurement failed (stub) | +| `refFlux_flag` | boolean, nullable | no, always null | Reference flux measurement failed (stub) | +| `isSSCandidate` | boolean, nullable | yes | Suspected solar system object: a known SS object is predicted within SS_CANDIDATE_SEP_ARCSEC of this source (see ssMatches); null if association was not run for this detection | +| `firstRefMjd` | double, nullable | yes | Start MJD of the earliest exposure, among those coadded into the reference image this detection was made against, whose footprint holds this position; null if none does (UTC scale) [MJD] | +| `lastRefMjd` | double, nullable | yes | Start MJD of the latest exposure, among those coadded into the reference image this detection was made against, whose footprint holds this position; null if none does (UTC scale) [MJD] | +| `refMayContainObject` | boolean, nullable | no, always null | true if the object was first detected at or before lastRefMjd, so its light may be in the template; a date comparison, not a measurement (stub) | +| `field` | int | yes | Roman field identifier | +| `hp6` | int | yes | HEALPix index at nside=64 (order 6) | +| `hp9` | int | yes | HEALPix index at nside=512 (order 9) | +| `pid` | long | yes | Processing ID for science image | +| `observation_id` | string, nullable | yes | Roman observation ID: concatenated observation hierarchy including the exposure counter; uniquely identifies the Roman exposure | +| `program` | int, nullable | yes | Roman program number (negative for simulations) | +| `plan` | int, nullable | yes | Roman execution plan number | +| `pass` | int, nullable | yes | Roman pass number | +| `segment` | int, nullable | yes | Roman segment number | +| `observation` | int, nullable | yes | Roman observation number within the segment | +| `visit` | int, nullable | yes | Roman visit number; a visit groups multiple exposures, so this is NOT a per-image identifier; use expId or observation_id for that | +| `exposure` | int, nullable | yes | Roman exposure counter within the visit | +| `survey` | string, nullable | yes | Survey title of the program (null when the program is not yet in the Surveys table) | + +Declared but not in the schema: `ssObjectId`, `timeWithdrawnMjd`, `trailFlux`, `trailFluxErr`, `trailLength`, `trailAngle`, `dipoleMeanFlux`, `dipoleFluxErr`, `dipoleLength`, `dipoleAngle`. + +### The `diaForcedSource` record + +Forced photometry measurement at a diaObject position. + +| Field | Type | Filled | Meaning | +|---|---|---|---| +| `diaForcedSourceId` | long | yes | Unique identifier for this forced source measurement | +| `diaObjectId` | long | yes | Associated diaObject identifier | +| `expId` | long | yes | RAPID-assigned exposure identifier | +| `detector` | int | yes | Detector (SCA) number | +| `ra` | double | yes | Right ascension of forced measurement position; ICRS [deg] | +| `dec` | double | yes | Declination of forced measurement position; ICRS [deg] | +| `band` | string, nullable | yes | Filter band name | +| `psfFlux` | float, nullable | yes | Forced PSF flux on difference image [nJy] | +| `psfFluxErr` | float, nullable | yes | Uncertainty in psfFlux [nJy] | +| `scienceFlux` | float, nullable | yes | Forced PSF flux on science image (stub) [nJy] | +| `scienceFluxErr` | float, nullable | yes | Uncertainty in scienceFlux (stub) [nJy] | +| `zeroPoint` | float, nullable | yes | AB zero point of the image the fluxes were measured on: the magnitude of 1 DN/s [mag] | +| `pixelAreaFactor` | float, nullable | yes | Pixel area map value at the measured position, a factor in the fluxes; null when the image has no map | +| `midpointMjd` | double | yes | Effective mid-observation time: the exposure start plus half the exposure time (UTC scale) [MJD] | +| `timeProcessedMjd` | double | yes | Time measurement was processed (UTC scale) [MJD] | + +Declared but not in the schema: `timeWithdrawnMjd`. + +### The `diaObject` record + +Astronomical object derived from DIASources. + +| Field | Type | Filled | Meaning | +|---|---|---|---| +| `diaObjectId` | long | yes | Unique identifier for this object | +| `ra0` | double | yes | First measured right ascension of object centroid; ICRS [deg] | +| `dec0` | double | yes | First measured declination of object centroid; ICRS [deg] | +| `meanRa` | double, nullable | yes | Mean right ascension of object centroid; ICRS [deg] | +| `meanDec` | double, nullable | yes | Mean declination of object centroid; ICRS [deg] | +| `raSigma` | float, nullable | yes | Standard deviation of associated right ascensions [deg] | +| `decSigma` | float, nullable | yes | Standard deviation of associated declinations [deg] | +| `nDiaSources` | int | yes | Total number of associated DIASources, over the whole history | +| `nDiaCoverage` | int, nullable | yes | Number of L2 images whose footprint held the object position, over the whole history | +| `firstDiaSourceMjd` | double, nullable | yes | MJD of earliest associated diaSource (UTC scale) [MJD] | +| `lastDiaSourceMjd` | double, nullable | yes | MJD of latest associated diaSource (UTC scale) [MJD] | +| `validityStartMjd` | double | yes | Start of validity interval for this object summary (UTC scale) [MJD] | +| `photoZ` | float, nullable | no, always null | Photometric redshift of the object or its host (stub) | +| `photoZErr` | float, nullable | no, always null | Uncertainty of photoZ (stub) | +| `F062PsfFluxMean` | float, nullable | yes | Mean PSF flux in F062 [nJy] | +| `F062PsfFluxMeanErr` | float, nullable | yes | Uncertainty in F062PsfFluxMean [nJy] | +| `F062PsfFluxSigma` | float, nullable | yes | Std dev of PSF flux in F062 [nJy] | +| `F062PsfFluxNdata` | int, nullable | yes | Number of F062 measurements | +| `F062PsfFluxMin` | float, nullable | yes | Minimum PSF flux in F062 [nJy] | +| `F062PsfFluxMax` | float, nullable | yes | Maximum PSF flux in F062 [nJy] | +| `F062PsfFluxMaxSlope` | float, nullable | yes | Maximum slope of PSF flux between any two F062 epochs [nJy/day] | +| `F062PsfFluxErrMean` | float, nullable | yes | Mean of PSF flux errors in F062 [nJy] | +| `F087PsfFluxMean` | float, nullable | yes | Mean PSF flux in F087 [nJy] | +| `F087PsfFluxMeanErr` | float, nullable | yes | Uncertainty in F087PsfFluxMean [nJy] | +| `F087PsfFluxSigma` | float, nullable | yes | Std dev of PSF flux in F087 [nJy] | +| `F087PsfFluxNdata` | int, nullable | yes | Number of F087 measurements | +| `F087PsfFluxMin` | float, nullable | yes | Minimum PSF flux in F087 [nJy] | +| `F087PsfFluxMax` | float, nullable | yes | Maximum PSF flux in F087 [nJy] | +| `F087PsfFluxMaxSlope` | float, nullable | yes | Maximum slope of PSF flux between any two F087 epochs [nJy/day] | +| `F087PsfFluxErrMean` | float, nullable | yes | Mean of PSF flux errors in F087 [nJy] | +| `F106PsfFluxMean` | float, nullable | yes | Mean PSF flux in F106 [nJy] | +| `F106PsfFluxMeanErr` | float, nullable | yes | Uncertainty in F106PsfFluxMean [nJy] | +| `F106PsfFluxSigma` | float, nullable | yes | Std dev of PSF flux in F106 [nJy] | +| `F106PsfFluxNdata` | int, nullable | yes | Number of F106 measurements | +| `F106PsfFluxMin` | float, nullable | yes | Minimum PSF flux in F106 [nJy] | +| `F106PsfFluxMax` | float, nullable | yes | Maximum PSF flux in F106 [nJy] | +| `F106PsfFluxMaxSlope` | float, nullable | yes | Maximum slope of PSF flux between any two F106 epochs [nJy/day] | +| `F106PsfFluxErrMean` | float, nullable | yes | Mean of PSF flux errors in F106 [nJy] | +| `F129PsfFluxMean` | float, nullable | yes | Mean PSF flux in F129 [nJy] | +| `F129PsfFluxMeanErr` | float, nullable | yes | Uncertainty in F129PsfFluxMean [nJy] | +| `F129PsfFluxSigma` | float, nullable | yes | Std dev of PSF flux in F129 [nJy] | +| `F129PsfFluxNdata` | int, nullable | yes | Number of F129 measurements | +| `F129PsfFluxMin` | float, nullable | yes | Minimum PSF flux in F129 [nJy] | +| `F129PsfFluxMax` | float, nullable | yes | Maximum PSF flux in F129 [nJy] | +| `F129PsfFluxMaxSlope` | float, nullable | yes | Maximum slope of PSF flux between any two F129 epochs [nJy/day] | +| `F129PsfFluxErrMean` | float, nullable | yes | Mean of PSF flux errors in F129 [nJy] | +| `F146PsfFluxMean` | float, nullable | yes | Mean PSF flux in F146 [nJy] | +| `F146PsfFluxMeanErr` | float, nullable | yes | Uncertainty in F146PsfFluxMean [nJy] | +| `F146PsfFluxSigma` | float, nullable | yes | Std dev of PSF flux in F146 [nJy] | +| `F146PsfFluxNdata` | int, nullable | yes | Number of F146 measurements | +| `F146PsfFluxMin` | float, nullable | yes | Minimum PSF flux in F146 [nJy] | +| `F146PsfFluxMax` | float, nullable | yes | Maximum PSF flux in F146 [nJy] | +| `F146PsfFluxMaxSlope` | float, nullable | yes | Maximum slope of PSF flux between any two F146 epochs [nJy/day] | +| `F146PsfFluxErrMean` | float, nullable | yes | Mean of PSF flux errors in F146 [nJy] | +| `F158PsfFluxMean` | float, nullable | yes | Mean PSF flux in F158 [nJy] | +| `F158PsfFluxMeanErr` | float, nullable | yes | Uncertainty in F158PsfFluxMean [nJy] | +| `F158PsfFluxSigma` | float, nullable | yes | Std dev of PSF flux in F158 [nJy] | +| `F158PsfFluxNdata` | int, nullable | yes | Number of F158 measurements | +| `F158PsfFluxMin` | float, nullable | yes | Minimum PSF flux in F158 [nJy] | +| `F158PsfFluxMax` | float, nullable | yes | Maximum PSF flux in F158 [nJy] | +| `F158PsfFluxMaxSlope` | float, nullable | yes | Maximum slope of PSF flux between any two F158 epochs [nJy/day] | +| `F158PsfFluxErrMean` | float, nullable | yes | Mean of PSF flux errors in F158 [nJy] | +| `F184PsfFluxMean` | float, nullable | yes | Mean PSF flux in F184 [nJy] | +| `F184PsfFluxMeanErr` | float, nullable | yes | Uncertainty in F184PsfFluxMean [nJy] | +| `F184PsfFluxSigma` | float, nullable | yes | Std dev of PSF flux in F184 [nJy] | +| `F184PsfFluxNdata` | int, nullable | yes | Number of F184 measurements | +| `F184PsfFluxMin` | float, nullable | yes | Minimum PSF flux in F184 [nJy] | +| `F184PsfFluxMax` | float, nullable | yes | Maximum PSF flux in F184 [nJy] | +| `F184PsfFluxMaxSlope` | float, nullable | yes | Maximum slope of PSF flux between any two F184 epochs [nJy/day] | +| `F184PsfFluxErrMean` | float, nullable | yes | Mean of PSF flux errors in F184 [nJy] | +| `F213PsfFluxMean` | float, nullable | yes | Mean PSF flux in F213 [nJy] | +| `F213PsfFluxMeanErr` | float, nullable | yes | Uncertainty in F213PsfFluxMean [nJy] | +| `F213PsfFluxSigma` | float, nullable | yes | Std dev of PSF flux in F213 [nJy] | +| `F213PsfFluxNdata` | int, nullable | yes | Number of F213 measurements | +| `F213PsfFluxMin` | float, nullable | yes | Minimum PSF flux in F213 [nJy] | +| `F213PsfFluxMax` | float, nullable | yes | Maximum PSF flux in F213 [nJy] | +| `F213PsfFluxMaxSlope` | float, nullable | yes | Maximum slope of PSF flux between any two F213 epochs [nJy/day] | +| `F213PsfFluxErrMean` | float, nullable | yes | Mean of PSF flux errors in F213 [nJy] | + +### The `ssMatch` record + +Known solar system object predicted near the triggering source (stub). + +| Field | Type | Filled | Meaning | +|---|---|---|---| +| `designation` | string | yes | MPC designation of the solar system object | +| `ra` | double | yes | Predicted right ascension of the object at midpointMjd; ICRS [deg] | +| `dec` | double | yes | Predicted declination of the object at midpointMjd; ICRS [deg] | +| `sep` | float | yes | Angular separation from the triggering source position [arcsec] | +| `pa` | float | yes | Position angle from the triggering source to the object, East of North [deg] | +| `predVMag` | float, nullable | yes | Predicted V-band magnitude from MPC H/G photometric parameters; null when the object has no catalogued H [mag] | + +### The `refMatch` record + +Reference-image catalog source near the triggering source. + +| Field | Type | Filled | Meaning | +|---|---|---|---| +| `sourceId` | string | yes | SExtractor NUMBER of the reference source, unique within this field's mosaic catalog | +| `ra` | double | yes | Right ascension of the reference source; ICRS [deg] | +| `dec` | double | yes | Declination of the reference source; ICRS [deg] | +| `sep` | float | yes | Angular separation from the triggering source position [arcsec] | +| `pa` | float | yes | Position angle from the triggering source to the reference source, East of North [deg] | +| `classStar` | float | yes | SExtractor CLASS_STAR star/galaxy score (1 = point-like); the star/galaxy array split uses providers.REFCAT_STAR_MIN_CLASS, recorded here so consumers can re-cut | +| `flags` | int | yes | SExtractor extraction FLAGS bitmask of the reference source (2 = blended, 4 = saturated, ...) | +| `magAuto` | float, nullable | yes | Kron-like automatic-aperture magnitude MAG_AUTO (AB, on the reference image's MAGZP); null when the measurement failed [mag] | +| `magErrAuto` | float, nullable | yes | Uncertainty in magAuto; null with magAuto [mag] | +| `elong` | float, nullable | yes | SExtractor ELONGATION (major/minor axis ratio) | +| `fwhm` | float, nullable | yes | FWHM assuming a Gaussian core (FWHM_IMAGE) [arcsec] | +| `halfLightRadius` | float, nullable | yes | Radius enclosing half of the source flux (FLUX_RADIUS at fraction 0.5); with magAuto, supports size-normalized host separations [arcsec] | +| `kronRadius` | float, nullable | yes | Kron aperture scale factor (KRON_RADIUS, dimensionless; multiplies the profile's A_IMAGE per SExtractor convention) | + +### The `nedMatch` record + +NED candidate host galaxy near the triggering source. + +| Field | Type | Filled | Meaning | +|---|---|---|---| +| `prefName` | string | yes | NED preferred object name; the key for any NED lookup (NED has no stable numeric object id in this product) | +| `ra` | double | yes | Right ascension of the NED object; ICRS [deg] | +| `dec` | double | yes | Declination of the NED object; ICRS [deg] | +| `sep` | float | yes | Angular separation from the triggering source position [arcsec] | +| `pa` | float | yes | Position angle from the triggering source to the NED object, East of North [deg] | +| `type` | string, nullable | yes | NED preferred object type (G, GPair, QSO, ...); null when NED has not classified the entry. | +| `z` | float, nullable | yes | NED preferred redshift; null when NED has none. Frame is as published (assumed heliocentric, not CMB-corrected; NED does not document this); check zFlag before using | +| `zUnc` | float, nullable | yes | Uncertainty in z; null when NED gives none | +| `zFlag` | string, nullable | yes | NED redshift code: technique (S = spectroscopic, P = photometric, M = modelled) + 2-char method + optional '?' (uncertain), e.g. 'SLS'. Require zFlag[0] == 'S' for a secure host redshift; without this z is not interpretable | + +### The `lvsMatch` record + +NED-LVS local-volume galaxy near the triggering source. + +| Field | Type | Filled | Meaning | +|---|---|---|---| +| `prefName` | string | yes | NED preferred object name (NED-LVS objname); the same name as nedMatch.prefName, so the two arrays join by it | +| `ra` | double | yes | Right ascension of the galaxy; ICRS [deg] | +| `dec` | double | yes | Declination of the galaxy; ICRS [deg] | +| `sep` | float | yes | Angular separation from the triggering source position [arcsec] | +| `pa` | float | yes | Position angle from the triggering source to the galaxy, East of North [deg] | +| `objType` | string, nullable | yes | NED preferred object type (G, GPair, ...) | +| `z` | float, nullable | yes | NED-LVS fiducial redshift, heliocentric; null when none | +| `zUnc` | float, nullable | yes | Uncertainty in z; null when unpublished | +| `zTech` | string, nullable | yes | How z was measured: SPEC, PHOT, UNKN, INFD (inferred) or MOD (modelled); the redshift-quality handle | +| `zQual` | boolean | yes | NED-LVS redshift quality flag: True = flagged UNRELIABLE (NED-LVS polarity, kept as published) | +| `distMpc` | float, nullable | yes | The distance NED-LVS adopts for this galaxy [Mpc] | +| `distMpcUnc` | float, nullable | yes | Uncertainty in distMpc [Mpc] | +| `distMethod` | string, nullable | yes | Which measurement distMpc came from: 'Redshift' (from z; 99% of galaxies) or 'zIndependent' (a NED-D measurement; Cepheids, TRGB, SNe Ia, ...; distMpc is then that value) | +| `diam` | float, nullable | yes | Angular major-axis diameter 2a; null when NED-LVS has no fiducial diameter (~19% of galaxies) [arcsec] | +| `diamBA` | float, nullable | yes | Minor-to-major axis ratio of the diameter ellipse | +| `diamPA` | float, nullable | yes | Position angle of the diameter ellipse, East of North [deg] | +| `diamQual` | boolean | yes | NED-LVS diameter quality flag: True = flagged HIGHLY UNCERTAIN (NED-LVS polarity, kept as published) | +| `ebv` | float, nullable | yes | Foreground Milky Way reddening E(B-V), Schlafly & Finkbeiner 2011 [mag] | +| `magKs` | float, nullable | yes | 2MASS Ks apparent magnitude, Vega system [mag] | +| `magKsUnc` | float, nullable | yes | Uncertainty in magKs [mag] | +| `magW1` | float, nullable | yes | WISE W1 apparent magnitude, Vega system [mag] | +| `magW1Unc` | float, nullable | yes | Uncertainty in magW1 [mag] | +| `magNUV` | float, nullable | yes | GALEX NUV apparent magnitude, AB system [mag] | +| `magNUVUnc` | float, nullable | yes | Uncertainty in magNUV [mag] | +| `sfr` | double, nullable | yes | Star-formation rate from the FUV+W4 hybrid scaling relation [Msun/yr] | +| `sfrUnc` | double, nullable | yes | Uncertainty in sfr [Msun/yr] | +| `mStar` | double, nullable | yes | Stellar mass from the W1 luminosity scaling relation [Msun] | +| `mStarUnc` | double, nullable | yes | Uncertainty in mStar [Msun] | + +### The `gaiaMatch` record + +Gaia DR3 source near the triggering source, at its epoch. + +| Field | Type | Filled | Meaning | +|---|---|---|---| +| `sourceId` | long | yes | Gaia DR3 source_id (stable within DR3; changes between releases) | +| `ra` | double | yes | Right ascension of the source PROPAGATED by proper motion to the triggering source's epoch (mjdobs); ICRS [deg] | +| `dec` | double | yes | Declination of the source at the triggering source's epoch; ICRS [deg] | +| `sep` | float | yes | Angular separation from the triggering source position, at its epoch [arcsec] | +| `pa` | float | yes | Position angle from the triggering source to the Gaia source, East of North [deg] | +| `pmRA` | float, nullable | yes | Proper motion in right ascension, pmra*cos(dec) [mas/yr] | +| `pmDec` | float, nullable | yes | Proper motion in declination [mas/yr] | +| `parallax` | float, nullable | yes | Parallax [mas] | +| `parallaxUnc` | float, nullable | yes | Uncertainty in parallax [mas] | +| `ruwe` | float, nullable | yes | Renormalised unit weight error of the astrometric fit; > 1.4 suggests a poor single-star fit (binary, blend) | +| `magG` | float, nullable | yes | Mean G magnitude, Vega [mag] | +| `magBP` | float, nullable | yes | Mean integrated BP magnitude, Vega [mag] | +| `magRP` | float, nullable | yes | Mean integrated RP magnitude, Vega [mag] | +| `bpRp` | float, nullable | yes | BP - RP colour [mag] | +| `fluxOverErrG` | float, nullable | yes | Mean G flux divided by its error; low values at a given magnitude indicate variability | +| `variable` | boolean | yes | True if Gaia's variability analysis classified the source as VARIABLE (phot_variable_flag); False also when not analysed | +| `nonSingleStar` | int | yes | Gaia non_single_star bit flags: 0 none, 1 astrometric binary, 2 spectroscopic binary, 4 eclipsing binary | +| `inQsoCandidates` | boolean | yes | True if the source is in Gaia's quasar-candidates table | +| `inGalaxyCandidates` | boolean | yes | True if the source is in Gaia's galaxy-candidates table | +| `probStar` | float, nullable | yes | DSC combined-model probability that the source is a star | +| `probGalaxy` | float, nullable | yes | DSC combined-model probability that the source is a galaxy | +| `probQuasar` | float, nullable | yes | DSC combined-model probability that the source is a quasar | +| `duplicatedSource` | boolean | yes | True if Gaia removed another source within ~2 arcsec during processing (possible blend or duplicate) | +| `ipdFracMultiPeak` | int | yes | Percentage of Gaia image windows with more than one peak; high values indicate a blend or resolved pair | ## The contract: best information at the time (2026-10-24) diff --git a/system/index.md b/system/index.md index d96ee35..2d38364 100644 --- a/system/index.md +++ b/system/index.md @@ -79,7 +79,7 @@ Each is kept as the record of its port. | [`maintain.md`](maintain) | retired | The `maintain` stage: the once-per-date CLUSTER and ANALYZE of a `sources` child table moved out of `load`, its `detector-date` unit, its manifest and exit codes | | [`crossmatch.md`](crossmatch) | retired | The `crossmatch` stage as ported from `dev`: one field's two passes, the catalog a pass reads (base plus delta), the per-field tables and their set-scoped keys, what lands in `astroobjects` and `merges`, the association set, its settings and exit codes | | [`statistics.md`](statistics) | retired | The `statistics` stage as ported from `dev`: per-object position and flux statistics over an association set's base-plus-delta membership, what lands in `astroobjectsmeta`, the statistics-set result set, its settings and exit codes | -| [`alerts.md`](alerts) | retired | The retired `alerts` stage as ported from `dev`'s alert production: the input-set manifest, what it reads from the source, association and statistics sets, the container and the alert outbox, its registration, settings and exit codes; its Kafka section points at the foundation's publication | +| [`alerts.md`](alerts) | retired; packet current | The alert packet at schema 00.08: every field of every record with its type, whether the pipeline fills it and its meaning, read from `rebuild`; then the retired `alerts` stage as ported from `dev`'s alert production: the input-set manifest, what it reads from the source, association and statistics sets, the container and the alert outbox, its registration, settings and exit codes; its Kafka section points at the foundation's publication | | [`prune.md`](prune) | retired | The `prune` stage: the not-best merge exclusion ported from `dev`'s `pruneNotBestMerges`, its `pruned-set` result set and `prunedmerges` rows, the run model's own-run exclusion clause, its settings and exit codes | | [`export.md`](export) | retired | The `export` stage as ported from `dev`'s `generateSourceHATSCatalog.py`: the named source sets it reads, the CSV dump and the `hats-import` build, the `catalog-export` bundle and registration, its settings and exit codes; the light-curve catalog is not ported | | [`finalize.md`](finalize) | retired | The `finalize` stage as ported from `dev`'s post-processing pipeline: the chain order, the manifest it republishes as new instances, the header stamp, its settings and exit codes |