Expand description
GNSS constellation identity catalog and validation helpers.
This is a data/catalog layer: it builds normalized satellite identity records from public sources and compares those records with GNSS products. It does not alter positioning solves or infer application-specific health rules. It is deterministic and performs no network access; fetching the source bytes is the caller’s (binding’s) job.
GPS is supported first. CelesTrak gps-ops OMM/JSON is the base source for
current NORAD catalog ids and PRN assignments; the PRN is parsed from
OBJECT_NAME and rendered as the SP3/RINEX id ("G13"). NAVCEN’s GPS
constellation status page can be parsed and merged as an optional overlay
for SVN and NANU usability details.
The OMM input is the canonical Omm produced by
the core OMM parser (crate::astro::omm::{parse_json, parse_json_array}):
this module does not re-parse OMM from scratch, it reads OBJECT_NAME and
NORAD_CAT_ID off already-parsed records.
use sidereon_core::constellation::{to_csv, BoolStyle, Record, RecordSource};
use sidereon_core::GnssSystem;
let record = Record {
system: GnssSystem::Gps,
prn: 3,
svn: None,
norad_id: 40294,
sp3_id: "G03".to_string(),
active: true,
usable: true,
source: RecordSource::default(),
};
assert_eq!(
to_csv(&[record], BoolStyle::Lower),
"prn,norad_cat_id,active,sp3_id\n3,40294,true,G03\n"
);Structs§
- Celestrak
Source - CelesTrak
gps-opsprovenance fields preserved on a record. - Diff
- Change report between two catalog snapshots, keyed by
(system, prn). - Field
Change - A single field change on a PRN that exists in both diffed snapshots.
- Navcen
Source - NAVCEN status provenance fields preserved on a record or conflict.
- Navcen
Status - A parsed row from NAVCEN’s GPS constellation status table.
- Record
- A normalized GNSS satellite identity record.
- Record
Source - Per-source provenance kept on a
Record. - Validation
- Validation report for a constellation catalog.
Enums§
- Bool
Style - How the CSV
activecolumn renders booleans. - Constellation
Error - Failure modes of the constellation catalog builders.
Functions§
- changed
- Returns
truewhen a diff has any findings. - diff
- Compare two catalog snapshots by
(system, prn)identity. - from_
celestrak_ omm - Build GPS records from already-parsed CelesTrak
gps-opsOMM records. - gps_
sp3_ id - Render the canonical SP3/RINEX satellite token for a GPS PRN (
7->G07). - is_
valid - Returns
truewhen a validation report has no findings. - merge_
navcen - Merge NAVCEN status rows into normalized records by PRN.
- parse_
navcen - Parse NAVCEN’s GPS constellation status HTML from raw bytes.
- to_csv
- Export records as the compact mapping CSV.
- validate
- Validate catalog identity without an SP3 product.
- validate_
against_ sp3 - Validate catalog identity against a loaded SP3 product.
- validate_
against_ sp3_ ids - Validate catalog identity against a plain list of SP3/RINEX satellite tokens.
- validate_
against_ sp3_ ids_ strict - Validate against a plain SP3 id list and fail unless the catalog is clean.