Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/architecture/data-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,20 @@ Only the attributes listed are fetched. All checks below were run on 4 Nov 2026
| Comets (issue #68, Q-151, amends Q-62) | **Tested 9 Nov 2026** (67P, SPK-ID 1000012). A comet seen on several apparitions has one orbit record per apparition, so `COMMAND='DES=1000012;'` answers with the small-body index table and no `$$SOE` block ("Horizons result has no ephemeris block"). The `CAP` flag (closest apparition) selects one record: `COMMAND='DES=1000012;CAP;'` returns the ephemeris (Horizons API documentation: `DES=141P;CAP`). Bare `CAP;` means "last apparition before the current date" (Horizons manual), so the backend sends `CAP<JD` with the whole JD of the requested epoch (`DES=1000012;CAP<2461358;`, Q-167). It also works for a comet with a single record (C/2025 N1). An asteroid has no apparitions and `CAP` finds no match (`DES=20000433;CAP;` fails), so the backend adds it only when SBDB `kind` starts with `c` (`horizons.command`). |
| Lighting | **Tested 7 Nov 2026** (433 Eros). Observer ephemeris with `QUANTITIES='1,24'` and `CENTER='500@-163182'` (SPHEREx) adds the S-T-O phase angle; `EPHEM_TYPE=VECTORS`, `CENTER='500@10'`, `REF_PLANE=FRAME` gives the heliocentric ICRF vector, so the Sun direction is `-r/\|r\|`. Both are taken at the resolve epoch and the geocentre is the fallback if Horizons has no SPHEREx ephemeris (Q-62). Phase angle is tagged `measured` (R5.1), the Sun vector `derived`. The path is tagged `model_dependent` (Q-134, Q-141) although both come from the same orbit solution; one rule for Horizons-derived tags is still to decide (Q-62 item 4; conflict: [Q-201](../decisions/contract-tags.md)). |

**Horizons quantities for tail angles and position uncertainty (checked 25 Nov 2026, #198; resolves V12 of [A22.14](discovery-hunts.md#a2214-open-items-and-items-to-verify)).** Codes and meanings come from the Horizons manual (Observer Table Quantities, ssd.jpl.nasa.gov/horizons/manual.html); the column names and units from one real reply for 433 Eros, seen from SPHEREx, on 20 Mar 2026. This records facts only: it chooses no cut for H4 or H5 and changes no adapter (`horizons.py` asks for `1`, `1,24` and `1,36`; never 27, 37 or 38).

| Quantity | Columns in the reply | Unit and meaning |
|---|---|---|
| 27 | `PsAng`, `PsAMV` | deg. Position angle, counter-clockwise (east) from the reference-frame north pole, in the observer's plane of sky, of the extended Sun-to-target vector (`PsAng`, the anti-sunward direction, a gas tail) and of the negative heliocentric velocity vector (`PsAMV`, a dust tail). Small bodies only. |
| 36 | `RA_3sigma`, `DEC_3sigma` | arcsec. Formal ±3σ around the nominal position. |
| 37 | `SMAA_3sig`, `SMIA_3sig`, `Theta`, `Area_3sig` | arcsec, arcsec, deg, arcsec². Semi-major and semi-minor axes of the 3σ error ellipse in the plane of sky; `Theta` is clockwise from increasing RA, toward increasing Dec, to the major axis; area of the ellipse. |
| 38 | `POS_3sigma` | arcsec. Root-sum-of-squares of the ellipse's two semi-axes: one circular radius that encloses the ellipse. |

- **Query used (25 Nov 2026).** `https://ssd.jpl.nasa.gov/api/horizons.api` with `format=json`, `COMMAND='DES=20000433;'`, `OBJ_DATA='NO'`, `MAKE_EPHEM='YES'`, `EPHEM_TYPE='OBSERVER'`, `CENTER='500@-163182'`, `TLIST_TYPE='JD'`, `TIME_TYPE='UT'`, `TLIST='2461119.856750'` (answered as 2026-Mar-20 08:33:43.200 UT), `QUANTITIES='1,27,36,37,38'`, `ANG_FORMAT='DEG'`, `CSV_FORMAT='YES'`, `EXTRA_PREC='YES'`: the same parameters `_observer_params` in `horizons.py` builds.
- **Reply.** Header: `Date__(UT)__HR:MN:SC.fff, , , R.A.___(ICRF), DEC____(ICRF), PsAng, PsAMV, RA_3sigma, DEC_3sigma, SMAA_3sig, SMIA_3sig, Theta, Area_3sig, POS_3sigma,`. Row: `2026-Mar-20 08:33:43.200, , , 90.748069927, 13.559122752, 90.069, 299.480, 0.014, 0.017, 0.019, 0.012, -62.036, 0.0007108, 0.022,`. Eros is very well determined: Eros's hundredths-of-an-arcsecond uncertainties aren't representative for H4's match radius.
- **Traps.** Two empty flag columns follow the date, and every row ends with a comma. The values are ±3σ, not 1σ. Horizons says the uncertainties are formal: they assume random observation errors and can be optimistic far from the solution epoch or for objects with close planetary encounters. Horizons returns `n.a.` when a quantity isn't available (e.g. uncertainties for an object with no covariance **[verify]**). This matters for H4; `parse_sigma` already maps it to `None`.
- These values are tagged `model_dependent` when used ([A19.9](moving-objects/track-contract.md#a199-export)).

### A3.5 IMCCE SkyBoT

| Item | Detail |
Expand Down
6 changes: 3 additions & 3 deletions docs/architecture/discovery-hunts.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ Sources this spec adds to [A3](data-sources.md) (to move there when the spec is
| **Pan-STARRS, VHS, UKIDSS** | Visible and near-infrared catalogues. | MAST, ESO, WSA | H2 (reject ordinary stars), H7 (hosts) | Not researched in detail **[verify]** |
| **IRAS 100 µm (IRIS or SFD dust maps)** | Galactic dust emission behind each H9 candidate. | IRSA (IRIS), or the SFD map through `dustmaps` | H9 (dust screen, R-46) | Decided (R-46); product and licence **[verify]** |
| **Minor Planet Center** | Orbit file (MPCORB), ADES submission. | MPC downloads and submission service | H4, H5, H11 | Since Aug 2025 archive submitters must be verified and get a program code per observatory code ([newsletters Jul](https://www.minorplanetcenter.net/media/newsletters/MPC_Newsletter_Jul2025.pdf) and [Oct 2025](https://minorplanetcenter.net/media/newsletters/MPC_Newsletter_Oct2025.pdf); [program-codes policy](https://www.minorplanetcenter.net/mpcops/documentation/program-codes-policy/)). SPHEREx is not on the [SARC archive list](https://docs.minorplanetcenter.net/mpc-ops-docs/data-and-services/sarc/) and has no observatory code: ask (R-12) |
| **JPL Horizons, SkyBoT** | Positions of known objects seen from SPHEREx (`500@-163182`, Q-138) or from the ground; Sun and velocity position angles. | As built | H4, H5 | Tested (as built) |
| **JPL Horizons, SkyBoT** | Positions of known objects seen from SPHEREx (`500@-163182`, Q-138) or from the ground; Sun and velocity position angles. | As built | H4, H5 | Tested (as built); position angles: Tested 25 Nov 2026 (quantity 27, [A3.4](data-sources.md#a34-jpl-horizons)); not requested by the adapter yet |
| **AAVSO VSX, ASAS-SN, Chen et al. 2020** | Known variable stars. The Chen et al. ZTF catalogue (781,602 periodic variables) is downloadable and can be shipped as a local cross-match table. | VSX query service; VizieR; Zenodo | H1, H7 | Documented ([Chen et al. 2020](https://arxiv.org/abs/2005.08662)); VSX API terms **[verify]** |
| **Transient Name Server** | Public object list. | TNS | H7 | API key and terms for a public tool **[verify]** |
| **TOI list, ExoFOP, NASA Exoplanet Archive** | Known planets and candidates. | Public tables (adapter exists for the archive) | H3 | Documented |
Expand Down Expand Up @@ -835,7 +835,7 @@ Rocks at V 19 to 22 will mostly be invisible in single frames. Stages A1 to A3 a

**At home.** Cutouts of a few hundred KB each; profile work on the CPU.

**Open.** NOIRLab cutout access and limits; the exact Horizons quantities for the two angles; cutout size.
**Open.** NOIRLab cutout access and limits; cutout size. **Resolved (V12, checked 25 Nov 2026):** the two predicted angles are Horizons quantity 27 ([A3.4](data-sources.md#a34-jpl-horizons)).

#### A22.9.6 H6 Gravitational lenses: removed

Expand Down Expand Up @@ -1227,7 +1227,7 @@ The first draft's research (17 Nov 2026) was at the level of search results and
| V9 | Euclid DR1 | Resolved and moot (H6 removed) |
| V10 | Broker APIs | Partly resolved: Lasair token and limits, ALeRCE public. Region query endpoints open. |
| V11 | NOIRLab: DECam cutouts and the Source Catalog; proprietary period | Open (release 2) |
| V12 | Horizons quantities for tail angles and position uncertainty | Open |
| V12 | Horizons quantities for tail angles and position uncertainty | Resolved (checked 25 Nov 2026): quantity 27 gives the two angles, quantities 36 to 38 the 3σ uncertainty; codes, columns, units and the query are in [A3.4](data-sources.md#a34-jpl-horizons) |
| V27 | Rubin data rights for users in Mauritius | Open (images not used either way) |
| V28 | ZTF-3 end date (31 Dec 2026) and what follows | Open |

Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/moving-objects/track.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Track is the `track` kind of the shell's split pane (A21.8 in [sky-shell-behavio
### A19.4 Positions

- **Observer:** SPHEREx, `500@-163182` ([A3.4](../data-sources.md#a34-jpl-horizons), Q-138). Everything Track draws for the object uses it: path, marker, predicted ring, path segment in the zoom.
- **At each frame:** an exact Horizons `TLIST` at the frame midpoint (`exact_positions` in `backend/app/core/find/moving.py`). The 3σ RA/Dec uncertainty is added from the same request (Horizons quantity 36 **[verify]**); the code does not ask for it yet (`QUANTITIES='1'`), so `/path` serves `ra_3sigma_arcsec` and `dec_3sigma_arcsec` as `null` (cut for the event, issue #74).
- **At each frame:** an exact Horizons `TLIST` at the frame midpoint (`exact_positions` in `backend/app/core/find/moving.py`). The 3σ RA/Dec uncertainty is added from the same request (Horizons quantity 36, [A3.4](../data-sources.md#a34-jpl-horizons)); Track's `exact_positions` does not ask for it yet (`QUANTITIES='1'`), so `/path` serves `ra_3sigma_arcsec` and `dec_3sigma_arcsec` as `null` (cut for the event, issue #74).
- **Path line:** the 10-min samples of the same ephemeris (`SX_MOVING_EPHEM_STEP_MIN`, inside the ~95 min orbit, so the parallax wobble is sampled). Windows are never joined across a gap.
- **Marker between exposures** (Q-142): linear in the unit vector between the two nearest 10-min samples (the path search's interpolation formula, A4.1 step 3). Error bound for a parallax amplitude `A` and orbital period `P`: about `A·(π·h/P)²/2` for a step `h`; for Eros (`A` ≈ 25″, `h` = 10 min) about 1.4″ (0.2 px) **[verify]** against the TLIST positions. At an exposure time the marker snaps to the exact TLIST position. An hourly table is never used (up to 6″ on Eros, Q-138). **Proposed (Q-185)**, clarifying Q-138 and Q-142.
- **Tags:** RA/Dec, `x`/`y`, path and marker `model_dependent`, with the path search's assumption ([Q-125](../../decisions/moving-frames.md)): "JPL Horizons orbit solution; astrometric RA/Dec (ICRF) seen from the SPHEREx spacecraft (CENTER=500@-163182), TIME_TYPE=UT, at the frame midpoint" (for the path: "every 10 min, linear between samples").
Expand Down
Loading