kshana 0.35.0

Open, reproducible PNT-resilience simulator with quantum-sensor performance models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
// SPDX-License-Identifier: AGPL-3.0-only
//! The units-and-provenance table of the `leo-navmsg` report: one row per numeric field,
//! with its unit, its provenance class and a one-line definition.
//!
//! A declarative catalog and nothing else. It lives in its own file so that the
//! copy-paste detector's exemption for catalogs (`sonar.cpd.exclusions`) covers the table
//! and no logic.

/// The ten SISRE statistics fields every fit summary carries (`fit_interval_trade.rows[]`,
/// `fit_interval_trade.update_period_rows[]`, `model_comparison.rows[].stats` and
/// `encode_decode.sequence_stats`), under the summary's path prefix. Only the definition
/// of the orbit-only RMS differs between the four, so it is the second argument.
macro_rules! sisre_stats_units {
    ($prefix:literal, $orb_rms_definition:literal) => {
        [
            (
                concat!($prefix, ".n"),
                "count",
                "computed",
                "epochs evaluated",
            ),
            (
                concat!($prefix, ".sisre_orb_rms_m"),
                "m",
                "computed",
                $orb_rms_definition,
            ),
            (
                concat!($prefix, ".sisre_orb_max_m"),
                "m",
                "computed",
                "largest orbit-only SISRE",
            ),
            (
                concat!($prefix, ".sisre_rms_m"),
                "m",
                "computed",
                "RMS SISRE with the clock",
            ),
            (
                concat!($prefix, ".sisre_max_m"),
                "m",
                "computed",
                "largest SISRE with the clock",
            ),
            (
                concat!($prefix, ".radial_rms_m"),
                "m",
                "computed",
                "RMS radial error",
            ),
            (
                concat!($prefix, ".along_rms_m"),
                "m",
                "computed",
                "RMS along-track error",
            ),
            (
                concat!($prefix, ".cross_rms_m"),
                "m",
                "computed",
                "RMS cross-track error",
            ),
            (
                concat!($prefix, ".clock_rms_m"),
                "m",
                "computed",
                "RMS clock error times c",
            ),
            (
                concat!($prefix, ".pos3d_max_m"),
                "m",
                "computed",
                "largest 3D position error",
            ),
        ]
    };
}

/// Literal rows, part 1 of the table, from `orbit.altitude_m`.
const PART_1: &[(&str, &str, &str, &str)] = &[
    (
        "orbit.altitude_m",
        "m",
        "input",
        "altitude of the initial semi-major axis above the WGS 84 equatorial radius",
    ),
    ("orbit.inclination_deg", "deg", "input", "orbit inclination"),
    ("orbit.eccentricity", "1", "input", "initial eccentricity"),
    (
        "orbit.period_s",
        "s",
        "closed-form",
        "two-body period of the initial semi-major axis",
    ),
    (
        "orbit.gravity_degree",
        "count",
        "input",
        "gravity field degree of the truth integration",
    ),
    (
        "orbit.cd_area_over_mass_m2_kg",
        "m^2/kg",
        "input",
        "drag ballistic term C_D A/m",
    ),
    (
        "orbit.epoch_week",
        "week",
        "input",
        "epoch week number (GPS origin)",
    ),
    ("orbit.epoch_tow_s", "s", "input", "epoch time of week"),
    (
        "sisre_weights.w_r",
        "1",
        "computed",
        "global-average radial SISRE weight",
    ),
    (
        "sisre_weights.w_ac2",
        "1",
        "computed",
        "global-average squared along/cross-track SISRE weight",
    ),
    (
        "sisre_weights.inverse_w_ac2",
        "1",
        "computed",
        "reciprocal of w_ac2, the form the published table uses",
    ),
    (
        "sisre_weights.max_nadir_deg",
        "deg",
        "closed-form",
        "nadir angle of a user at the elevation mask",
    ),
    (
        "sisre_weights.mask_deg",
        "deg",
        "input",
        "user elevation mask of the SISRE average",
    ),
    (
        "message_config.rac_degrees[]",
        "count",
        "input",
        "correction polynomial degrees along, cross, radial",
    ),
    (
        "message_config.poly_degree",
        "count",
        "input",
        "ECEF polynomial degree",
    ),
    (
        "message_config.fit_interval_s",
        "s",
        "input",
        "fit interval of each message",
    ),
    (
        "message_config.update_period_s",
        "s",
        "input",
        "message update period",
    ),
    (
        "message_config.carrier_hz",
        "Hz",
        "input",
        "carrier the ionospheric service is scaled to",
    ),
    (
        "preset.altitude_km",
        "km",
        "spec",
        "preset orbit altitude from its cited source",
    ),
    (
        "preset.inclination_deg",
        "deg",
        "spec",
        "preset orbit inclination from its cited source",
    ),
    (
        "preset.carrier_hz",
        "Hz",
        "spec",
        "preset carrier from its cited source",
    ),
    (
        "preset.message.rac_degrees[]",
        "count",
        "spec",
        "preset correction polynomial degrees",
    ),
    (
        "preset.message.poly_degree",
        "count",
        "spec",
        "preset ECEF polynomial degree",
    ),
    (
        "preset.message.fit_interval_s",
        "s",
        "spec",
        "preset fit interval",
    ),
    (
        "preset.message.update_period_s",
        "s",
        "spec",
        "preset update period",
    ),
    (
        "preset.message.steered_sigma_m",
        "m",
        "spec",
        "preset steering residual of a zero-clock satellite",
    ),
    // Trade rows (shared shape).
    (
        "fit_interval_trade.span_s",
        "s",
        "input",
        "span of usage periods evaluated",
    ),
    (
        "fit_interval_trade.rows[].fit_interval_s",
        "s",
        "input",
        "fit interval",
    ),
    (
        "fit_interval_trade.rows[].update_period_s",
        "s",
        "input",
        "usage period of each message",
    ),
    (
        "fit_interval_trade.rows[].n_messages",
        "count",
        "computed",
        "messages fitted",
    ),
];

/// Literal rows, part 2 of the table, from `fit_interval_trade.update_period_rows[].fit_interval_s`.
const PART_2: &[(&str, &str, &str, &str)] = &[
    (
        "fit_interval_trade.update_period_rows[].fit_interval_s",
        "s",
        "input",
        "fit interval",
    ),
    (
        "fit_interval_trade.update_period_rows[].update_period_s",
        "s",
        "input",
        "update period",
    ),
    (
        "fit_interval_trade.update_period_rows[].n_messages",
        "count",
        "computed",
        "messages fitted",
    ),
];

/// Literal rows, part 3 of the table, from `model_comparison.span_s`.
const PART_3: &[(&str, &str, &str, &str)] = &[
    // Model comparison.
    (
        "model_comparison.span_s",
        "s",
        "input",
        "span evaluated per model",
    ),
    (
        "model_comparison.rows[].fit_interval_s",
        "s",
        "input",
        "fit interval",
    ),
    (
        "model_comparison.rows[].n_parameters",
        "count",
        "computed",
        "ephemeris parameters transmitted",
    ),
    (
        "model_comparison.rows[].ephemeris_clock_bits",
        "bit",
        "computed",
        "bits of ephemeris and clock in Kshana's encoding",
    ),
    (
        "model_comparison.rows[].n_messages",
        "count",
        "computed",
        "messages fitted",
    ),
];

/// Literal rows, part 4 of the table, from `model_comparison.liu2025_altitude_table.arc_s`.
const PART_4: &[(&str, &str, &str, &str)] = &[
    (
        "model_comparison.liu2025_altitude_table.arc_s",
        "s",
        "published",
        "fit arc of the published comparison (20 minutes)",
    ),
    (
        "model_comparison.liu2025_altitude_table.arcs_per_altitude",
        "count",
        "input",
        "arcs fitted per altitude",
    ),
    (
        "model_comparison.liu2025_altitude_table.rows[].altitude_km",
        "km",
        "published",
        "satellite altitude as published",
    ),
    (
        "model_comparison.liu2025_altitude_table.rows[].inclination_deg",
        "deg",
        "spec",
        "inclination of the named satellite",
    ),
    (
        "model_comparison.liu2025_altitude_table.rows[].published_sisre_m",
        "m",
        "published",
        "Liu et al. 2025 SISRE of the 22-parameter model",
    ),
    (
        "model_comparison.liu2025_altitude_table.rows[].kshana_sisre_orb_rms_m",
        "m",
        "modelled",
        "Kshana's orbit-only SISRE of its own 22-parameter fit",
    ),
    (
        "model_comparison.liu2025_altitude_table.rows[].ratio",
        "1",
        "computed",
        "Kshana over published",
    ),
    (
        "model_comparison.liu2025_altitude_table.rows[].w_r",
        "1",
        "computed",
        "radial SISRE weight at that altitude",
    ),
    (
        "model_comparison.liu2025_altitude_table.rows[].w_ac2",
        "1",
        "computed",
        "squared transverse SISRE weight at that altitude",
    ),
    // Mid-pass.
    (
        "midpass_update.user.lat_deg",
        "deg",
        "input",
        "user geodetic latitude",
    ),
    (
        "midpass_update.user.lon_deg",
        "deg",
        "input",
        "user longitude",
    ),
    (
        "midpass_update.user.mask_deg",
        "deg",
        "input",
        "pass elevation mask",
    ),
    (
        "midpass_update.pass.start_s",
        "s",
        "computed",
        "pass start after the analysis origin",
    ),
    (
        "midpass_update.pass.end_s",
        "s",
        "computed",
        "pass end after the analysis origin",
    ),
    (
        "midpass_update.pass.max_elevation_deg",
        "deg",
        "computed",
        "largest elevation in the pass",
    ),
    (
        "midpass_update.fit_interval_s",
        "s",
        "input",
        "fit interval",
    ),
    (
        "midpass_update.update_period_s",
        "s",
        "input",
        "update period",
    ),
    (
        "midpass_update.switches[].t_s",
        "s",
        "computed",
        "switch time after the analysis origin",
    ),
    (
        "midpass_update.switches[].elevation_deg",
        "deg",
        "computed",
        "elevation at the switch",
    ),
    (
        "midpass_update.switches[].iod_old",
        "count",
        "computed",
        "issue of data of the outgoing message",
    ),
    (
        "midpass_update.switches[].iod_new",
        "count",
        "computed",
        "issue of data of the incoming message",
    ),
    (
        "midpass_update.switches[].pos_jump_m",
        "m",
        "computed",
        "3D position difference new minus old at the switch",
    ),
    (
        "midpass_update.switches[].clock_jump_m",
        "m",
        "computed",
        "clock difference new minus old times c",
    ),
    (
        "midpass_update.switches[].range_jump_m",
        "m",
        "computed",
        "user pseudorange difference new minus old",
    ),
    (
        "midpass_update.switches[].worst_case_range_jump_m",
        "m",
        "computed",
        "largest range jump over any visible line of sight",
    ),
    (
        "midpass_update.switches[].range_error_before_m",
        "m",
        "computed",
        "old message range minus truth at the switch",
    ),
    (
        "midpass_update.switches[].range_error_after_m",
        "m",
        "computed",
        "new message range minus truth at the switch",
    ),
    (
        "midpass_update.range_error_series[].t_s",
        "s",
        "computed",
        "time after the analysis origin",
    ),
    (
        "midpass_update.range_error_series[].iod",
        "count",
        "computed",
        "issue of data of the current message",
    ),
    (
        "midpass_update.range_error_series[].range_error_m",
        "m",
        "computed",
        "message range minus truth for the user",
    ),
    (
        "midpass_update.max_range_jump_m",
        "m",
        "computed",
        "largest user range jump at a switch",
    ),
    (
        "midpass_update.max_worst_case_range_jump_m",
        "m",
        "computed",
        "largest worst-geometry range jump",
    ),
    (
        "midpass_update.threshold_m",
        "m",
        "input",
        "continuity threshold",
    ),
    // Encode-decode.
    (
        "encode_decode.frame_bytes",
        "byte",
        "computed",
        "encoded frame length",
    ),
    (
        "encode_decode.payload_bits",
        "bit",
        "computed",
        "payload bits before padding",
    ),
    (
        "encode_decode.ephemeris_clock_bits",
        "bit",
        "computed",
        "ephemeris and clock bits",
    ),
    (
        "encode_decode.round_trip_max_pos_m",
        "m",
        "computed",
        "largest position difference decoded minus exact",
    ),
    (
        "encode_decode.quantised_max_pos_m",
        "m",
        "computed",
        "largest position change from quantisation over the usage period",
    ),
    (
        "encode_decode.quantised_max_clock_m",
        "m",
        "computed",
        "largest clock change from quantisation times c",
    ),
    (
        "encode_decode.sisre_exact_rms_m",
        "m",
        "computed",
        "RMS SISRE of the exact first message over its usage period",
    ),
    (
        "encode_decode.sisre_quantised_rms_m",
        "m",
        "computed",
        "RMS SISRE of the decoded first message",
    ),
    (
        "encode_decode.rinex_round_trip_max_pos_m",
        "m",
        "internal-consistency",
        "largest position difference after RINEX-style export and import",
    ),
    (
        "encode_decode.rinex_round_trip_max_clock_m",
        "m",
        "internal-consistency",
        "largest clock difference after RINEX-style export and import",
    ),
    (
        "encode_decode.csv_round_trip_max_pos_m",
        "m",
        "internal-consistency",
        "largest position difference after CSV export and import",
    ),
    (
        "encode_decode.field_table[].fields[].bits",
        "bit",
        "spec",
        "field width in Kshana's encoding",
    ),
    (
        "encode_decode.field_table[].fields[].lsb",
        "per unit",
        "spec",
        "field step in its stated unit",
    ),
    (
        "encode_decode.quantisation_budget[].bits",
        "bit",
        "spec",
        "field width",
    ),
    (
        "encode_decode.quantisation_budget[].lsb",
        "per unit",
        "spec",
        "field step in its stated unit",
    ),
    (
        "encode_decode.quantisation_budget[].half_lsb_pos_m",
        "m",
        "computed",
        "largest position change from a half-step change of the field",
    ),
    (
        "encode_decode.quantisation_budget[].half_lsb_clock_m",
        "m",
        "computed",
        "largest clock change times c from a half-step change of the field",
    ),
];

/// Literal rows, part 5 of the table, from `encode_decode.messages[].svid`.
const PART_5: &[(&str, &str, &str, &str)] = &[
    (
        "encode_decode.messages[].svid",
        "count",
        "input",
        "space-vehicle identifier",
    ),
    (
        "encode_decode.messages[].iod",
        "count",
        "computed",
        "issue of data",
    ),
    (
        "encode_decode.messages[].band",
        "count",
        "input",
        "band identifier",
    ),
    (
        "encode_decode.messages[].health",
        "count",
        "input",
        "signal health status",
    ),
    (
        "encode_decode.messages[].week",
        "week",
        "computed",
        "message week",
    ),
    (
        "encode_decode.messages[].tow",
        "s",
        "computed",
        "transmission time of week",
    ),
    (
        "encode_decode.messages[].clock.toc",
        "s",
        "computed",
        "clock reference time of week",
    ),
    (
        "encode_decode.messages[].clock.af0",
        "s",
        "computed",
        "clock bias",
    ),
    (
        "encode_decode.messages[].clock.af1",
        "s/s",
        "computed",
        "clock drift",
    ),
    (
        "encode_decode.messages[].clock.af2",
        "s/s^2",
        "computed",
        "clock drift rate",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.sqrt_a",
        "m^0.5",
        "computed",
        "square root of the semi-major axis",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.e",
        "1",
        "computed",
        "eccentricity",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.i0",
        "rad",
        "computed",
        "inclination at toe",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.omega0",
        "rad",
        "computed",
        "node longitude at the weekly epoch",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.omega",
        "rad",
        "computed",
        "argument of perigee",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.m0",
        "rad",
        "computed",
        "mean anomaly at toe",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.delta_n",
        "rad/s",
        "computed",
        "mean-motion difference",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.omega_dot",
        "rad/s",
        "computed",
        "node rate",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.i_dot",
        "rad/s",
        "computed",
        "inclination rate",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.cuc",
        "rad",
        "computed",
        "argument-of-latitude cosine harmonic",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.cus",
        "rad",
        "computed",
        "argument-of-latitude sine harmonic",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.crc",
        "m",
        "computed",
        "radius cosine harmonic",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.crs",
        "m",
        "computed",
        "radius sine harmonic",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.cic",
        "rad",
        "computed",
        "inclination cosine harmonic",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.cis",
        "rad",
        "computed",
        "inclination sine harmonic",
    ),
    (
        "encode_decode.messages[].ephemeris.kepler.toe",
        "s",
        "computed",
        "ephemeris reference time of week",
    ),
    (
        "encode_decode.messages[].ephemeris.rac.tau_s",
        "s",
        "computed",
        "time scale of the correction polynomials: the power of two at or above half the fit interval",
    ),
    (
        "encode_decode.messages[].ephemeris.rac.along[]",
        "m",
        "computed",
        "along-track correction coefficients in tau = tk/tau_s",
    ),
    (
        "encode_decode.messages[].ephemeris.rac.cross[]",
        "m",
        "computed",
        "cross-track correction coefficients",
    ),
    (
        "encode_decode.messages[].ephemeris.rac.radial[]",
        "m",
        "computed",
        "radial correction coefficients",
    ),
    (
        "encode_decode.messages[].ephemeris.extra.a_dot",
        "m/s",
        "computed",
        "semi-major-axis rate",
    ),
    (
        "encode_decode.messages[].ephemeris.extra.n_dot",
        "rad/s^2",
        "computed",
        "mean-motion rate",
    ),
    (
        "encode_decode.messages[].ephemeris.extra.crs3",
        "m",
        "computed",
        "radius sine harmonic, three per revolution",
    ),
    (
        "encode_decode.messages[].ephemeris.extra.crc3",
        "m",
        "computed",
        "radius cosine harmonic, three per revolution",
    ),
    (
        "encode_decode.messages[].ephemeris.extra.crs1",
        "m",
        "computed",
        "radius sine harmonic, once per revolution",
    ),
    (
        "encode_decode.messages[].ephemeris.extra.crc1",
        "m",
        "computed",
        "radius cosine harmonic, once per revolution",
    ),
    (
        "encode_decode.messages[].ephemeris.poly.t_ref",
        "s",
        "computed",
        "polynomial reference time of week",
    ),
    (
        "encode_decode.messages[].ephemeris.poly.coeffs[][]",
        "m",
        "computed",
        "ECEF polynomial coefficients in tau = dt/64 s",
    ),
    (
        "encode_decode.messages[].services.klobuchar.alpha[]",
        "s/semicircle^n",
        "modelled-input",
        "Klobuchar amplitude coefficients",
    ),
    (
        "encode_decode.messages[].services.klobuchar.beta[]",
        "s/semicircle^n",
        "modelled-input",
        "Klobuchar period coefficients",
    ),
    (
        "encode_decode.messages[].services.nequick.ai0",
        "sfu",
        "modelled-input",
        "NeQuick-G ai0",
    ),
    (
        "encode_decode.messages[].services.nequick.ai1",
        "sfu/deg",
        "modelled-input",
        "NeQuick-G ai1",
    ),
    (
        "encode_decode.messages[].services.nequick.ai2",
        "sfu/deg^2",
        "modelled-input",
        "NeQuick-G ai2",
    ),
    (
        "encode_decode.messages[].services.utc.a0",
        "s",
        "modelled-input",
        "UTC offset constant term",
    ),
    (
        "encode_decode.messages[].services.utc.a1",
        "s/s",
        "modelled-input",
        "UTC offset rate term",
    ),
    (
        "encode_decode.messages[].services.utc.dt_ls",
        "s",
        "modelled-input",
        "leap seconds before the event",
    ),
    (
        "encode_decode.messages[].services.utc.t_ot",
        "s",
        "modelled-input",
        "UTC data reference time of week",
    ),
    (
        "encode_decode.messages[].services.utc.wn_ot",
        "week",
        "modelled-input",
        "UTC data reference week",
    ),
    (
        "encode_decode.messages[].services.utc.wn_lsf",
        "week",
        "modelled-input",
        "week of the next leap-second event",
    ),
    (
        "encode_decode.messages[].services.utc.dn",
        "day",
        "modelled-input",
        "day of the leap-second event",
    ),
    (
        "encode_decode.messages[].services.utc.dt_lsf",
        "s",
        "modelled-input",
        "leap seconds after the event",
    ),
];

/// The units table, in the order the units block emits it: literal rows interleaved with
/// the shared SISRE statistics groups.
pub(super) const UNITS: &[&[(&str, &str, &str, &str)]] = &[
    PART_1,
    &sisre_stats_units!(
        "fit_interval_trade.rows[]",
        "RMS orbit-only SISRE over the usage periods"
    ),
    PART_2,
    &sisre_stats_units!(
        "fit_interval_trade.update_period_rows[]",
        "RMS orbit-only SISRE"
    ),
    PART_3,
    &sisre_stats_units!("model_comparison.rows[].stats", "RMS orbit-only SISRE"),
    PART_4,
    &sisre_stats_units!(
        "encode_decode.sequence_stats",
        "RMS orbit-only SISRE of the sequence"
    ),
    PART_5,
];