CosmosCatalog
Object model, storage and search of the catalogues. Depends on CosmosCore only (and the system SQLite3
library, which needs no manifest change on macOS). No third-party code.
1. What is implemented
| File | API | Notes |
|---|---|---|
Records.swift |
StarRecord, ExoplanetRecord, HostStarRecord, ExoplanetCandidateRecord, DeepSkyRecord, GalaxyRecord, GalaxyClusterRecord, MinorBodyRecord, SatelliteElementSet, ConstellationRecord, CatalogRecord (enum, JSON), StarFlags, DistanceMethod |
Every quantity is Measured<Double>?: unknown = nil. Catalogue-native units carry the unit in the property name (parallaxMas, orbitalPeriodDays); sky angles are radians, distances metres. |
Designation.swift |
Designation.normalize, tokens, starKey(of:), editDistance, constellations (88), StarKey |
Same rules in DataPipeline/catalogs/designations.py; 289 shared cases in Tests/Fixtures/designation_cases.json. |
SQLite.swift |
SQLiteDatabase (readOnlyImmutable / readWriteCreate), query with bound parameters, checkIntegrity, hasFTS5Trigram |
Packs are opened immutable=1: no WAL, no journal, no lock file. |
StarFile.swift |
StarFile (memory-mapped), RawStar, StarTile, StarSelection, StarPoint, stream, forEachRecord, index(of:), verify, StarTileCache, StarFileWriter |
Format in §3. |
CatalogPack.swift |
CatalogPack: CatalogProvider, CatalogPackManifest, CatalogSchema, searchRanked, object(for:), star(for:), coneSearch, forEachObject(kind:), children(of:) |
One installed pack. |
FederatedCatalog.swift |
FederatedCatalog: CatalogProvider, searchRanked, object(for:), preferredStarRecord, coneSearch, starStream, starSources |
All installed packs as one catalogue. |
Derived.swift |
StellarPhysics.absoluteMagnitude, bandLuminositySolar, temperature(fromBV:), direction(of:atJulianYear:), position(of:atJulianYear:), distance(fromParallaxMas:error:), HRDiagram.extract |
Each result has a status and, where feasible, a propagated uncertainty. |
MilkyWayModel.swift |
MilkyWayModel.Parameters, generate(count:seed:), assumptions, armCenterline, sunPosition |
Reconstruction, never an observation. |
How to use it
let catalog = try FederatedCatalog(packsDirectory: packsURL) // opens every installed catalogue pack
let hits = try catalog.searchRanked("alf CMa", limit: 20) // ranked; hits[0].summary.id == "hip:32349"
let object = try catalog.object(for: ObjectID("hip:32349")) // designations + typed records of every pack
let star = try catalog.preferredStarRecord(for: ObjectID("hip:70890")) // Gaia if well behaved, else Hipparcos
let near = try catalog.coneSearch(rightAscension: ra, declination: dec, radius: 1 * .pi / 180)
for try await batch in catalog.starStream(StarSelection(center: axis, radius: 0.5, limitingMagnitude: 9)) { … }
let hr = try HRDiagram.extract(from: catalog.pack("stars-gaia-nearby")!.stars!, system: .gaiaG)
let galaxy = MilkyWayModel().generate(count: 200_000, seed: 1) // .status == .reconstructed, .assumptionsCatalogProvider (summary(for:), search(_:limit:)) is implemented by CatalogPack and FederatedCatalog.
The 3D index of a star pack (octree.bin) is read with CosmosSpatial.OctreeFile; its payload is the record
index in stars.bin (CosmosCatalog cannot depend on CosmosSpatial, so the UI layer joins the two).
2. Identity and cross-identification
One object has one ObjectID whatever pack describes it; merging in FederatedCatalog is a merge by identifier.
| Objects | Identifier | How the identification is made | Failure modes |
|---|---|---|---|
| Star with a Hipparcos number | hip:<n>; its Gaia DR3 source_id is an alias resolving to the same object |
Gaia archive table gaiadr3.hipparcos2_best_neighbour (the archive's own cross-match), forced one-to-one (closest pair wins) |
99 525 of 117 955 Hipparcos stars matched. Unmatched: stars too bright for Gaia (Sirius, Vega, Canopus…), close binaries. StarFlags.ambiguousCrossMatch when the archive saw several neighbours; a wrong match is then possible. A Gaia star whose match is missing appears as a separate gaia3: object. |
| Other Gaia star | gaia3:<source_id> |
— | — |
| Nearby Gaia star without Hipparcos number | same, plus names (GJ, traditional) from HYG | position: Gaia J2016 moved to J2000 with its proper motion, separation < 60″, distances within 25 %, unique both ways (766 stars named) | Unnamed when HYG has no entry or the match is not unique; a wrong name is possible in close pairs. |
| Exoplanet / host | exo:<pl_name>; host hip:<n>, else gaia3:<id> as given by the archive, else exohost:<name> |
identifiers published by the NASA Exoplanet Archive | A host without HIP whose archive Gaia identifier is wrong or absent is not merged with the Gaia star. |
| NGC / IC / Messier | ngc:<n>, ic:<n> (Messier and duplicates are aliases); addendum objects by their own prefix (m:40, mel:22, …) |
OpenNGC | — |
| 2MRS galaxy | ngc: / ic: when the 2MRS catalogue name is an NGC/IC/Messier entry, else 2masx:<designation> |
name | Pairs: only the first 2MRS row takes the NGC identifier. |
| Local Group dwarf | ngc:/ic: when named so (M 32, M 33 = ngc:598, SMC = ngc:292), else lg:<name> |
name | LMC is lg:LMC (OpenNGC lists it under an ESO name). |
| Cluster, satellite, minor body, constellation, TOI | abell:<n>, norad:<n>, naif:<SPK-ID>, con:<Abbr>, toi:<n.nn> |
— | TOIs are not cross-identified with confirmed planets. |
Minor bodies use the JPL SPK-ID, i.e. the Horizons extended numbering of core-ephemeris/kepler_elements.json:
naif:20000001 = (1) Ceres (20 000 000 + number), naif:1000036 = 1P/Halley.
Stars present in several star packs carry membership bits (StarFlags.inStarter, inHipparcos, inGaiaNearby,
inGaiaG10, inGaiaG12) computed by the pipeline; FederatedCatalog.starStream streams packs in priority order
and skips a record whose star exists in a higher-priority installed pack. Tested on the installed data: 805 510
distinct stars from 942 058 records, none twice, none lost.
3. Storage
SQLite store (catalog.sqlite, schema version 1, CatalogSchema): meta, provenance, objects (id, kind,
name, status, provenance, ra/dec in radians, zone = floor(dec° + 90), mag, parent, typed record as JSON),
designations (normalised key norm, primary key (norm, oid)), names_fts (FTS5, trigram tokenizer: available
in the system SQLite 3.54), blobs, star_text (spectral types). Opened read-only and immutable; PRAGMA integrity_check on demand (verify: true). All queries are prepared statements with bound parameters.
Star file (stars.bin, magic COSMSTR1, version 1, little-endian, memory-mapped): header 128 bytes; tile
directory × 48 bytes (id, order, level, magnitude range, bounding cone, record range); records × 112 bytes (source
key, cross key, ra/dec f64, epoch, parallax ± error, proper motion ± errors, radial velocity ± error, distance
with low/high bounds, magnitude, two colour fields, secondary magnitude, Teff, RUWE, source, distance method,
flags); HIP index and Gaia index (sorted u64 key, u32 record, binary search). Absent float = NaN on disk = nil in
the API. Tiles are HEALPix nested pixels per magnitude band (< 6, 6–8, 8–10, 10–12, 12–14, 14–16, fainter), the
order chosen so that a tile holds ≤ 4 096 stars on average; records are sorted by magnitude inside a tile. A view
reads only the tiles whose cone meets its cone down to its limiting magnitude; nothing loads a whole catalogue.
StarFile.stream is pull-based (a tile is decoded when the consumer asks: backpressure), ends early on
cancellation, and StarTileCache bounds the decoded tiles (LRU by point count). Opening validates magic, version,
sizes, offsets, exact length and the tile directory; verify() reads everything (positions inside the tile cone,
magnitude order, indices). The byte layout is specified in the header comment of StarFile.swift. The Swift
writer and the pipeline writer produce identical bytes for identical input (tested).
4. Search
normalize: canonical decomposition, diacritics and apostrophes removed, lowercase; Greek letters → IAU
three-letter abbreviations; split into letter runs and digit runs (leading zeros removed); + kept, - kept only
inside coordinate-style names (after ≥ 4 digits); Messier → m, Gliese/Gl → gj; constellation genitives →
abbreviations; Greek letter names abbreviated in front of a constellation. So "HIP 32349" = "hip032349",
"M31" = "Messier 31", "α CMa" = "alf CMa" = "Alpha Canis Majoris", "TRAPPIST-1 e" = "trappist 1e".
Ranking (MatchClass): exact designation or name > proper-name prefix > other-designation prefix > substring of a
name (FTS5 trigram) > fuzzy (trigram candidates, optimal-string-alignment distance ≤ 1 up to 4 characters, ≤ 2 up
to 8, ≤ 3 beyond). Inside a class: smaller distance, shorter matched text, brighter object. "HIP n" and
"Gaia DR3 n" are resolved through the star-file indices (no database row needed). Cone search: 1° declination
zones with a right-ascension window per zone, exact test afterwards; stars through the tile directory.
Measured on the full installed data (11 packs, 963 730 database-or-file objects; 2026-11-24, MacBook Pro M5 Max, release build, 1-minute load average 13–15 because other builds were running: pessimistic):
| Query class (20 queries × 20 runs, 10 × 20 for the last two) | p50 | p95 | max |
|---|---|---|---|
| exact designation ("HIP 32349", "M31", "alf CMa", "Gaia DR3 …") | 2.9 ms | 5.7 ms | 8.9 ms |
| exact name ("Sirius", "Andromeda Galaxy") | 1.8 ms | 5.5 ms | 11.3 ms |
| prefix ("sir", "ngc 22", "a") | 2.5 ms | 20.9 ms | 30.2 ms |
| substring ("nebula") | 1.9 ms | 4.1 ms | 4.7 ms |
| fuzzy ("betelgeuze") | 1.4 ms | 2.5 ms | 3.5 ms |
| all 1 600 searches | 2.0 ms | 8.5 ms | 30.2 ms |
First search on a freshly opened catalogue: 1.9 ms. Opening the 11 packs: 13.7 ms (median of 10). Full verification (integrity check + star-file verification): 0.003–0.25 s per pack. Cone search (random directions, stars to magnitude 12): 0.1° p50 1.6 ms / p95 2.5 ms; 1° 1.9 / 2.7 ms; 5° (limit 500) 5.9 / 7.4 ms.
Streaming (de-duplicated federation): whole sky 805 510 stars in 0.079 s (10.3 M stars/s); magnitude ≤ 6.5:
11 308 stars in 1.4 ms; ≤ 9: 185 566 stars in 18 ms; 30° cone to magnitude 10: 41 062 stars in 8.9 ms (4.1 ms from
a warm tile cache); 5° cone: 1 927 stars in 2.2 ms. Raw record decoding: 13–15 M records/s.
Reproduce: swift run -c release cosmos-bench catalog.open catalog.search catalog.stream catalog.cone.
5. Distances, parallaxes and other honesty rules
- No naive 1/parallax. Gaia records carry the Bailer-Jones et al. (2021) geometric distance (posterior
median, 16th/84th percentiles → asymmetric uncertainty, status
estimated) or none. GCNS records carry the GCNS posterior distance. Hipparcos records use the Bailer-Jones distance of their Gaia counterpart when the match is unambiguous, RUWE ≤ 1.4, the Gaia parallax error is smaller and Gaia's S/N ≥ 5 (distanceFromCounterpart); otherwise 1/ϖ only when ϖ/σ ≥ 5 (statuscomputedat S/N ≥ 10,estimatedbelow, uncertainty 1/(ϖ ∓ σ)); otherwise no distance: the star keeps a direction only andStellarPhysics.positionreturns nil. - Negative or zero parallaxes are kept as published and flagged (
nonPositiveParallax); S/N < 5 is flagged (lowParallaxSNR). A Bailer-Jones distance of such a source is dominated by the prior: it is kept, flagged. Installed data: 942 058 records, 920 442 with a distance, 4 277 non-positive parallaxes, 65 959 below S/N 5 of which 44 346 keep a flagged model distance; no inverse-parallax distance below S/N 5 (testdistancePolicyHoldsForEveryInstalledStar). - Parallax zero point. Stored Gaia parallaxes are the published values; the Lindegren et al. (2021, A&A 649, A4) zero-point correction (tens of µas, depending on magnitude, colour, position) is not applied. The Bailer-Jones distances include it. Hipparcos parallaxes have no such correction.
- Epochs are kept: J1991.25 (Hipparcos), J2016.0 (Gaia). Proper motions, radial velocities (Gaia DR3; GCNS adopted
value), G/BP/RP, RUWE, GSP-Phot Teff (status
estimated; fetched for G ≤ 10 only) are stored when present. - Absolute magnitudes and band luminosities are not corrected for extinction and say so; luminosity is per band
(V or G), not bolometric.
temperature(fromBV:)(Ballesteros 2012) is a display estimate. - Galaxies: redshift (cz and z = cz/c, frame stated) and, when it exists, a redshift-independent distance
(Local Group: from the published distance modulus, status
computed). No distance derived from a redshift is stored; CosmosCosmology computes it at run time. - Exoplanets: published errors and limit flags are kept (
Uncertainty.upperLimit/.lowerLimit); masses from a mass–radius relation areestimated; missing parameters are absent (installed: 0 zero-valued parameters). TOIs are a separate pack with statusestimated. - Milky Way model: status
reconstructed; display choices that nobody measured arehypotheticaland listed inassumptions. No image of the Milky Way from outside exists. Parameters: Reid et al. (2019, ApJ 885, 131) Table 2 (seven arm segments with kinks, widths) and R₀ = 8.15 ± 0.15 kpc; Bland-Hawthorn & Gerhard (2016, ARA&A 54, 529) for z☉ = 25 ± 5 pc, thin disc 2.6 ± 0.5 kpc / 300 ± 50 pc, thick disc 2.0 ± 0.2 kpc / 900 ± 180 pc, bulge scale lengths (0.70, 0.44, 0.18) kpc at 27 ± 2°, long bar half-length 5.0 ± 0.2 kpc at 28°–33°, stellar masses (values checked against the papers' arXiv sources, 1910.03357 and 1602.07702, on 2026-11-24). Arms are drawn only over the azimuths that have parallax data.
6. Sources (all retrieved 2026-11-24)
| Source (provenance id) | Access, release | Licence / terms as stated | Acknowledgement | Transformation |
|---|---|---|---|---|
Hipparcos new reduction, van Leeuwen 2007 (esa-hipparcos-2007); Hipparcos 1997 for V, spectral type, HD (esa-hipparcos-1997) |
ESA Gaia Archive TAP https://gea.esac.esa.int/tap-server/tap, tables public.hipparcos_newreduction, public.hipparcos |
ESA Space Science Archives: CC BY-NC 3.0 IGO; "open and free to use … subject to proper acknowledgment"; commercial use needs prior authorisation (data.licences@esa.int). https://www.cosmos.esa.int/web/esdc/terms-and-conditions | ESA; van Leeuwen (2007) A&A 474, 653 | degrees → radians; distance rule of §5 |
Gaia DR3 gaia_source (esa-gaia-dr3) |
column subset gaia.dr3lite at GAVO https://dc.g-vo.org/tap (synchronous queries per magnitude bin); teff_gspphot and gaiadr3.hipparcos2_best_neighbour from the ESA archive |
CC BY-NC 3.0 IGO (https://www.cosmos.esa.int/web/gaia-users/license) | Gaia DPAC acknowledgement (in each manifest); Gaia Collaboration, Vallenari et al. (2023) A&A 674, A1 | degrees → radians; nothing corrected |
Gaia Catalogue of Nearby Stars (gaia-edr3-gcns) |
ESA archive external.gaiaedr3_gcns_main_1 |
CC BY-NC 3.0 IGO | Gaia Collaboration, Smart et al. (2021) A&A 649, A6 | kpc → pc |
Bailer-Jones distances (bailer-jones-2021) |
GAVO gedr3dist.main (the publisher of the catalogue) |
derived from Gaia EDR3 (ESA terms); citation requested | Bailer-Jones et al. (2021) AJ 161, 147 | joined on source_id, geometric estimate only |
IAU Catalog of Star Names (iau-csn) |
https://www.pas.rochester.edu/~emamajek/WGSN/IAU-CSN.txt, file of 2022-04-04 | Creative Commons Attribution (file header) | IAU WGSN | names attached by HIP number |
HYG v4.1 (hyg-v41) |
https://github.com/astronexus/HYG-Database | CC BY-SA 4.0 | D. Nash | cross-identifications only (HR, Bayer, Flamsteed, GJ, traditional names) |
OpenNGC v20260501 (openngc) |
https://github.com/mattiaverga/OpenNGC | CC BY-SA 4.0 | M. Verga; NED, HyperLEDA, SIMBAD, HEASARC, H. Corwin | sexagesimal → radians; duplicates folded as aliases |
Stellarium v26.3 sky culture "modern" (stellarium-modern) |
GitHub tag v26.3 | "Text and data: CC BY-SA 4.0" | Stellarium contributors | figures resolved to Hipparcos positions; B1875 edges interpolated every 0.25° and precessed to J2000 (IAU 1976), checked against VizieR VI/49 (1 850 points, all within the vertex spacing) |
NASA Exoplanet Archive pscomppars, toi (nasa-exoplanet-archive-*) |
https://exoplanetarchive.ipac.caltech.edu/TAP | no licence statement found; acknowledgement and citation of original references requested | standard NASA Exoplanet Archive acknowledgement; Christiansen et al. (2025) | pc → m; errors and limits kept |
2MRS v2.4 (2mrs) |
http://tdc-www.harvard.edu/2mrs/ | README: cite by bibcode; "Please do not redistribute any of these files." | Huchra et al. (2012) ApJS 199, 26 | z = cz/c |
Nearby dwarf galaxies, Jan 2021 (mcconnachie-2012) |
CADC, NearbyGalaxies_Jan2021_PUBLIC.fits |
no licence statement; citation requested | McConnachie (2012) AJ 144, 4 | distance from the distance modulus |
Abell/ACO (abell-aco-1989) |
VizieR VII/110A via the CfA mirror FTP | CDS rules-of-usage page unavailable on 2026-11-24 (CDS Strasbourg answered "Page unavailable"): terms not read | Abell, Corwin & Olowin (1989) ApJS 70, 1; VizieR | J2000 → radians |
JPL SBDB (jpl-sbdb) |
https://ssd-api.jpl.nasa.gov/sbdb_query.api | no licence statement in the API documentation | NASA/JPL-Caltech SSD | elements copied at full precision |
CelesTrak GP (celestrak-gp) |
https://celestrak.org/NORAD/elements/gp.php (groups stations, visual, gnss, geo), one request each | usage policy: one download per data update (2 h), stop on HTTP 301/403/404; no licence statement | CelesTrak (T. S. Kelso); 18 SDS | OMM fields copied |
Choices worth knowing:
- Hipparcos comes from the primary archive rather than HYG (HYG mixes sources and pre-computes distances by plain inversion); HYG is used for cross-identifications only, because the VizieR cross-index IV/27A could not be used under readable terms on the build day.
- Archive limits observed on 2026-11-24: ESA anonymous jobs are cut at 60 s and 50 000 rows (a 50 000-row answer is a truncated one: the adapter discards it and halves the batch); the ARI mirror left a job queued for 18 minutes; GAVO asynchronous jobs stayed queued while its synchronous endpoint answered at once. Hence: small adaptive batches at ESA, synchronous magnitude bins at GAVO.
- Redistribution classes in each manifest (
redistributionTerms.class→ schema-v1redistribution):yesandnon-commercial→redistributable;unverified(no licence stated, or terms unreadable) andno(2MRS) →localBuildOnly. The ESA licence is non-commercial: selling an application that bundles the star packs needs ESA's authorisation.
7. Packs built (in Resources/Packs, 2026-11-24)
| Pack | Size | Content | Redistribution |
|---|---|---|---|
starter |
8.2 MB | 10 685 stars (10 507 Hipparcos: V ≤ 6.5, or ≤ 25 pc, or IAU-named, or in a constellation figure, or exoplanet host; 178 Gaia-only within 10 pc), 88 constellations (boundaries + figures), 637 OpenNGC objects (all Messier, named, or V/B ≤ 10) | non-commercial (ESA) + CC BY-SA parts |
stars-hipparcos |
51.8 MB | 117 955 stars, 101 143 with a distance; names, Bayer, Flamsteed, HR, HD, GJ, spectral types | non-commercial |
stars-gaia-nearby |
55.0 MB | GCNS, 331 312 stars within 100 pc, all with a distance | non-commercial |
stars-gaia-g10 |
80.1 MB | all 482 106 Gaia DR3 sources with G ≤ 10; 477 502 with a distance | non-commercial |
exoplanets |
44.7 MB | 6 473 confirmed planets, 4 863 hosts | local build only (unverified) |
exoplanet-candidates |
12.2 MB | 8 175 TOIs with dispositions | local build only (unverified) |
deep-sky |
16.0 MB | 13 371 NGC/IC/addendum objects | yes (CC BY-SA 4.0) |
galaxies |
2.2 MB | 144 Local Group / nearby dwarfs (not the Milky Way nor M 31 themselves), 4 076 Abell/ACO clusters | local build only (unverified) |
galaxies-2mrs |
35.8 MB | 43 533 galaxies with heliocentric cz | local build only (no) |
satellites |
0.9 MB | 844 objects, element-set epoch per record | local build only (unverified) |
minor-bodies |
4.2 MB | 1 865 numbered asteroids (H ≤ 10), 610 numbered comets | local build only (unverified) |
Each pack: manifest.json (pack-manifest schema v1, validated with DataPipeline/packs/packtool.py validate:
all eleven VALID), catalog.sqlite, and for star packs stars.bin and octree.bin. Not built: stars-gaia-g12
(see §10) and an SDSS sample.
8. Rebuilding everything
DataPipeline/catalogs/build_all.sh # fetch (cached, resumable) + build + octrees + manifests
DataPipeline/catalogs/build_all.sh --no-fetch # rebuild from DataPipeline/raw/catalogs only
DataPipeline/catalogs/build_all.sh --g12 # also fetch 10 < G <= 12 and build stars-gaia-g12Steps it runs: fetch_sources.py all; fetch_gaia.py hipparcos | hipxm | gcns | tier … | teff …;
build_stars.py; build_objects.py; finalize.py; swift run -c release cosmos-bench catalog.build-octrees;
finalize.py. Python standard library only. Raw responses are cached under DataPipeline/raw/catalogs/<source>/
with a .meta.json (URL or query, UTC date, SHA-256); a re-run reuses them, so an interrupted fetch resumes.
Every adapter checks the columns it needs and row counts where they are fixed (117 955, 331 312, 43 533, 4 076,
88) and stops on a difference. Output is deterministic for given raw files. COSMOS_PACKS_DIR redirects the
output and the tests. Nothing is deployed and no remote machine is assumed.
9. Validation (tests: Packages/CosmosCatalog/Tests, 40 tests)
- Normalisation: 289 cases shared with the pipeline; equivalence classes; edit distance.
- Records: JSON round trip of all ten record types; pipeline-encoded
Measuredvalues; missing values stay nil. - Star file: fixture written by the pipeline writer decoded field by field; Swift writer byte-identical; 16 corruptions/truncations rejected; selections = brute force (4 000 random stars); streaming, early stop on cancellation, bounded cache.
- SQLite: binding, NULL ≠ 0, read-only immutable (no side files), damaged database detected, hostile query text.
- Search ranking, cross-identification (one object, two star records), federation without duplicates, cone search = brute force (3 000 objects incl. poles and RA wrap), manifest/size/schema mismatches rejected.
- Derived: distance rule, absolute magnitude and luminosity with uncertainties, position at an epoch, unit conversions, HR filters; Milky Way determinism, statistics and geometry.
- Installed packs (fail with an instruction when absent, never skip): integrity and schema of every pack; Sirius,
Vega, Proxima Centauri, Barnard's Star, 51 Peg b, TRAPPIST-1 e, M 31 compared with rows saved from the archive
responses (
Tests/Fixtures/archive_reference.json: query/URL and retrieval date per row); M 33 and LMC distances; Abell 1656; ISS; Ceres/Halley identifiers; distance policy over all 942 058 records; HR diagram of the 25 pc sample.
Run: swift test --scratch-path .build-cat --filter 'CosmosCatalogTests|CosmosSpatialTests'.
10. Known limits and data caveats
- Gaia G ≤ 12 tier not built. Raw bins were fetched up to G = 11.31 (about 1.4 h would have been needed
for the rest at the archive's pace) and the download was stopped; the bins are cached, so
build_all.sh --g12resumes at G = 11.31 and then buildsstars-gaia-g12. Teff was fetched for G ≤ 10 only. - Gaia is incomplete brighter than G ≈ 3 and unreliable brighter than G ≈ 6: bright stars come from Hipparcos. Vega, Sirius and other very bright stars have no Gaia counterpart.
- Hipparcos V magnitudes are missing for a few entries (Hp is then used for ordering).
- Spectral types exist only for Hipparcos stars; no variability, multiplicity or component data.
- Nearby Gaia-only stars are named only when the HYG positional match is unique (766 of them).
- No uncertainties in OpenNGC; mixed magnitude systems there. Abell positions are coarse (1′).
pscompparsrows mix references per parameter. Host parameters are those of the archive, not of Gaia.- Satellites: a dated snapshot (2026-11-24); SGP4 is not in this module. Minor bodies: osculating elements only.
- Constellation membership of a position (Roman 1987) is not implemented; boundaries are polylines per shared edge, not closed polygons.
- Search: the FTS index covers names (role 1), not numeric designations; fuzzy matching needs ≥ 4 characters and can return distant look-alikes after the exact hits ("Sirius" → also "332 Siri"). One SQLite connection per pack, serialised by a lock: concurrent searches queue.
ObjectIDis encoded by its synthesisedCodableas{"raw": "…"}; records store it that way.- Records are JSON text in SQLite (exoplanets pack: 44.7 MB): simple and inspectable, not compact.