@neilberkman/sidereon 0.9.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/pkg/sidereon.js CHANGED
@@ -587,6 +587,145 @@ export class AtmosphereDensity {
587
587
  }
588
588
  if (Symbol.dispose) AtmosphereDensity.prototype[Symbol.dispose] = AtmosphereDensity.prototype.free;
589
589
 
590
+ export class BiasSet {
591
+ static __wrap(ptr) {
592
+ const obj = Object.create(BiasSet.prototype);
593
+ obj.__wbg_ptr = ptr;
594
+ BiasSetFinalization.register(obj, obj.__wbg_ptr, obj);
595
+ return obj;
596
+ }
597
+ __destroy_into_raw() {
598
+ const ptr = this.__wbg_ptr;
599
+ this.__wbg_ptr = 0;
600
+ BiasSetFinalization.unregister(this);
601
+ return ptr;
602
+ }
603
+ free() {
604
+ const ptr = this.__destroy_into_raw();
605
+ wasm.__wbg_biasset_free(ptr, 0);
606
+ }
607
+ /**
608
+ * @param {string} sat
609
+ * @param {string} used_obs1
610
+ * @param {string} used_obs2
611
+ * @param {number} freq1_hz
612
+ * @param {number} freq2_hz
613
+ * @param {number | null | undefined} glonass_channel
614
+ * @param {string} clock_ref_obs1
615
+ * @param {string} clock_ref_obs2
616
+ * @param {number} epoch_j2000_s
617
+ * @param {string | null} [time_scale]
618
+ * @returns {number | undefined}
619
+ */
620
+ codeBiasModelM(sat, used_obs1, used_obs2, freq1_hz, freq2_hz, glonass_channel, clock_ref_obs1, clock_ref_obs2, epoch_j2000_s, time_scale) {
621
+ const ptr0 = passStringToWasm0(sat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
622
+ const len0 = WASM_VECTOR_LEN;
623
+ const ptr1 = passStringToWasm0(used_obs1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
624
+ const len1 = WASM_VECTOR_LEN;
625
+ const ptr2 = passStringToWasm0(used_obs2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
626
+ const len2 = WASM_VECTOR_LEN;
627
+ const ptr3 = passStringToWasm0(clock_ref_obs1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
628
+ const len3 = WASM_VECTOR_LEN;
629
+ const ptr4 = passStringToWasm0(clock_ref_obs2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
630
+ const len4 = WASM_VECTOR_LEN;
631
+ var ptr5 = isLikeNone(time_scale) ? 0 : passStringToWasm0(time_scale, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
632
+ var len5 = WASM_VECTOR_LEN;
633
+ const ret = wasm.biasset_codeBiasModelM(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, freq1_hz, freq2_hz, isLikeNone(glonass_channel) ? 0xFFFFFF : glonass_channel, ptr3, len3, ptr4, len4, epoch_j2000_s, ptr5, len5);
634
+ if (ret[3]) {
635
+ throw takeFromExternrefTable0(ret[2]);
636
+ }
637
+ return ret[0] === 0 ? undefined : ret[1];
638
+ }
639
+ /**
640
+ * @param {string} sat
641
+ * @param {string} obs1
642
+ * @param {string} obs2
643
+ * @param {number} epoch_j2000_s
644
+ * @param {string | null} [time_scale]
645
+ * @returns {number | undefined}
646
+ */
647
+ codeDsbSeconds(sat, obs1, obs2, epoch_j2000_s, time_scale) {
648
+ const ptr0 = passStringToWasm0(sat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
649
+ const len0 = WASM_VECTOR_LEN;
650
+ const ptr1 = passStringToWasm0(obs1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
651
+ const len1 = WASM_VECTOR_LEN;
652
+ const ptr2 = passStringToWasm0(obs2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
653
+ const len2 = WASM_VECTOR_LEN;
654
+ var ptr3 = isLikeNone(time_scale) ? 0 : passStringToWasm0(time_scale, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
655
+ var len3 = WASM_VECTOR_LEN;
656
+ const ret = wasm.biasset_codeDsbSeconds(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, epoch_j2000_s, ptr3, len3);
657
+ if (ret[3]) {
658
+ throw takeFromExternrefTable0(ret[2]);
659
+ }
660
+ return ret[0] === 0 ? undefined : ret[1];
661
+ }
662
+ /**
663
+ * @param {string} sat
664
+ * @param {string} obs
665
+ * @param {number} epoch_j2000_s
666
+ * @param {string | null} [time_scale]
667
+ * @returns {number | undefined}
668
+ */
669
+ codeOsbSeconds(sat, obs, epoch_j2000_s, time_scale) {
670
+ const ptr0 = passStringToWasm0(sat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
671
+ const len0 = WASM_VECTOR_LEN;
672
+ const ptr1 = passStringToWasm0(obs, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
673
+ const len1 = WASM_VECTOR_LEN;
674
+ var ptr2 = isLikeNone(time_scale) ? 0 : passStringToWasm0(time_scale, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
675
+ var len2 = WASM_VECTOR_LEN;
676
+ const ret = wasm.biasset_codeOsbSeconds(this.__wbg_ptr, ptr0, len0, ptr1, len1, epoch_j2000_s, ptr2, len2);
677
+ if (ret[3]) {
678
+ throw takeFromExternrefTable0(ret[2]);
679
+ }
680
+ return ret[0] === 0 ? undefined : ret[1];
681
+ }
682
+ /**
683
+ * @param {string} sat
684
+ * @param {string} obs
685
+ * @param {number} epoch_j2000_s
686
+ * @param {string | null} [time_scale]
687
+ * @returns {number | undefined}
688
+ */
689
+ phaseOsbCycles(sat, obs, epoch_j2000_s, time_scale) {
690
+ const ptr0 = passStringToWasm0(sat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
691
+ const len0 = WASM_VECTOR_LEN;
692
+ const ptr1 = passStringToWasm0(obs, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
693
+ const len1 = WASM_VECTOR_LEN;
694
+ var ptr2 = isLikeNone(time_scale) ? 0 : passStringToWasm0(time_scale, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
695
+ var len2 = WASM_VECTOR_LEN;
696
+ const ret = wasm.biasset_phaseOsbCycles(this.__wbg_ptr, ptr0, len0, ptr1, len1, epoch_j2000_s, ptr2, len2);
697
+ if (ret[3]) {
698
+ throw takeFromExternrefTable0(ret[2]);
699
+ }
700
+ return ret[0] === 0 ? undefined : ret[1];
701
+ }
702
+ /**
703
+ * @returns {number}
704
+ */
705
+ get recordCount() {
706
+ const ret = wasm.biasset_recordCount(this.__wbg_ptr);
707
+ return ret >>> 0;
708
+ }
709
+ /**
710
+ * @returns {any}
711
+ */
712
+ get records() {
713
+ const ret = wasm.biasset_records(this.__wbg_ptr);
714
+ if (ret[2]) {
715
+ throw takeFromExternrefTable0(ret[1]);
716
+ }
717
+ return takeFromExternrefTable0(ret[0]);
718
+ }
719
+ /**
720
+ * @returns {number}
721
+ */
722
+ get skippedRecords() {
723
+ const ret = wasm.biasset_skippedRecords(this.__wbg_ptr);
724
+ return ret >>> 0;
725
+ }
726
+ }
727
+ if (Symbol.dispose) BiasSet.prototype[Symbol.dispose] = BiasSet.prototype.free;
728
+
590
729
  /**
591
730
  * A parsed broadcast ephemeris store from a RINEX NAV file. `records` are the
592
731
  * usable GPS/Galileo/BeiDou records selected by the core default SPP policy.
@@ -3122,6 +3261,160 @@ export class DopplerShift {
3122
3261
  }
3123
3262
  if (Symbol.dispose) DopplerShift.prototype[Symbol.dispose] = DopplerShift.prototype.free;
3124
3263
 
3264
+ export class DragForce {
3265
+ static __wrap(ptr) {
3266
+ const obj = Object.create(DragForce.prototype);
3267
+ obj.__wbg_ptr = ptr;
3268
+ DragForceFinalization.register(obj, obj.__wbg_ptr, obj);
3269
+ return obj;
3270
+ }
3271
+ __destroy_into_raw() {
3272
+ const ptr = this.__wbg_ptr;
3273
+ this.__wbg_ptr = 0;
3274
+ DragForceFinalization.unregister(this);
3275
+ return ptr;
3276
+ }
3277
+ free() {
3278
+ const ptr = this.__destroy_into_raw();
3279
+ wasm.__wbg_dragforce_free(ptr, 0);
3280
+ }
3281
+ /**
3282
+ * @param {number} epoch_s
3283
+ * @param {Float64Array} position_km
3284
+ * @param {Float64Array} velocity_km_s
3285
+ * @returns {Float64Array}
3286
+ */
3287
+ acceleration(epoch_s, position_km, velocity_km_s) {
3288
+ const ptr0 = passArrayF64ToWasm0(position_km, wasm.__wbindgen_malloc);
3289
+ const len0 = WASM_VECTOR_LEN;
3290
+ const ptr1 = passArrayF64ToWasm0(velocity_km_s, wasm.__wbindgen_malloc);
3291
+ const len1 = WASM_VECTOR_LEN;
3292
+ const ret = wasm.dragforce_acceleration(this.__wbg_ptr, epoch_s, ptr0, len0, ptr1, len1);
3293
+ if (ret[3]) {
3294
+ throw takeFromExternrefTable0(ret[2]);
3295
+ }
3296
+ var v3 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
3297
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
3298
+ return v3;
3299
+ }
3300
+ /**
3301
+ * @returns {number}
3302
+ */
3303
+ get bcFactorM2Kg() {
3304
+ const ret = wasm.dragforce_bcFactorM2Kg(this.__wbg_ptr);
3305
+ return ret;
3306
+ }
3307
+ /**
3308
+ * @returns {number}
3309
+ */
3310
+ get cutoffAltitudeKm() {
3311
+ const ret = wasm.dragforce_cutoffAltitudeKm(this.__wbg_ptr);
3312
+ return ret;
3313
+ }
3314
+ /**
3315
+ * @param {number} cd
3316
+ * @param {number} area_m2
3317
+ * @param {number} mass_kg
3318
+ * @param {SpaceWeather} space_weather
3319
+ * @param {number | null} [cutoff_altitude_km]
3320
+ * @returns {DragForce}
3321
+ */
3322
+ static fromAreaMass(cd, area_m2, mass_kg, space_weather, cutoff_altitude_km) {
3323
+ _assertClass(space_weather, SpaceWeather);
3324
+ const ret = wasm.dragforce_fromAreaMass(cd, area_m2, mass_kg, space_weather.__wbg_ptr, !isLikeNone(cutoff_altitude_km), isLikeNone(cutoff_altitude_km) ? 0 : cutoff_altitude_km);
3325
+ if (ret[2]) {
3326
+ throw takeFromExternrefTable0(ret[1]);
3327
+ }
3328
+ return DragForce.__wrap(ret[0]);
3329
+ }
3330
+ /**
3331
+ * @param {number} bc_kg_m2
3332
+ * @param {SpaceWeather} space_weather
3333
+ * @param {number | null} [cutoff_altitude_km]
3334
+ * @returns {DragForce}
3335
+ */
3336
+ static fromBallisticCoefficient(bc_kg_m2, space_weather, cutoff_altitude_km) {
3337
+ _assertClass(space_weather, SpaceWeather);
3338
+ const ret = wasm.dragforce_fromBallisticCoefficient(bc_kg_m2, space_weather.__wbg_ptr, !isLikeNone(cutoff_altitude_km), isLikeNone(cutoff_altitude_km) ? 0 : cutoff_altitude_km);
3339
+ if (ret[2]) {
3340
+ throw takeFromExternrefTable0(ret[1]);
3341
+ }
3342
+ return DragForce.__wrap(ret[0]);
3343
+ }
3344
+ /**
3345
+ * @param {number} bc_factor_m2_kg
3346
+ * @param {SpaceWeather} space_weather
3347
+ * @param {number | null} [cutoff_altitude_km]
3348
+ * @returns {DragForce}
3349
+ */
3350
+ static fromBcFactor(bc_factor_m2_kg, space_weather, cutoff_altitude_km) {
3351
+ _assertClass(space_weather, SpaceWeather);
3352
+ const ret = wasm.dragforce_fromBcFactor(bc_factor_m2_kg, space_weather.__wbg_ptr, !isLikeNone(cutoff_altitude_km), isLikeNone(cutoff_altitude_km) ? 0 : cutoff_altitude_km);
3353
+ if (ret[2]) {
3354
+ throw takeFromExternrefTable0(ret[1]);
3355
+ }
3356
+ return DragForce.__wrap(ret[0]);
3357
+ }
3358
+ /**
3359
+ * @returns {SpaceWeather}
3360
+ */
3361
+ get spaceWeather() {
3362
+ const ret = wasm.dragforce_spaceWeather(this.__wbg_ptr);
3363
+ return SpaceWeather.__wrap(ret);
3364
+ }
3365
+ }
3366
+ if (Symbol.dispose) DragForce.prototype[Symbol.dispose] = DragForce.prototype.free;
3367
+
3368
+ export class DtedTerrain {
3369
+ __destroy_into_raw() {
3370
+ const ptr = this.__wbg_ptr;
3371
+ this.__wbg_ptr = 0;
3372
+ DtedTerrainFinalization.unregister(this);
3373
+ return ptr;
3374
+ }
3375
+ free() {
3376
+ const ptr = this.__destroy_into_raw();
3377
+ wasm.__wbg_dtedterrain_free(ptr, 0);
3378
+ }
3379
+ /**
3380
+ * @param {number} longitude_deg
3381
+ * @param {number} latitude_deg
3382
+ * @returns {number}
3383
+ */
3384
+ heightM(longitude_deg, latitude_deg) {
3385
+ const ret = wasm.dtedterrain_heightM(this.__wbg_ptr, longitude_deg, latitude_deg);
3386
+ if (ret[2]) {
3387
+ throw takeFromExternrefTable0(ret[1]);
3388
+ }
3389
+ return ret[0];
3390
+ }
3391
+ /**
3392
+ * @param {number} longitude_deg
3393
+ * @param {number} latitude_deg
3394
+ * @param {any} options
3395
+ * @returns {number}
3396
+ */
3397
+ heightMWithOptions(longitude_deg, latitude_deg, options) {
3398
+ const ret = wasm.dtedterrain_heightMWithOptions(this.__wbg_ptr, longitude_deg, latitude_deg, options);
3399
+ if (ret[2]) {
3400
+ throw takeFromExternrefTable0(ret[1]);
3401
+ }
3402
+ return ret[0];
3403
+ }
3404
+ /**
3405
+ * @param {string} root
3406
+ */
3407
+ constructor(root) {
3408
+ const ptr0 = passStringToWasm0(root, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3409
+ const len0 = WASM_VECTOR_LEN;
3410
+ const ret = wasm.dtedterrain_new(ptr0, len0);
3411
+ this.__wbg_ptr = ret;
3412
+ DtedTerrainFinalization.register(this, this.__wbg_ptr, this);
3413
+ return this;
3414
+ }
3415
+ }
3416
+ if (Symbol.dispose) DtedTerrain.prototype[Symbol.dispose] = DtedTerrain.prototype.free;
3417
+
3125
3418
  /**
3126
3419
  * Orthonormal encounter frame built from two relative states.
3127
3420
  */
@@ -9851,6 +10144,14 @@ export class ReducedOrbitState {
9851
10144
  }
9852
10145
  if (Symbol.dispose) ReducedOrbitState.prototype[Symbol.dispose] = ReducedOrbitState.prototype.free;
9853
10146
 
10147
+ /**
10148
+ * @enum {0 | 1}
10149
+ */
10150
+ export const RetrogradeFactor = Object.freeze({
10151
+ Prograde: 0, "0": "Prograde",
10152
+ Retrograde: 1, "1": "Retrograde",
10153
+ });
10154
+
9854
10155
  /**
9855
10156
  * A parsed RINEX clock product with satellite clock-bias interpolation.
9856
10157
  */
@@ -10388,6 +10689,77 @@ export class SatelliteVector {
10388
10689
  }
10389
10690
  if (Symbol.dispose) SatelliteVector.prototype[Symbol.dispose] = SatelliteVector.prototype.free;
10390
10691
 
10692
+ export class SbasCorrectionStore {
10693
+ __destroy_into_raw() {
10694
+ const ptr = this.__wbg_ptr;
10695
+ this.__wbg_ptr = 0;
10696
+ SbasCorrectionStoreFinalization.unregister(this);
10697
+ return ptr;
10698
+ }
10699
+ free() {
10700
+ const ptr = this.__destroy_into_raw();
10701
+ wasm.__wbg_sbascorrectionstore_free(ptr, 0);
10702
+ }
10703
+ /**
10704
+ * @param {Uint8Array} bytes
10705
+ * @param {string | null | undefined} form
10706
+ * @param {string} geo
10707
+ * @param {number} week
10708
+ * @param {number} tow_s
10709
+ * @param {string | null} [time_scale]
10710
+ */
10711
+ ingest(bytes, form, geo, week, tow_s, time_scale) {
10712
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
10713
+ const len0 = WASM_VECTOR_LEN;
10714
+ var ptr1 = isLikeNone(form) ? 0 : passStringToWasm0(form, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
10715
+ var len1 = WASM_VECTOR_LEN;
10716
+ const ptr2 = passStringToWasm0(geo, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
10717
+ const len2 = WASM_VECTOR_LEN;
10718
+ var ptr3 = isLikeNone(time_scale) ? 0 : passStringToWasm0(time_scale, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
10719
+ var len3 = WASM_VECTOR_LEN;
10720
+ const ret = wasm.sbascorrectionstore_ingest(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, week, tow_s, ptr3, len3);
10721
+ if (ret[1]) {
10722
+ throw takeFromExternrefTable0(ret[0]);
10723
+ }
10724
+ }
10725
+ /**
10726
+ * @param {string} geo
10727
+ * @param {number} receiver_lat_rad
10728
+ * @param {number} receiver_lon_rad
10729
+ * @param {number} receiver_height_m
10730
+ * @param {number} elevation_rad
10731
+ * @param {number} azimuth_rad
10732
+ * @param {number} frequency_hz
10733
+ * @returns {number | undefined}
10734
+ */
10735
+ ionoSlantDelayM(geo, receiver_lat_rad, receiver_lon_rad, receiver_height_m, elevation_rad, azimuth_rad, frequency_hz) {
10736
+ const ptr0 = passStringToWasm0(geo, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
10737
+ const len0 = WASM_VECTOR_LEN;
10738
+ const ret = wasm.sbascorrectionstore_ionoSlantDelayM(this.__wbg_ptr, ptr0, len0, receiver_lat_rad, receiver_lon_rad, receiver_height_m, elevation_rad, azimuth_rad, frequency_hz);
10739
+ if (ret[3]) {
10740
+ throw takeFromExternrefTable0(ret[2]);
10741
+ }
10742
+ return ret[0] === 0 ? undefined : ret[1];
10743
+ }
10744
+ constructor() {
10745
+ const ret = wasm.sbascorrectionstore_new();
10746
+ this.__wbg_ptr = ret;
10747
+ SbasCorrectionStoreFinalization.register(this, this.__wbg_ptr, this);
10748
+ return this;
10749
+ }
10750
+ /**
10751
+ * @param {number} t_j2000_s
10752
+ * @returns {string[]}
10753
+ */
10754
+ readyGeos(t_j2000_s) {
10755
+ const ret = wasm.sbascorrectionstore_readyGeos(this.__wbg_ptr, t_j2000_s);
10756
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
10757
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
10758
+ return v1;
10759
+ }
10760
+ }
10761
+ if (Symbol.dispose) SbasCorrectionStore.prototype[Symbol.dispose] = SbasCorrectionStore.prototype.free;
10762
+
10391
10763
  /**
10392
10764
  * Per-constellation single-frequency pseudorange code-selection policy. Build
10393
10765
  * with `new SignalPolicy()` then chain `.withSystem(system, codes)`, or use
@@ -10843,6 +11215,21 @@ export class Sp3 {
10843
11215
  }
10844
11216
  return SppBatchSolution.__wrap(ret[0]);
10845
11217
  }
11218
+ /**
11219
+ * Run the core robust-reweighted SPP driver under the RAIM/FDE exclusion loop.
11220
+ *
11221
+ * `request` is the FDE request with a `robust` object. The implementation
11222
+ * delegates to `sidereon_core::quality::spp_robust_fde_driver`.
11223
+ * @param {any} request
11224
+ * @returns {FdeSolution}
11225
+ */
11226
+ sppRobustFdeDriver(request) {
11227
+ const ret = wasm.sp3_sppRobustFdeDriver(this.__wbg_ptr, request);
11228
+ if (ret[2]) {
11229
+ throw takeFromExternrefTable0(ret[1]);
11230
+ }
11231
+ return FdeSolution.__wrap(ret[0]);
11232
+ }
10846
11233
  /**
10847
11234
  * The exact parsed state of `satellite` at record `epochIndex` (no
10848
11235
  * interpolation). Throws a `RangeError` past the last epoch and a
@@ -11160,7 +11547,7 @@ export class Sp3MergeReport {
11160
11547
  }
11161
11548
  /**
11162
11549
  * Per-(epoch, satellite) agreement statistics for every accepted cell, in
11163
- * output (epoch, then satellite) order one entry per cell written to the
11550
+ * output (epoch, then satellite) order, one entry per cell written to the
11164
11551
  * merged product.
11165
11552
  * @returns {Sp3AgreementMetric[]}
11166
11553
  */
@@ -11416,54 +11803,106 @@ export class Sp3State {
11416
11803
  }
11417
11804
  if (Symbol.dispose) Sp3State.prototype[Symbol.dispose] = Sp3State.prototype.free;
11418
11805
 
11419
- /**
11420
- * Canonical quiet-Sun space-weather indices for NRLMSISE-00, mirrored from the
11421
- * core so a JS caller can pass moderate-activity defaults to [`atmosphereDensity`]
11422
- * without re-deriving the magic numbers.
11423
- */
11424
- export class SpaceWeatherDefaults {
11806
+ export class SpaceWeather {
11425
11807
  static __wrap(ptr) {
11426
- const obj = Object.create(SpaceWeatherDefaults.prototype);
11808
+ const obj = Object.create(SpaceWeather.prototype);
11427
11809
  obj.__wbg_ptr = ptr;
11428
- SpaceWeatherDefaultsFinalization.register(obj, obj.__wbg_ptr, obj);
11810
+ SpaceWeatherFinalization.register(obj, obj.__wbg_ptr, obj);
11429
11811
  return obj;
11430
11812
  }
11431
11813
  __destroy_into_raw() {
11432
11814
  const ptr = this.__wbg_ptr;
11433
11815
  this.__wbg_ptr = 0;
11434
- SpaceWeatherDefaultsFinalization.unregister(this);
11816
+ SpaceWeatherFinalization.unregister(this);
11435
11817
  return ptr;
11436
11818
  }
11437
11819
  free() {
11438
11820
  const ptr = this.__destroy_into_raw();
11439
- wasm.__wbg_spaceweatherdefaults_free(ptr, 0);
11821
+ wasm.__wbg_spaceweather_free(ptr, 0);
11440
11822
  }
11441
11823
  /**
11442
- * Daily magnetic Ap index.
11443
11824
  * @returns {number}
11444
11825
  */
11445
11826
  get ap() {
11446
- const ret = wasm.spaceweatherdefaults_ap(this.__wbg_ptr);
11827
+ const ret = wasm.spaceweather_ap(this.__wbg_ptr);
11447
11828
  return ret;
11448
11829
  }
11449
11830
  /**
11450
- * Daily F10.7 solar radio flux.
11451
11831
  * @returns {number}
11452
11832
  */
11453
11833
  get f107() {
11454
- const ret = wasm.spaceweatherdefaults_f107(this.__wbg_ptr);
11834
+ const ret = wasm.spaceweather_f107(this.__wbg_ptr);
11455
11835
  return ret;
11456
11836
  }
11457
11837
  /**
11458
- * 81-day centred F10.7 average.
11459
11838
  * @returns {number}
11460
11839
  */
11461
11840
  get f107a() {
11462
- const ret = wasm.spaceweatherdefaults_f107a(this.__wbg_ptr);
11841
+ const ret = wasm.spaceweather_f107a(this.__wbg_ptr);
11463
11842
  return ret;
11464
11843
  }
11465
- }
11466
- if (Symbol.dispose) SpaceWeatherDefaults.prototype[Symbol.dispose] = SpaceWeatherDefaults.prototype.free;
11844
+ /**
11845
+ * @param {number | null} [f107]
11846
+ * @param {number | null} [f107a]
11847
+ * @param {number | null} [ap]
11848
+ */
11849
+ constructor(f107, f107a, ap) {
11850
+ const ret = wasm.spaceweather_new(!isLikeNone(f107), isLikeNone(f107) ? 0 : f107, !isLikeNone(f107a), isLikeNone(f107a) ? 0 : f107a, !isLikeNone(ap), isLikeNone(ap) ? 0 : ap);
11851
+ this.__wbg_ptr = ret;
11852
+ SpaceWeatherFinalization.register(this, this.__wbg_ptr, this);
11853
+ return this;
11854
+ }
11855
+ }
11856
+ if (Symbol.dispose) SpaceWeather.prototype[Symbol.dispose] = SpaceWeather.prototype.free;
11857
+
11858
+ /**
11859
+ * Canonical quiet-Sun space-weather indices for NRLMSISE-00, mirrored from the
11860
+ * core so a JS caller can pass moderate-activity defaults to [`atmosphereDensity`]
11861
+ * without re-deriving the magic numbers.
11862
+ */
11863
+ export class SpaceWeatherDefaults {
11864
+ static __wrap(ptr) {
11865
+ const obj = Object.create(SpaceWeatherDefaults.prototype);
11866
+ obj.__wbg_ptr = ptr;
11867
+ SpaceWeatherDefaultsFinalization.register(obj, obj.__wbg_ptr, obj);
11868
+ return obj;
11869
+ }
11870
+ __destroy_into_raw() {
11871
+ const ptr = this.__wbg_ptr;
11872
+ this.__wbg_ptr = 0;
11873
+ SpaceWeatherDefaultsFinalization.unregister(this);
11874
+ return ptr;
11875
+ }
11876
+ free() {
11877
+ const ptr = this.__destroy_into_raw();
11878
+ wasm.__wbg_spaceweatherdefaults_free(ptr, 0);
11879
+ }
11880
+ /**
11881
+ * Daily magnetic Ap index.
11882
+ * @returns {number}
11883
+ */
11884
+ get ap() {
11885
+ const ret = wasm.spaceweatherdefaults_ap(this.__wbg_ptr);
11886
+ return ret;
11887
+ }
11888
+ /**
11889
+ * Daily F10.7 solar radio flux.
11890
+ * @returns {number}
11891
+ */
11892
+ get f107() {
11893
+ const ret = wasm.spaceweatherdefaults_f107(this.__wbg_ptr);
11894
+ return ret;
11895
+ }
11896
+ /**
11897
+ * 81-day centred F10.7 average.
11898
+ * @returns {number}
11899
+ */
11900
+ get f107a() {
11901
+ const ret = wasm.spaceweatherdefaults_f107a(this.__wbg_ptr);
11902
+ return ret;
11903
+ }
11904
+ }
11905
+ if (Symbol.dispose) SpaceWeatherDefaults.prototype[Symbol.dispose] = SpaceWeatherDefaults.prototype.free;
11467
11906
 
11468
11907
  /**
11469
11908
  * A parsed in-memory JPL/NAIF SPK kernel.
@@ -11928,6 +12367,82 @@ export class SppSolution {
11928
12367
  }
11929
12368
  if (Symbol.dispose) SppSolution.prototype[Symbol.dispose] = SppSolution.prototype.free;
11930
12369
 
12370
+ export class SsrCorrectionStore {
12371
+ __destroy_into_raw() {
12372
+ const ptr = this.__wbg_ptr;
12373
+ this.__wbg_ptr = 0;
12374
+ SsrCorrectionStoreFinalization.unregister(this);
12375
+ return ptr;
12376
+ }
12377
+ free() {
12378
+ const ptr = this.__destroy_into_raw();
12379
+ wasm.__wbg_ssrcorrectionstore_free(ptr, 0);
12380
+ }
12381
+ /**
12382
+ * @param {string} sat
12383
+ * @returns {any}
12384
+ */
12385
+ clock(sat) {
12386
+ const ptr0 = passStringToWasm0(sat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
12387
+ const len0 = WASM_VECTOR_LEN;
12388
+ const ret = wasm.ssrcorrectionstore_clock(this.__wbg_ptr, ptr0, len0);
12389
+ if (ret[2]) {
12390
+ throw takeFromExternrefTable0(ret[1]);
12391
+ }
12392
+ return takeFromExternrefTable0(ret[0]);
12393
+ }
12394
+ /**
12395
+ * @param {Uint8Array} bytes
12396
+ * @param {boolean | null | undefined} framed
12397
+ * @param {number} week
12398
+ * @param {number} tow_s
12399
+ * @param {string | null} [time_scale]
12400
+ */
12401
+ ingest(bytes, framed, week, tow_s, time_scale) {
12402
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
12403
+ const len0 = WASM_VECTOR_LEN;
12404
+ var ptr1 = isLikeNone(time_scale) ? 0 : passStringToWasm0(time_scale, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
12405
+ var len1 = WASM_VECTOR_LEN;
12406
+ const ret = wasm.ssrcorrectionstore_ingest(this.__wbg_ptr, ptr0, len0, isLikeNone(framed) ? 0xFFFFFF : framed ? 1 : 0, week, tow_s, ptr1, len1);
12407
+ if (ret[1]) {
12408
+ throw takeFromExternrefTable0(ret[0]);
12409
+ }
12410
+ }
12411
+ constructor() {
12412
+ const ret = wasm.ssrcorrectionstore_new();
12413
+ this.__wbg_ptr = ret;
12414
+ SsrCorrectionStoreFinalization.register(this, this.__wbg_ptr, this);
12415
+ return this;
12416
+ }
12417
+ /**
12418
+ * @param {string} sat
12419
+ * @returns {any}
12420
+ */
12421
+ orbit(sat) {
12422
+ const ptr0 = passStringToWasm0(sat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
12423
+ const len0 = WASM_VECTOR_LEN;
12424
+ const ret = wasm.ssrcorrectionstore_orbit(this.__wbg_ptr, ptr0, len0);
12425
+ if (ret[2]) {
12426
+ throw takeFromExternrefTable0(ret[1]);
12427
+ }
12428
+ return takeFromExternrefTable0(ret[0]);
12429
+ }
12430
+ /**
12431
+ * @param {string} sat
12432
+ * @returns {number | undefined}
12433
+ */
12434
+ uraIndex(sat) {
12435
+ const ptr0 = passStringToWasm0(sat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
12436
+ const len0 = WASM_VECTOR_LEN;
12437
+ const ret = wasm.ssrcorrectionstore_uraIndex(this.__wbg_ptr, ptr0, len0);
12438
+ if (ret[2]) {
12439
+ throw takeFromExternrefTable0(ret[1]);
12440
+ }
12441
+ return ret[0] === 0xFFFFFF ? undefined : ret[0];
12442
+ }
12443
+ }
12444
+ if (Symbol.dispose) SsrCorrectionStore.prototype[Symbol.dispose] = SsrCorrectionStore.prototype.free;
12445
+
11931
12446
  /**
11932
12447
  * A batch of Sun and Moon positions, one per epoch: flat row-major `sun` and
11933
12448
  * `moon` `Float64Array`s of length `3 * epochCount`, in **metres**.
@@ -12848,6 +13363,40 @@ export function acquire(samples, prn, options) {
12848
13363
  return AcquisitionResult.__wrap(ret[0]);
12849
13364
  }
12850
13365
 
13366
+ /**
13367
+ * On-sky angle in degrees between two direction vectors.
13368
+ * @param {Float64Array} a
13369
+ * @param {Float64Array} b
13370
+ * @returns {number}
13371
+ */
13372
+ export function angularSeparation(a, b) {
13373
+ const ptr0 = passArrayF64ToWasm0(a, wasm.__wbindgen_malloc);
13374
+ const len0 = WASM_VECTOR_LEN;
13375
+ const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_malloc);
13376
+ const len1 = WASM_VECTOR_LEN;
13377
+ const ret = wasm.angularSeparation(ptr0, len0, ptr1, len1);
13378
+ if (ret[2]) {
13379
+ throw takeFromExternrefTable0(ret[1]);
13380
+ }
13381
+ return ret[0];
13382
+ }
13383
+
13384
+ /**
13385
+ * On-sky angle in degrees between two `(lonDeg, latDeg)` direction pairs.
13386
+ * @param {number} a_lon_deg
13387
+ * @param {number} a_lat_deg
13388
+ * @param {number} b_lon_deg
13389
+ * @param {number} b_lat_deg
13390
+ * @returns {number}
13391
+ */
13392
+ export function angularSeparationCoords(a_lon_deg, a_lat_deg, b_lon_deg, b_lat_deg) {
13393
+ const ret = wasm.angularSeparationCoords(a_lon_deg, a_lat_deg, b_lon_deg, b_lat_deg);
13394
+ if (ret[2]) {
13395
+ throw takeFromExternrefTable0(ret[1]);
13396
+ }
13397
+ return ret[0];
13398
+ }
13399
+
12851
13400
  /**
12852
13401
  * Evaluate NRLMSISE-00 neutral-atmosphere density and temperature.
12853
13402
  *
@@ -12887,6 +13436,45 @@ export function atmosphereSpaceWeatherDefaults() {
12887
13436
  return SpaceWeatherDefaults.__wrap(ret);
12888
13437
  }
12889
13438
 
13439
+ /**
13440
+ * Solar beta angle in degrees from orbit normal and Sun vectors.
13441
+ * @param {Float64Array} orbit_normal
13442
+ * @param {Float64Array} sun
13443
+ * @returns {number}
13444
+ */
13445
+ export function betaAngle(orbit_normal, sun) {
13446
+ const ptr0 = passArrayF64ToWasm0(orbit_normal, wasm.__wbindgen_malloc);
13447
+ const len0 = WASM_VECTOR_LEN;
13448
+ const ptr1 = passArrayF64ToWasm0(sun, wasm.__wbindgen_malloc);
13449
+ const len1 = WASM_VECTOR_LEN;
13450
+ const ret = wasm.betaAngle(ptr0, len0, ptr1, len1);
13451
+ if (ret[2]) {
13452
+ throw takeFromExternrefTable0(ret[1]);
13453
+ }
13454
+ return ret[0];
13455
+ }
13456
+
13457
+ /**
13458
+ * Solar beta angle in degrees from an inertial state and Sun vector.
13459
+ * @param {Float64Array} r
13460
+ * @param {Float64Array} v
13461
+ * @param {Float64Array} sun
13462
+ * @returns {number}
13463
+ */
13464
+ export function betaAngleFromState(r, v, sun) {
13465
+ const ptr0 = passArrayF64ToWasm0(r, wasm.__wbindgen_malloc);
13466
+ const len0 = WASM_VECTOR_LEN;
13467
+ const ptr1 = passArrayF64ToWasm0(v, wasm.__wbindgen_malloc);
13468
+ const len1 = WASM_VECTOR_LEN;
13469
+ const ptr2 = passArrayF64ToWasm0(sun, wasm.__wbindgen_malloc);
13470
+ const len2 = WASM_VECTOR_LEN;
13471
+ const ret = wasm.betaAngleFromState(ptr0, len0, ptr1, len1, ptr2, len2);
13472
+ if (ret[2]) {
13473
+ throw takeFromExternrefTable0(ret[1]);
13474
+ }
13475
+ return ret[0];
13476
+ }
13477
+
12890
13478
  /**
12891
13479
  * Resolve integer ambiguities with a bounded lattice search.
12892
13480
  *
@@ -13018,6 +13606,32 @@ export function cn0(eirp_dbw, fspl_db, receiver_gt_dbk, other_losses_db) {
13018
13606
  return ret[0];
13019
13607
  }
13020
13608
 
13609
+ /**
13610
+ * @param {any} coe
13611
+ * @param {RetrogradeFactor | null} [factor]
13612
+ * @returns {any}
13613
+ */
13614
+ export function coe2eq(coe, factor) {
13615
+ const ret = wasm.coe2eq(coe, isLikeNone(factor) ? 2 : factor);
13616
+ if (ret[2]) {
13617
+ throw takeFromExternrefTable0(ret[1]);
13618
+ }
13619
+ return takeFromExternrefTable0(ret[0]);
13620
+ }
13621
+
13622
+ /**
13623
+ * @param {any} coe
13624
+ * @param {RetrogradeFactor | null} [factor]
13625
+ * @returns {any}
13626
+ */
13627
+ export function coe2mee(coe, factor) {
13628
+ const ret = wasm.coe2mee(coe, isLikeNone(factor) ? 2 : factor);
13629
+ if (ret[2]) {
13630
+ throw takeFromExternrefTable0(ret[1]);
13631
+ }
13632
+ return takeFromExternrefTable0(ret[0]);
13633
+ }
13634
+
13021
13635
  /**
13022
13636
  * Convert classical orbital elements to an inertial Cartesian state.
13023
13637
  *
@@ -13190,6 +13804,35 @@ export function coverageLookAngles(satellites, stations, epoch_unix_us) {
13190
13804
  return CoverageGrid.__wrap(ret[0]);
13191
13805
  }
13192
13806
 
13807
+ /**
13808
+ * @param {any} rel
13809
+ * @param {number} n_rad_s
13810
+ * @param {number} dt_s
13811
+ * @returns {any}
13812
+ */
13813
+ export function cwPropagate(rel, n_rad_s, dt_s) {
13814
+ const ret = wasm.cwPropagate(rel, n_rad_s, dt_s);
13815
+ if (ret[2]) {
13816
+ throw takeFromExternrefTable0(ret[1]);
13817
+ }
13818
+ return takeFromExternrefTable0(ret[0]);
13819
+ }
13820
+
13821
+ /**
13822
+ * @param {number} n_rad_s
13823
+ * @param {number} dt_s
13824
+ * @returns {Float64Array}
13825
+ */
13826
+ export function cwStm(n_rad_s, dt_s) {
13827
+ const ret = wasm.cwStm(n_rad_s, dt_s);
13828
+ if (ret[3]) {
13829
+ throw takeFromExternrefTable0(ret[2]);
13830
+ }
13831
+ var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
13832
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
13833
+ return v1;
13834
+ }
13835
+
13193
13836
  /**
13194
13837
  * Decode Compact RINEX (Hatanaka) bytes into plain RINEX OBS text. Throws a
13195
13838
  * `TypeError` on non-UTF-8 input and an `Error` on a decode failure.
@@ -13296,6 +13939,38 @@ export function decodeRtcmMessage(body) {
13296
13939
  return takeFromExternrefTable0(ret[0]);
13297
13940
  }
13298
13941
 
13942
+ /**
13943
+ * @param {Uint8Array} bytes
13944
+ * @param {string | null} [form]
13945
+ * @returns {any}
13946
+ */
13947
+ export function decodeSbasMessage(bytes, form) {
13948
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
13949
+ const len0 = WASM_VECTOR_LEN;
13950
+ var ptr1 = isLikeNone(form) ? 0 : passStringToWasm0(form, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
13951
+ var len1 = WASM_VECTOR_LEN;
13952
+ const ret = wasm.decodeSbasMessage(ptr0, len0, ptr1, len1);
13953
+ if (ret[2]) {
13954
+ throw takeFromExternrefTable0(ret[1]);
13955
+ }
13956
+ return takeFromExternrefTable0(ret[0]);
13957
+ }
13958
+
13959
+ /**
13960
+ * @param {Uint8Array} bytes
13961
+ * @param {boolean | null} [framed]
13962
+ * @returns {any}
13963
+ */
13964
+ export function decodeSsr(bytes, framed) {
13965
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
13966
+ const len0 = WASM_VECTOR_LEN;
13967
+ const ret = wasm.decodeSsr(ptr0, len0, isLikeNone(framed) ? 0xFFFFFF : framed ? 1 : 0);
13968
+ if (ret[2]) {
13969
+ throw takeFromExternrefTable0(ret[1]);
13970
+ }
13971
+ return takeFromExternrefTable0(ret[0]);
13972
+ }
13973
+
13299
13974
  /**
13300
13975
  * Standard dual-frequency ionosphere-free carrier pair for a constellation.
13301
13976
  * @param {GnssSystem} system
@@ -13515,6 +14190,32 @@ export function earthAngularRadius(satellite_position_km) {
13515
14190
  return v2;
13516
14191
  }
13517
14192
 
14193
+ /**
14194
+ * @param {number} eccentric_anomaly_rad
14195
+ * @param {number} eccentricity
14196
+ * @returns {number}
14197
+ */
14198
+ export function eccentricToMean(eccentric_anomaly_rad, eccentricity) {
14199
+ const ret = wasm.eccentricToMean(eccentric_anomaly_rad, eccentricity);
14200
+ if (ret[2]) {
14201
+ throw takeFromExternrefTable0(ret[1]);
14202
+ }
14203
+ return ret[0];
14204
+ }
14205
+
14206
+ /**
14207
+ * @param {number} eccentric_anomaly_rad
14208
+ * @param {number} eccentricity
14209
+ * @returns {number}
14210
+ */
14211
+ export function eccentricToTrue(eccentric_anomaly_rad, eccentricity) {
14212
+ const ret = wasm.eccentricToTrue(eccentric_anomaly_rad, eccentricity);
14213
+ if (ret[2]) {
14214
+ throw takeFromExternrefTable0(ret[1]);
14215
+ }
14216
+ return ret[0];
14217
+ }
14218
+
13518
14219
  /**
13519
14220
  * Convert a batch of ITRS (ECEF) positions to geodetic coordinates.
13520
14221
  *
@@ -13755,6 +14456,31 @@ export function encounterPlaneCovariance(frame, covariance_km2) {
13755
14456
  return v2;
13756
14457
  }
13757
14458
 
14459
+ /**
14460
+ * @param {any} eq
14461
+ * @returns {any}
14462
+ */
14463
+ export function eq2coe(eq) {
14464
+ const ret = wasm.eq2coe(eq);
14465
+ if (ret[2]) {
14466
+ throw takeFromExternrefTable0(ret[1]);
14467
+ }
14468
+ return takeFromExternrefTable0(ret[0]);
14469
+ }
14470
+
14471
+ /**
14472
+ * @param {any} eq
14473
+ * @param {number} mu_km3_s2
14474
+ * @returns {any}
14475
+ */
14476
+ export function eq2rv(eq, mu_km3_s2) {
14477
+ const ret = wasm.eq2rv(eq, mu_km3_s2);
14478
+ if (ret[2]) {
14479
+ throw takeFromExternrefTable0(ret[1]);
14480
+ }
14481
+ return takeFromExternrefTable0(ret[0]);
14482
+ }
14483
+
13758
14484
  /**
13759
14485
  * Confidence ellipse from an arbitrary 2x2 covariance block.
13760
14486
  *
@@ -13778,10 +14504,24 @@ export function errorEllipse2(covariance, confidence) {
13778
14504
  }
13779
14505
 
13780
14506
  /**
13781
- * Find Moon elevation threshold crossings (moonrise / moonset) over a UTC
13782
- * window.
13783
- *
13784
- * The station is geodetic (`latitudeDeg`, `longitudeDeg`, `altitudeKm`);
14507
+ * @param {DragForce} drag
14508
+ * @param {any} request
14509
+ * @returns {any}
14510
+ */
14511
+ export function estimateDecay(drag, request) {
14512
+ _assertClass(drag, DragForce);
14513
+ const ret = wasm.estimateDecay(drag.__wbg_ptr, request);
14514
+ if (ret[2]) {
14515
+ throw takeFromExternrefTable0(ret[1]);
14516
+ }
14517
+ return takeFromExternrefTable0(ret[0]);
14518
+ }
14519
+
14520
+ /**
14521
+ * Find Moon elevation threshold crossings (moonrise / moonset) over a UTC
14522
+ * window.
14523
+ *
14524
+ * The station is geodetic (`latitudeDeg`, `longitudeDeg`, `altitudeKm`);
13785
14525
  * `startUnixUs` / `endUnixUs` bound the window in unix microseconds. `options`
13786
14526
  * is `{ elevationThresholdDeg?, stepSeconds?, timeToleranceSeconds? }`.
13787
14527
  * Delegates to `sidereon_core::astro::bodies::find_moon_elevation_crossings`.
@@ -14126,7 +14866,7 @@ export function fromCelestrakJson(json, system) {
14126
14866
  * skipping (rather than throwing on) entries that do not resolve.
14127
14867
  *
14128
14868
  * The lenient sibling of [`fromCelestrakJson`]: feed it a raw combined CelesTrak
14129
- * `gnss` feed and it returns `{ records, skipped }` `records` is the `Record[]`
14869
+ * `gnss` feed and it returns `{ records, skipped }`. `records` is the `Record[]`
14130
14870
  * for `system` (the same shape `fromCelestrakJson` returns, sorted by
14131
14871
  * `(system, prn)`), and `skipped` is a `SkippedOmm[]` of the entries whose
14132
14872
  * `OBJECT_NAME` did not resolve to a PRN for `system` (another constellation's
@@ -14458,7 +15198,7 @@ export function gnssSp3Id(system, prn) {
14458
15198
  }
14459
15199
 
14460
15200
  /**
14461
- * Stable lower-case display label for a constellation, e.g. `"gps"`.
15201
+ * Canonical core display label for a constellation, e.g. `"GPS"`.
14462
15202
  * @param {GnssSystem} system
14463
15203
  * @returns {string}
14464
15204
  */
@@ -14861,7 +15601,7 @@ export function kurtosis(x, fisher, bias) {
14861
15601
  * `covariance` is its `n x n` covariance as a row-major `number[][]`, and
14862
15602
  * `ratioThreshold` is the ratio-test acceptance threshold (RTKLIB's default is
14863
15603
  * `3.0`). Finds the true integer-least-squares optimum and runner-up for any
14864
- * positive-definite covariance no search box, no combinatorial blow-up.
15604
+ * positive-definite covariance. No search box, no combinatorial blow-up.
14865
15605
  * Returns an `IlsResult`. Throws a `TypeError` on a malformed shape, a
14866
15606
  * `RangeError` on a non-finite or out-of-domain input, and an `Error` on a
14867
15607
  * singular covariance or a non-converging search.
@@ -15131,6 +15871,64 @@ export function loadAntex(bytes) {
15131
15871
  return Antex.__wrap(ret[0]);
15132
15872
  }
15133
15873
 
15874
+ /**
15875
+ * @param {Uint8Array} bytes
15876
+ * @returns {BiasSet}
15877
+ */
15878
+ export function loadBiasSinex(bytes) {
15879
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
15880
+ const len0 = WASM_VECTOR_LEN;
15881
+ const ret = wasm.loadBiasSinex(ptr0, len0);
15882
+ if (ret[2]) {
15883
+ throw takeFromExternrefTable0(ret[1]);
15884
+ }
15885
+ return BiasSet.__wrap(ret[0]);
15886
+ }
15887
+
15888
+ /**
15889
+ * @param {Uint8Array} bytes
15890
+ * @returns {BiasSet}
15891
+ */
15892
+ export function loadBiasSinexLossy(bytes) {
15893
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
15894
+ const len0 = WASM_VECTOR_LEN;
15895
+ const ret = wasm.loadBiasSinexLossy(ptr0, len0);
15896
+ if (ret[2]) {
15897
+ throw takeFromExternrefTable0(ret[1]);
15898
+ }
15899
+ return BiasSet.__wrap(ret[0]);
15900
+ }
15901
+
15902
+ /**
15903
+ * @param {Uint8Array} bytes
15904
+ * @param {any} options
15905
+ * @returns {BiasSet}
15906
+ */
15907
+ export function loadCodeDcb(bytes, options) {
15908
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
15909
+ const len0 = WASM_VECTOR_LEN;
15910
+ const ret = wasm.loadCodeDcb(ptr0, len0, options);
15911
+ if (ret[2]) {
15912
+ throw takeFromExternrefTable0(ret[1]);
15913
+ }
15914
+ return BiasSet.__wrap(ret[0]);
15915
+ }
15916
+
15917
+ /**
15918
+ * @param {Uint8Array} bytes
15919
+ * @param {any} options
15920
+ * @returns {BiasSet}
15921
+ */
15922
+ export function loadCodeDcbLossy(bytes, options) {
15923
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
15924
+ const len0 = WASM_VECTOR_LEN;
15925
+ const ret = wasm.loadCodeDcbLossy(ptr0, len0, options);
15926
+ if (ret[2]) {
15927
+ throw takeFromExternrefTable0(ret[1]);
15928
+ }
15929
+ return BiasSet.__wrap(ret[0]);
15930
+ }
15931
+
15134
15932
  /**
15135
15933
  * Alias of [`decodeCrinex`] for callers that read a file as bytes.
15136
15934
  * @param {Uint8Array} bytes
@@ -15249,6 +16047,137 @@ export function loadSp3(bytes) {
15249
16047
  return Sp3.__wrap(ret[0]);
15250
16048
  }
15251
16049
 
16050
+ /**
16051
+ * @param {bigint} start_unix_us
16052
+ * @param {bigint} end_unix_us
16053
+ * @param {number} step_s
16054
+ * @param {number} tolerance_s
16055
+ * @returns {any}
16056
+ */
16057
+ export function lunarSolarEclipses(start_unix_us, end_unix_us, step_s, tolerance_s) {
16058
+ const ret = wasm.lunarSolarEclipses(start_unix_us, end_unix_us, step_s, tolerance_s);
16059
+ if (ret[2]) {
16060
+ throw takeFromExternrefTable0(ret[1]);
16061
+ }
16062
+ return takeFromExternrefTable0(ret[0]);
16063
+ }
16064
+
16065
+ /**
16066
+ * @param {Spk} spk
16067
+ * @param {bigint} start_unix_us
16068
+ * @param {bigint} end_unix_us
16069
+ * @param {number} step_s
16070
+ * @param {number} tolerance_s
16071
+ * @returns {any}
16072
+ */
16073
+ export function lunarSolarEclipsesSpk(spk, start_unix_us, end_unix_us, step_s, tolerance_s) {
16074
+ _assertClass(spk, Spk);
16075
+ const ret = wasm.lunarSolarEclipsesSpk(spk.__wbg_ptr, start_unix_us, end_unix_us, step_s, tolerance_s);
16076
+ if (ret[2]) {
16077
+ throw takeFromExternrefTable0(ret[1]);
16078
+ }
16079
+ return takeFromExternrefTable0(ret[0]);
16080
+ }
16081
+
16082
+ /**
16083
+ * @param {Float64Array} position_km
16084
+ * @param {Float64Array} velocity_km_s
16085
+ * @returns {Float64Array}
16086
+ */
16087
+ export function lvlhRotation(position_km, velocity_km_s) {
16088
+ const ptr0 = passArrayF64ToWasm0(position_km, wasm.__wbindgen_malloc);
16089
+ const len0 = WASM_VECTOR_LEN;
16090
+ const ptr1 = passArrayF64ToWasm0(velocity_km_s, wasm.__wbindgen_malloc);
16091
+ const len1 = WASM_VECTOR_LEN;
16092
+ const ret = wasm.lvlhRotation(ptr0, len0, ptr1, len1);
16093
+ if (ret[3]) {
16094
+ throw takeFromExternrefTable0(ret[2]);
16095
+ }
16096
+ var v3 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
16097
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
16098
+ return v3;
16099
+ }
16100
+
16101
+ /**
16102
+ * @param {number} radius_km
16103
+ * @returns {number}
16104
+ */
16105
+ export function meanMotionCircular(radius_km) {
16106
+ const ret = wasm.meanMotionCircular(radius_km);
16107
+ if (ret[2]) {
16108
+ throw takeFromExternrefTable0(ret[1]);
16109
+ }
16110
+ return ret[0];
16111
+ }
16112
+
16113
+ /**
16114
+ * @param {Float64Array} position_km
16115
+ * @param {Float64Array} velocity_km_s
16116
+ * @returns {number}
16117
+ */
16118
+ export function meanMotionFromState(position_km, velocity_km_s) {
16119
+ const ptr0 = passArrayF64ToWasm0(position_km, wasm.__wbindgen_malloc);
16120
+ const len0 = WASM_VECTOR_LEN;
16121
+ const ptr1 = passArrayF64ToWasm0(velocity_km_s, wasm.__wbindgen_malloc);
16122
+ const len1 = WASM_VECTOR_LEN;
16123
+ const ret = wasm.meanMotionFromState(ptr0, len0, ptr1, len1);
16124
+ if (ret[2]) {
16125
+ throw takeFromExternrefTable0(ret[1]);
16126
+ }
16127
+ return ret[0];
16128
+ }
16129
+
16130
+ /**
16131
+ * @param {number} mean_anomaly_rad
16132
+ * @param {number} eccentricity
16133
+ * @returns {number}
16134
+ */
16135
+ export function meanToEccentric(mean_anomaly_rad, eccentricity) {
16136
+ const ret = wasm.meanToEccentric(mean_anomaly_rad, eccentricity);
16137
+ if (ret[2]) {
16138
+ throw takeFromExternrefTable0(ret[1]);
16139
+ }
16140
+ return ret[0];
16141
+ }
16142
+
16143
+ /**
16144
+ * @param {number} mean_anomaly_rad
16145
+ * @param {number} eccentricity
16146
+ * @returns {number}
16147
+ */
16148
+ export function meanToTrue(mean_anomaly_rad, eccentricity) {
16149
+ const ret = wasm.meanToTrue(mean_anomaly_rad, eccentricity);
16150
+ if (ret[2]) {
16151
+ throw takeFromExternrefTable0(ret[1]);
16152
+ }
16153
+ return ret[0];
16154
+ }
16155
+
16156
+ /**
16157
+ * @param {any} mee
16158
+ * @returns {any}
16159
+ */
16160
+ export function mee2coe(mee) {
16161
+ const ret = wasm.mee2coe(mee);
16162
+ if (ret[2]) {
16163
+ throw takeFromExternrefTable0(ret[1]);
16164
+ }
16165
+ return takeFromExternrefTable0(ret[0]);
16166
+ }
16167
+
16168
+ /**
16169
+ * @param {any} mee
16170
+ * @param {number} mu_km3_s2
16171
+ * @returns {any}
16172
+ */
16173
+ export function mee2rv(mee, mu_km3_s2) {
16174
+ const ret = wasm.mee2rv(mee, mu_km3_s2);
16175
+ if (ret[2]) {
16176
+ throw takeFromExternrefTable0(ret[1]);
16177
+ }
16178
+ return takeFromExternrefTable0(ret[0]);
16179
+ }
16180
+
15252
16181
  /**
15253
16182
  * Melbourne-Wubbena combination, metres.
15254
16183
  * @param {number} phi1_cycles
@@ -15308,6 +16237,46 @@ export function mergeSp3(sources, options) {
15308
16237
  return Sp3MergeResult.__wrap(ret[0]);
15309
16238
  }
15310
16239
 
16240
+ /**
16241
+ * @param {string} body
16242
+ * @param {any} station
16243
+ * @param {bigint} start_unix_us
16244
+ * @param {bigint} end_unix_us
16245
+ * @param {number} step_s
16246
+ * @param {number} tolerance_s
16247
+ * @returns {any}
16248
+ */
16249
+ export function meridianTransits(body, station, start_unix_us, end_unix_us, step_s, tolerance_s) {
16250
+ const ptr0 = passStringToWasm0(body, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
16251
+ const len0 = WASM_VECTOR_LEN;
16252
+ const ret = wasm.meridianTransits(ptr0, len0, station, start_unix_us, end_unix_us, step_s, tolerance_s);
16253
+ if (ret[2]) {
16254
+ throw takeFromExternrefTable0(ret[1]);
16255
+ }
16256
+ return takeFromExternrefTable0(ret[0]);
16257
+ }
16258
+
16259
+ /**
16260
+ * @param {Spk} spk
16261
+ * @param {string} body
16262
+ * @param {any} station
16263
+ * @param {bigint} start_unix_us
16264
+ * @param {bigint} end_unix_us
16265
+ * @param {number} step_s
16266
+ * @param {number} tolerance_s
16267
+ * @returns {any}
16268
+ */
16269
+ export function meridianTransitsSpk(spk, body, station, start_unix_us, end_unix_us, step_s, tolerance_s) {
16270
+ _assertClass(spk, Spk);
16271
+ const ptr0 = passStringToWasm0(body, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
16272
+ const len0 = WASM_VECTOR_LEN;
16273
+ const ret = wasm.meridianTransitsSpk(spk.__wbg_ptr, ptr0, len0, station, start_unix_us, end_unix_us, step_s, tolerance_s);
16274
+ if (ret[2]) {
16275
+ throw takeFromExternrefTable0(ret[1]);
16276
+ }
16277
+ return takeFromExternrefTable0(ret[0]);
16278
+ }
16279
+
15311
16280
  /**
15312
16281
  * Mean, variance, skewness, and excess kurtosis of a residual set in one pass.
15313
16282
  *
@@ -15409,6 +16378,38 @@ export function moonIllumination(latitude_deg, longitude_deg, altitude_km, epoch
15409
16378
  return takeFromExternrefTable0(ret[0]);
15410
16379
  }
15411
16380
 
16381
+ /**
16382
+ * @param {bigint} start_unix_us
16383
+ * @param {bigint} end_unix_us
16384
+ * @param {number} step_s
16385
+ * @param {number} tolerance_s
16386
+ * @returns {any}
16387
+ */
16388
+ export function moonPhases(start_unix_us, end_unix_us, step_s, tolerance_s) {
16389
+ const ret = wasm.moonPhases(start_unix_us, end_unix_us, step_s, tolerance_s);
16390
+ if (ret[2]) {
16391
+ throw takeFromExternrefTable0(ret[1]);
16392
+ }
16393
+ return takeFromExternrefTable0(ret[0]);
16394
+ }
16395
+
16396
+ /**
16397
+ * @param {Spk} spk
16398
+ * @param {bigint} start_unix_us
16399
+ * @param {bigint} end_unix_us
16400
+ * @param {number} step_s
16401
+ * @param {number} tolerance_s
16402
+ * @returns {any}
16403
+ */
16404
+ export function moonPhasesSpk(spk, start_unix_us, end_unix_us, step_s, tolerance_s) {
16405
+ _assertClass(spk, Spk);
16406
+ const ret = wasm.moonPhasesSpk(spk.__wbg_ptr, start_unix_us, end_unix_us, step_s, tolerance_s);
16407
+ if (ret[2]) {
16408
+ throw takeFromExternrefTable0(ret[1]);
16409
+ }
16410
+ return takeFromExternrefTable0(ret[0]);
16411
+ }
16412
+
15412
16413
  /**
15413
16414
  * Narrow-lane code combination, metres.
15414
16415
  * @param {number} p1_m
@@ -15596,6 +16597,64 @@ export function observationKindLabel(kind) {
15596
16597
  }
15597
16598
  }
15598
16599
 
16600
+ /**
16601
+ * Observe `"sun"` or `"moon"` from a geodetic station at a UTC unix microsecond epoch.
16602
+ * @param {any} station
16603
+ * @param {bigint} epoch_unix_us
16604
+ * @param {string} target
16605
+ * @param {any} options
16606
+ * @returns {any}
16607
+ */
16608
+ export function observe(station, epoch_unix_us, target, options) {
16609
+ const ptr0 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
16610
+ const len0 = WASM_VECTOR_LEN;
16611
+ const ret = wasm.observe(station, epoch_unix_us, ptr0, len0, options);
16612
+ if (ret[2]) {
16613
+ throw takeFromExternrefTable0(ret[1]);
16614
+ }
16615
+ return takeFromExternrefTable0(ret[0]);
16616
+ }
16617
+
16618
+ /**
16619
+ * Observe a caller-supplied SSB-centered target state using an SPK for Earth and Sun.
16620
+ * @param {any} station
16621
+ * @param {bigint} epoch_unix_us
16622
+ * @param {Spk} spk
16623
+ * @param {Float64Array} position_km
16624
+ * @param {Float64Array} velocity_km_s
16625
+ * @param {any} options
16626
+ * @returns {any}
16627
+ */
16628
+ export function observeBarycentricState(station, epoch_unix_us, spk, position_km, velocity_km_s, options) {
16629
+ _assertClass(spk, Spk);
16630
+ const ptr0 = passArrayF64ToWasm0(position_km, wasm.__wbindgen_malloc);
16631
+ const len0 = WASM_VECTOR_LEN;
16632
+ const ptr1 = passArrayF64ToWasm0(velocity_km_s, wasm.__wbindgen_malloc);
16633
+ const len1 = WASM_VECTOR_LEN;
16634
+ const ret = wasm.observeBarycentricState(station, epoch_unix_us, spk.__wbg_ptr, ptr0, len0, ptr1, len1, options);
16635
+ if (ret[2]) {
16636
+ throw takeFromExternrefTable0(ret[1]);
16637
+ }
16638
+ return takeFromExternrefTable0(ret[0]);
16639
+ }
16640
+
16641
+ /**
16642
+ * Observe an SPK target body by NAIF id using default full-chain options.
16643
+ * @param {any} station
16644
+ * @param {bigint} epoch_unix_us
16645
+ * @param {Spk} spk
16646
+ * @param {number} naif_id
16647
+ * @returns {any}
16648
+ */
16649
+ export function observeSpkBody(station, epoch_unix_us, spk, naif_id) {
16650
+ _assertClass(spk, Spk);
16651
+ const ret = wasm.observeSpkBody(station, epoch_unix_us, spk.__wbg_ptr, naif_id);
16652
+ if (ret[2]) {
16653
+ throw takeFromExternrefTable0(ret[1]);
16654
+ }
16655
+ return takeFromExternrefTable0(ret[0]);
16656
+ }
16657
+
15599
16658
  /**
15600
16659
  * Ocean tide loading displacement of an ITRF station, metres (ECEF).
15601
16660
  *
@@ -15982,27 +17041,66 @@ export function parseTleFile(text, ops_mode_label) {
15982
17041
  export function phaseAngle(satellite_position_km, sun_position_km, observer_position_km) {
15983
17042
  const ptr0 = passArrayF64ToWasm0(satellite_position_km, wasm.__wbindgen_malloc);
15984
17043
  const len0 = WASM_VECTOR_LEN;
15985
- const ptr1 = passArrayF64ToWasm0(sun_position_km, wasm.__wbindgen_malloc);
17044
+ const ptr1 = passArrayF64ToWasm0(sun_position_km, wasm.__wbindgen_malloc);
17045
+ const len1 = WASM_VECTOR_LEN;
17046
+ const ptr2 = passArrayF64ToWasm0(observer_position_km, wasm.__wbindgen_malloc);
17047
+ const len2 = WASM_VECTOR_LEN;
17048
+ const ret = wasm.phaseAngle(ptr0, len0, ptr1, len1, ptr2, len2);
17049
+ if (ret[3]) {
17050
+ throw takeFromExternrefTable0(ret[2]);
17051
+ }
17052
+ var v4 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
17053
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
17054
+ return v4;
17055
+ }
17056
+
17057
+ /**
17058
+ * Carrier phase converted to metres, `L = c / f * phi`.
17059
+ * @param {number} phi_cycles
17060
+ * @param {number} f_hz
17061
+ * @returns {number}
17062
+ */
17063
+ export function phaseMeters(phi_cycles, f_hz) {
17064
+ const ret = wasm.phaseMeters(phi_cycles, f_hz);
17065
+ if (ret[2]) {
17066
+ throw takeFromExternrefTable0(ret[1]);
17067
+ }
17068
+ return ret[0];
17069
+ }
17070
+
17071
+ /**
17072
+ * @param {Spk} spk
17073
+ * @param {string} planet
17074
+ * @param {string} kind
17075
+ * @param {bigint} start_unix_us
17076
+ * @param {bigint} end_unix_us
17077
+ * @param {number} step_s
17078
+ * @param {number} tolerance_s
17079
+ * @returns {any}
17080
+ */
17081
+ export function planetaryEvents(spk, planet, kind, start_unix_us, end_unix_us, step_s, tolerance_s) {
17082
+ _assertClass(spk, Spk);
17083
+ const ptr0 = passStringToWasm0(planet, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
17084
+ const len0 = WASM_VECTOR_LEN;
17085
+ const ptr1 = passStringToWasm0(kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
15986
17086
  const len1 = WASM_VECTOR_LEN;
15987
- const ptr2 = passArrayF64ToWasm0(observer_position_km, wasm.__wbindgen_malloc);
15988
- const len2 = WASM_VECTOR_LEN;
15989
- const ret = wasm.phaseAngle(ptr0, len0, ptr1, len1, ptr2, len2);
15990
- if (ret[3]) {
15991
- throw takeFromExternrefTable0(ret[2]);
17087
+ const ret = wasm.planetaryEvents(spk.__wbg_ptr, ptr0, len0, ptr1, len1, start_unix_us, end_unix_us, step_s, tolerance_s);
17088
+ if (ret[2]) {
17089
+ throw takeFromExternrefTable0(ret[1]);
15992
17090
  }
15993
- var v4 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
15994
- wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
15995
- return v4;
17091
+ return takeFromExternrefTable0(ret[0]);
15996
17092
  }
15997
17093
 
15998
17094
  /**
15999
- * Carrier phase converted to metres, `L = c / f * phi`.
16000
- * @param {number} phi_cycles
16001
- * @param {number} f_hz
17095
+ * Position angle in degrees from North through East.
17096
+ * @param {number} from_lon_deg
17097
+ * @param {number} from_lat_deg
17098
+ * @param {number} to_lon_deg
17099
+ * @param {number} to_lat_deg
16002
17100
  * @returns {number}
16003
17101
  */
16004
- export function phaseMeters(phi_cycles, f_hz) {
16005
- const ret = wasm.phaseMeters(phi_cycles, f_hz);
17102
+ export function positionAngle(from_lon_deg, from_lat_deg, to_lon_deg, to_lat_deg) {
17103
+ const ret = wasm.positionAngle(from_lon_deg, from_lat_deg, to_lon_deg, to_lat_deg);
16006
17104
  if (ret[2]) {
16007
17105
  throw takeFromExternrefTable0(ret[1]);
16008
17106
  }
@@ -16038,6 +17136,27 @@ export function pppCorrections(sp3, epochs, receiver_ecef_m, options) {
16038
17136
  return takeFromExternrefTable0(ret[0]);
16039
17137
  }
16040
17138
 
17139
+ /**
17140
+ * @param {Sp3} sp3
17141
+ * @param {any} epochs
17142
+ * @param {Float64Array} receiver_ecef_m
17143
+ * @param {any} options
17144
+ * @param {BiasSet} bias_set
17145
+ * @param {any} code_bias
17146
+ * @returns {any}
17147
+ */
17148
+ export function pppCorrectionsWithCodeBias(sp3, epochs, receiver_ecef_m, options, bias_set, code_bias) {
17149
+ _assertClass(sp3, Sp3);
17150
+ const ptr0 = passArrayF64ToWasm0(receiver_ecef_m, wasm.__wbindgen_malloc);
17151
+ const len0 = WASM_VECTOR_LEN;
17152
+ _assertClass(bias_set, BiasSet);
17153
+ const ret = wasm.pppCorrectionsWithCodeBias(sp3.__wbg_ptr, epochs, ptr0, len0, options, bias_set.__wbg_ptr, code_bias);
17154
+ if (ret[2]) {
17155
+ throw takeFromExternrefTable0(ret[1]);
17156
+ }
17157
+ return takeFromExternrefTable0(ret[0]);
17158
+ }
17159
+
16041
17160
  /**
16042
17161
  * Build a sample-backed precise-ephemeris source from an array of samples.
16043
17162
  *
@@ -16172,6 +17291,20 @@ export function propagateBatch(satellites, epochs_unix_us) {
16172
17291
  return FleetPropagation.__wrap(ret[0]);
16173
17292
  }
16174
17293
 
17294
+ /**
17295
+ * @param {any} coe
17296
+ * @param {number} mu_km3_s2
17297
+ * @param {number} dt_s
17298
+ * @returns {any}
17299
+ */
17300
+ export function propagateKepler(coe, mu_km3_s2, dt_s) {
17301
+ const ret = wasm.propagateKepler(coe, mu_km3_s2, dt_s);
17302
+ if (ret[2]) {
17303
+ throw takeFromExternrefTable0(ret[1]);
17304
+ }
17305
+ return takeFromExternrefTable0(ret[0]);
17306
+ }
17307
+
16175
17308
  /**
16176
17309
  * Numerically propagate an ECI Cartesian state and sample it at a grid of
16177
17310
  * epochs.
@@ -16260,6 +17393,19 @@ export function rangeRateToDoppler(range_rate_m_s, carrier_hz) {
16260
17393
  return ret[0];
16261
17394
  }
16262
17395
 
17396
+ /**
17397
+ * @param {any} chief
17398
+ * @param {any} deputy
17399
+ * @returns {any}
17400
+ */
17401
+ export function relativeState(chief, deputy) {
17402
+ const ret = wasm.relativeState(chief, deputy);
17403
+ if (ret[2]) {
17404
+ throw takeFromExternrefTable0(ret[1]);
17405
+ }
17406
+ return takeFromExternrefTable0(ret[0]);
17407
+ }
17408
+
16263
17409
  /**
16264
17410
  * Build a sampled GPS C/A code replica, an `Int8Array`.
16265
17411
  * @param {bigint} prn
@@ -16276,6 +17422,25 @@ export function replica(prn, options) {
16276
17422
  return v1;
16277
17423
  }
16278
17424
 
17425
+ /**
17426
+ * @param {Float64Array} position_km
17427
+ * @param {Float64Array} velocity_km_s
17428
+ * @returns {Float64Array}
17429
+ */
17430
+ export function ricRotation(position_km, velocity_km_s) {
17431
+ const ptr0 = passArrayF64ToWasm0(position_km, wasm.__wbindgen_malloc);
17432
+ const len0 = WASM_VECTOR_LEN;
17433
+ const ptr1 = passArrayF64ToWasm0(velocity_km_s, wasm.__wbindgen_malloc);
17434
+ const len1 = WASM_VECTOR_LEN;
17435
+ const ret = wasm.ricRotation(ptr0, len0, ptr1, len1);
17436
+ if (ret[3]) {
17437
+ throw takeFromExternrefTable0(ret[2]);
17438
+ }
17439
+ var v3 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
17440
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
17441
+ return v3;
17442
+ }
17443
+
16279
17444
  /**
16280
17445
  * RINEX observation band frequency in hertz for a system and band digit.
16281
17446
  * @param {GnssSystem} system
@@ -16310,6 +17475,25 @@ export function rinexBandWavelengthM(system, band, glonass_channel) {
16310
17475
  return ret[0] === 0 ? undefined : ret[1];
16311
17476
  }
16312
17477
 
17478
+ /**
17479
+ * @param {Float64Array} position_km
17480
+ * @param {Float64Array} velocity_km_s
17481
+ * @returns {Float64Array}
17482
+ */
17483
+ export function rswRotation(position_km, velocity_km_s) {
17484
+ const ptr0 = passArrayF64ToWasm0(position_km, wasm.__wbindgen_malloc);
17485
+ const len0 = WASM_VECTOR_LEN;
17486
+ const ptr1 = passArrayF64ToWasm0(velocity_km_s, wasm.__wbindgen_malloc);
17487
+ const len1 = WASM_VECTOR_LEN;
17488
+ const ret = wasm.rswRotation(ptr0, len0, ptr1, len1);
17489
+ if (ret[3]) {
17490
+ throw takeFromExternrefTable0(ret[2]);
17491
+ }
17492
+ var v3 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
17493
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
17494
+ return v3;
17495
+ }
17496
+
16313
17497
  /**
16314
17498
  * Read the 12-bit RTCM message number from a message body.
16315
17499
  *
@@ -16328,6 +17512,25 @@ export function rtcmMessageNumber(body) {
16328
17512
  return ret[0];
16329
17513
  }
16330
17514
 
17515
+ /**
17516
+ * @param {Float64Array} position_km
17517
+ * @param {Float64Array} velocity_km_s
17518
+ * @returns {Float64Array}
17519
+ */
17520
+ export function rtnRotation(position_km, velocity_km_s) {
17521
+ const ptr0 = passArrayF64ToWasm0(position_km, wasm.__wbindgen_malloc);
17522
+ const len0 = WASM_VECTOR_LEN;
17523
+ const ptr1 = passArrayF64ToWasm0(velocity_km_s, wasm.__wbindgen_malloc);
17524
+ const len1 = WASM_VECTOR_LEN;
17525
+ const ret = wasm.rtnRotation(ptr0, len0, ptr1, len1);
17526
+ if (ret[3]) {
17527
+ throw takeFromExternrefTable0(ret[2]);
17528
+ }
17529
+ var v3 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
17530
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
17531
+ return v3;
17532
+ }
17533
+
16331
17534
  /**
16332
17535
  * Transform a 3x3 RTN covariance (flat row-major length 9) to ECI for the given
16333
17536
  * orbit state. Returns a flat row-major length-9 `Float64Array`.
@@ -16378,6 +17581,82 @@ export function rv2coe(r, v, mu) {
16378
17581
  return takeFromExternrefTable0(ret[0]);
16379
17582
  }
16380
17583
 
17584
+ /**
17585
+ * @param {Float64Array} r
17586
+ * @param {Float64Array} v
17587
+ * @param {number} mu_km3_s2
17588
+ * @param {RetrogradeFactor | null} [factor]
17589
+ * @returns {any}
17590
+ */
17591
+ export function rv2eq(r, v, mu_km3_s2, factor) {
17592
+ const ptr0 = passArrayF64ToWasm0(r, wasm.__wbindgen_malloc);
17593
+ const len0 = WASM_VECTOR_LEN;
17594
+ const ptr1 = passArrayF64ToWasm0(v, wasm.__wbindgen_malloc);
17595
+ const len1 = WASM_VECTOR_LEN;
17596
+ const ret = wasm.rv2eq(ptr0, len0, ptr1, len1, mu_km3_s2, isLikeNone(factor) ? 2 : factor);
17597
+ if (ret[2]) {
17598
+ throw takeFromExternrefTable0(ret[1]);
17599
+ }
17600
+ return takeFromExternrefTable0(ret[0]);
17601
+ }
17602
+
17603
+ /**
17604
+ * @param {Float64Array} r
17605
+ * @param {Float64Array} v
17606
+ * @param {number} mu_km3_s2
17607
+ * @param {RetrogradeFactor | null} [factor]
17608
+ * @returns {any}
17609
+ */
17610
+ export function rv2mee(r, v, mu_km3_s2, factor) {
17611
+ const ptr0 = passArrayF64ToWasm0(r, wasm.__wbindgen_malloc);
17612
+ const len0 = WASM_VECTOR_LEN;
17613
+ const ptr1 = passArrayF64ToWasm0(v, wasm.__wbindgen_malloc);
17614
+ const len1 = WASM_VECTOR_LEN;
17615
+ const ret = wasm.rv2mee(ptr0, len0, ptr1, len1, mu_km3_s2, isLikeNone(factor) ? 2 : factor);
17616
+ if (ret[2]) {
17617
+ throw takeFromExternrefTable0(ret[1]);
17618
+ }
17619
+ return takeFromExternrefTable0(ret[0]);
17620
+ }
17621
+
17622
+ /**
17623
+ * @param {BroadcastEphemeris} broadcast
17624
+ * @param {string[]} satellites
17625
+ * @param {number} start_j2000_s
17626
+ * @param {number} stop_j2000_s
17627
+ * @param {number} step_s
17628
+ * @returns {any}
17629
+ */
17630
+ export function sampleBroadcastEphemeris(broadcast, satellites, start_j2000_s, stop_j2000_s, step_s) {
17631
+ _assertClass(broadcast, BroadcastEphemeris);
17632
+ const ptr0 = passArrayJsValueToWasm0(satellites, wasm.__wbindgen_malloc);
17633
+ const len0 = WASM_VECTOR_LEN;
17634
+ const ret = wasm.sampleBroadcastEphemeris(broadcast.__wbg_ptr, ptr0, len0, start_j2000_s, stop_j2000_s, step_s);
17635
+ if (ret[2]) {
17636
+ throw takeFromExternrefTable0(ret[1]);
17637
+ }
17638
+ return takeFromExternrefTable0(ret[0]);
17639
+ }
17640
+
17641
+ /**
17642
+ * @param {Sp3} sp3
17643
+ * @param {string[]} satellites
17644
+ * @param {number} start_j2000_s
17645
+ * @param {number} stop_j2000_s
17646
+ * @param {number} step_s
17647
+ * @returns {any}
17648
+ */
17649
+ export function sampleSp3Ephemeris(sp3, satellites, start_j2000_s, stop_j2000_s, step_s) {
17650
+ _assertClass(sp3, Sp3);
17651
+ const ptr0 = passArrayJsValueToWasm0(satellites, wasm.__wbindgen_malloc);
17652
+ const len0 = WASM_VECTOR_LEN;
17653
+ const ret = wasm.sampleSp3Ephemeris(sp3.__wbg_ptr, ptr0, len0, start_j2000_s, stop_j2000_s, step_s);
17654
+ if (ret[2]) {
17655
+ throw takeFromExternrefTable0(ret[1]);
17656
+ }
17657
+ return takeFromExternrefTable0(ret[0]);
17658
+ }
17659
+
16381
17660
  /**
16382
17661
  * Apparent visual magnitude of a sunlit body from a diffuse-sphere phase law.
16383
17662
  *
@@ -16400,6 +17679,31 @@ export function satelliteVisualMagnitude(range_km, phase_angle_deg, standard_mag
16400
17679
  return ret[0];
16401
17680
  }
16402
17681
 
17682
+ /**
17683
+ * @param {BroadcastEphemeris} broadcast
17684
+ * @param {SbasCorrectionStore} store
17685
+ * @param {string} geo
17686
+ * @param {string} sat
17687
+ * @param {number} t_j2000_s
17688
+ * @param {string | null} [mode]
17689
+ * @returns {any}
17690
+ */
17691
+ export function sbasCorrectedState(broadcast, store, geo, sat, t_j2000_s, mode) {
17692
+ _assertClass(broadcast, BroadcastEphemeris);
17693
+ _assertClass(store, SbasCorrectionStore);
17694
+ const ptr0 = passStringToWasm0(geo, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
17695
+ const len0 = WASM_VECTOR_LEN;
17696
+ const ptr1 = passStringToWasm0(sat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
17697
+ const len1 = WASM_VECTOR_LEN;
17698
+ var ptr2 = isLikeNone(mode) ? 0 : passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
17699
+ var len2 = WASM_VECTOR_LEN;
17700
+ const ret = wasm.sbasCorrectedState(broadcast.__wbg_ptr, store.__wbg_ptr, ptr0, len0, ptr1, len1, t_j2000_s, ptr2, len2);
17701
+ if (ret[2]) {
17702
+ throw takeFromExternrefTable0(ret[1]);
17703
+ }
17704
+ return takeFromExternrefTable0(ret[0]);
17705
+ }
17706
+
16403
17707
  /**
16404
17708
  * Screen a primary satellite against a secondary TLE catalog for threshold TCAs.
16405
17709
  *
@@ -16458,6 +17762,38 @@ export function screenTcaConjunctions(primary_line1, primary_line2, secondaries,
16458
17762
  return takeFromExternrefTable0(ret[0]);
16459
17763
  }
16460
17764
 
17765
+ /**
17766
+ * @param {bigint} start_unix_us
17767
+ * @param {bigint} end_unix_us
17768
+ * @param {number} step_s
17769
+ * @param {number} tolerance_s
17770
+ * @returns {any}
17771
+ */
17772
+ export function seasons(start_unix_us, end_unix_us, step_s, tolerance_s) {
17773
+ const ret = wasm.seasons(start_unix_us, end_unix_us, step_s, tolerance_s);
17774
+ if (ret[2]) {
17775
+ throw takeFromExternrefTable0(ret[1]);
17776
+ }
17777
+ return takeFromExternrefTable0(ret[0]);
17778
+ }
17779
+
17780
+ /**
17781
+ * @param {Spk} spk
17782
+ * @param {bigint} start_unix_us
17783
+ * @param {bigint} end_unix_us
17784
+ * @param {number} step_s
17785
+ * @param {number} tolerance_s
17786
+ * @returns {any}
17787
+ */
17788
+ export function seasonsSpk(spk, start_unix_us, end_unix_us, step_s, tolerance_s) {
17789
+ _assertClass(spk, Spk);
17790
+ const ret = wasm.seasonsSpk(spk.__wbg_ptr, start_unix_us, end_unix_us, step_s, tolerance_s);
17791
+ if (ret[2]) {
17792
+ throw takeFromExternrefTable0(ret[1]);
17793
+ }
17794
+ return takeFromExternrefTable0(ret[0]);
17795
+ }
17796
+
16461
17797
  /**
16462
17798
  * Select an IONEX product usable at `requestedEpochJ2000S`, degrading to a
16463
17799
  * diurnal-shifted prior product within `policy`.
@@ -16741,6 +18077,19 @@ export function solidEarthTide(station_ecef_m, year, month, day, fractional_hour
16741
18077
  return v4;
16742
18078
  }
16743
18079
 
18080
+ /**
18081
+ * @param {number} mean_anomaly_rad
18082
+ * @param {number} eccentricity
18083
+ * @returns {any}
18084
+ */
18085
+ export function solveKepler(mean_anomaly_rad, eccentricity) {
18086
+ const ret = wasm.solveKepler(mean_anomaly_rad, eccentricity);
18087
+ if (ret[2]) {
18088
+ throw takeFromExternrefTable0(ret[1]);
18089
+ }
18090
+ return takeFromExternrefTable0(ret[0]);
18091
+ }
18092
+
16744
18093
  /**
16745
18094
  * Solve a sequence of moving-baseline RTK epochs.
16746
18095
  *
@@ -16911,6 +18260,28 @@ export function solveRtkFloat(config) {
16911
18260
  return RtkFloatSolution.__wrap(ret[0]);
16912
18261
  }
16913
18262
 
18263
+ /**
18264
+ * @param {BroadcastEphemeris} broadcast
18265
+ * @param {SbasCorrectionStore} store
18266
+ * @param {string} geo
18267
+ * @param {any} request
18268
+ * @param {string | null} [mode]
18269
+ * @returns {SppSolution}
18270
+ */
18271
+ export function solveSppSbas(broadcast, store, geo, request, mode) {
18272
+ _assertClass(broadcast, BroadcastEphemeris);
18273
+ _assertClass(store, SbasCorrectionStore);
18274
+ const ptr0 = passStringToWasm0(geo, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
18275
+ const len0 = WASM_VECTOR_LEN;
18276
+ var ptr1 = isLikeNone(mode) ? 0 : passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
18277
+ var len1 = WASM_VECTOR_LEN;
18278
+ const ret = wasm.solveSppSbas(broadcast.__wbg_ptr, store.__wbg_ptr, ptr0, len0, request, ptr1, len1);
18279
+ if (ret[2]) {
18280
+ throw takeFromExternrefTable0(ret[1]);
18281
+ }
18282
+ return SppSolution.__wrap(ret[0]);
18283
+ }
18284
+
16914
18285
  /**
16915
18286
  * Solve a static RTK arc with one batch float solution and one validated fixed
16916
18287
  * solution over the whole arc.
@@ -17035,6 +18406,27 @@ export function splitJdToJ2000Seconds(jd_whole, jd_fraction) {
17035
18406
  return ret;
17036
18407
  }
17037
18408
 
18409
+ /**
18410
+ * @param {BroadcastEphemeris} broadcast
18411
+ * @param {SsrCorrectionStore} store
18412
+ * @param {string} sat
18413
+ * @param {number} t_j2000_s
18414
+ * @param {boolean | null} [fallback_to_broadcast]
18415
+ * @param {number | null} [allow_regional_provider]
18416
+ * @returns {any}
18417
+ */
18418
+ export function ssrCorrectedState(broadcast, store, sat, t_j2000_s, fallback_to_broadcast, allow_regional_provider) {
18419
+ _assertClass(broadcast, BroadcastEphemeris);
18420
+ _assertClass(store, SsrCorrectionStore);
18421
+ const ptr0 = passStringToWasm0(sat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
18422
+ const len0 = WASM_VECTOR_LEN;
18423
+ const ret = wasm.ssrCorrectedState(broadcast.__wbg_ptr, store.__wbg_ptr, ptr0, len0, t_j2000_s, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0, isLikeNone(allow_regional_provider) ? 0xFFFFFF : allow_regional_provider);
18424
+ if (ret[2]) {
18425
+ throw takeFromExternrefTable0(ret[1]);
18426
+ }
18427
+ return takeFromExternrefTable0(ret[0]);
18428
+ }
18429
+
17038
18430
  /**
17039
18431
  * Sub-observer point (planetary central meridian) on a rotating body.
17040
18432
  *
@@ -17392,6 +18784,32 @@ export function tropoZenithDelay(lat_deg, height_m, met) {
17392
18784
  return ZenithDelay.__wrap(ret[0]);
17393
18785
  }
17394
18786
 
18787
+ /**
18788
+ * @param {number} true_anomaly_rad
18789
+ * @param {number} eccentricity
18790
+ * @returns {number}
18791
+ */
18792
+ export function trueToEccentric(true_anomaly_rad, eccentricity) {
18793
+ const ret = wasm.trueToEccentric(true_anomaly_rad, eccentricity);
18794
+ if (ret[2]) {
18795
+ throw takeFromExternrefTable0(ret[1]);
18796
+ }
18797
+ return ret[0];
18798
+ }
18799
+
18800
+ /**
18801
+ * @param {number} true_anomaly_rad
18802
+ * @param {number} eccentricity
18803
+ * @returns {number}
18804
+ */
18805
+ export function trueToMean(true_anomaly_rad, eccentricity) {
18806
+ const ret = wasm.trueToMean(true_anomaly_rad, eccentricity);
18807
+ if (ret[2]) {
18808
+ throw takeFromExternrefTable0(ret[1]);
18809
+ }
18810
+ return ret[0];
18811
+ }
18812
+
17395
18813
  /**
17396
18814
  * Provenance and coverage of the embedded UT1-UTC / delta-T (EOP) table.
17397
18815
  * @returns {Ut1Coverage}
@@ -17986,6 +19404,9 @@ const AppliedCorrectionsFinalization = (typeof FinalizationRegistry === 'undefin
17986
19404
  const AtmosphereDensityFinalization = (typeof FinalizationRegistry === 'undefined')
17987
19405
  ? { register: () => {}, unregister: () => {} }
17988
19406
  : new FinalizationRegistry(ptr => wasm.__wbg_atmospheredensity_free(ptr, 1));
19407
+ const BiasSetFinalization = (typeof FinalizationRegistry === 'undefined')
19408
+ ? { register: () => {}, unregister: () => {} }
19409
+ : new FinalizationRegistry(ptr => wasm.__wbg_biasset_free(ptr, 1));
17989
19410
  const BroadcastEphemerisFinalization = (typeof FinalizationRegistry === 'undefined')
17990
19411
  ? { register: () => {}, unregister: () => {} }
17991
19412
  : new FinalizationRegistry(ptr => wasm.__wbg_broadcastephemeris_free(ptr, 1));
@@ -18055,6 +19476,12 @@ const DopSeriesSampleFinalization = (typeof FinalizationRegistry === 'undefined'
18055
19476
  const DopplerShiftFinalization = (typeof FinalizationRegistry === 'undefined')
18056
19477
  ? { register: () => {}, unregister: () => {} }
18057
19478
  : new FinalizationRegistry(ptr => wasm.__wbg_dopplershift_free(ptr, 1));
19479
+ const DragForceFinalization = (typeof FinalizationRegistry === 'undefined')
19480
+ ? { register: () => {}, unregister: () => {} }
19481
+ : new FinalizationRegistry(ptr => wasm.__wbg_dragforce_free(ptr, 1));
19482
+ const DtedTerrainFinalization = (typeof FinalizationRegistry === 'undefined')
19483
+ ? { register: () => {}, unregister: () => {} }
19484
+ : new FinalizationRegistry(ptr => wasm.__wbg_dtedterrain_free(ptr, 1));
18058
19485
  const EncounterFrameFinalization = (typeof FinalizationRegistry === 'undefined')
18059
19486
  ? { register: () => {}, unregister: () => {} }
18060
19487
  : new FinalizationRegistry(ptr => wasm.__wbg_encounterframe_free(ptr, 1));
@@ -18295,6 +19722,9 @@ const SatellitePassFinalization = (typeof FinalizationRegistry === 'undefined')
18295
19722
  const SatelliteVectorFinalization = (typeof FinalizationRegistry === 'undefined')
18296
19723
  ? { register: () => {}, unregister: () => {} }
18297
19724
  : new FinalizationRegistry(ptr => wasm.__wbg_satellitevector_free(ptr, 1));
19725
+ const SbasCorrectionStoreFinalization = (typeof FinalizationRegistry === 'undefined')
19726
+ ? { register: () => {}, unregister: () => {} }
19727
+ : new FinalizationRegistry(ptr => wasm.__wbg_sbascorrectionstore_free(ptr, 1));
18298
19728
  const SignalPolicyFinalization = (typeof FinalizationRegistry === 'undefined')
18299
19729
  ? { register: () => {}, unregister: () => {} }
18300
19730
  : new FinalizationRegistry(ptr => wasm.__wbg_signalpolicy_free(ptr, 1));
@@ -18334,6 +19764,9 @@ const Sp3SelectionFinalization = (typeof FinalizationRegistry === 'undefined')
18334
19764
  const Sp3StateFinalization = (typeof FinalizationRegistry === 'undefined')
18335
19765
  ? { register: () => {}, unregister: () => {} }
18336
19766
  : new FinalizationRegistry(ptr => wasm.__wbg_sp3state_free(ptr, 1));
19767
+ const SpaceWeatherFinalization = (typeof FinalizationRegistry === 'undefined')
19768
+ ? { register: () => {}, unregister: () => {} }
19769
+ : new FinalizationRegistry(ptr => wasm.__wbg_spaceweather_free(ptr, 1));
18337
19770
  const SpaceWeatherDefaultsFinalization = (typeof FinalizationRegistry === 'undefined')
18338
19771
  ? { register: () => {}, unregister: () => {} }
18339
19772
  : new FinalizationRegistry(ptr => wasm.__wbg_spaceweatherdefaults_free(ptr, 1));
@@ -18352,6 +19785,9 @@ const SppBatchSolutionFinalization = (typeof FinalizationRegistry === 'undefined
18352
19785
  const SppSolutionFinalization = (typeof FinalizationRegistry === 'undefined')
18353
19786
  ? { register: () => {}, unregister: () => {} }
18354
19787
  : new FinalizationRegistry(ptr => wasm.__wbg_sppsolution_free(ptr, 1));
19788
+ const SsrCorrectionStoreFinalization = (typeof FinalizationRegistry === 'undefined')
19789
+ ? { register: () => {}, unregister: () => {} }
19790
+ : new FinalizationRegistry(ptr => wasm.__wbg_ssrcorrectionstore_free(ptr, 1));
18355
19791
  const SunMoonFinalization = (typeof FinalizationRegistry === 'undefined')
18356
19792
  ? { register: () => {}, unregister: () => {} }
18357
19793
  : new FinalizationRegistry(ptr => wasm.__wbg_sunmoon_free(ptr, 1));