@neilberkman/sidereon 0.26.1 → 0.27.1
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/CHANGELOG.md +16 -0
- package/README.md +27 -3
- package/package.json +1 -1
- package/pkg/sidereon.d.ts +917 -872
- package/pkg/sidereon.js +65 -0
- package/pkg/sidereon_bg.wasm +0 -0
- package/pkg/sidereon_bg.wasm.d.ts +874 -872
- package/pkg-node/sidereon.d.ts +43 -0
- package/pkg-node/sidereon.js +67 -0
- package/pkg-node/sidereon_bg.wasm +0 -0
- package/pkg-node/sidereon_bg.wasm.d.ts +874 -872
package/pkg-node/sidereon.d.ts
CHANGED
|
@@ -2788,6 +2788,11 @@ export class GeoidGrid {
|
|
|
2788
2788
|
* Parse an EGM96 `WW15MGH.DAC` byte buffer into a full-resolution grid.
|
|
2789
2789
|
*/
|
|
2790
2790
|
static fromEgm96Dac(bytes: Uint8Array): GeoidGrid;
|
|
2791
|
+
/**
|
|
2792
|
+
* Parse PROJ's public EGM96 15-arcminute `egm96_15.gtx` byte stream.
|
|
2793
|
+
* Use `undulationProjRad` with an explicit arithmetic recipe.
|
|
2794
|
+
*/
|
|
2795
|
+
static fromProjEgm96Gtx(bytes: Uint8Array): GeoidGrid;
|
|
2791
2796
|
/**
|
|
2792
2797
|
* Parse a grid from the documented whitespace-delimited text format (a
|
|
2793
2798
|
* six-field header `lat_min lon_min dlat dlon n_lat n_lon` followed by
|
|
@@ -2817,6 +2822,14 @@ export class GeoidGrid {
|
|
|
2817
2822
|
* degrees (latitude positive north, longitude positive east).
|
|
2818
2823
|
*/
|
|
2819
2824
|
undulationDeg(lat_deg: number, lon_deg: number): number;
|
|
2825
|
+
/**
|
|
2826
|
+
* Evaluate PROJ 9.3.0-compatible vertical-grid interpolation at geodetic
|
|
2827
|
+
* radians. The caller must select separate or fused multiply/add behavior;
|
|
2828
|
+
* no platform-dependent default is inferred. Invalid coordinates throw a
|
|
2829
|
+
* `RangeError` with machine-readable `kind`, `coordinate`, and `detail`
|
|
2830
|
+
* properties.
|
|
2831
|
+
*/
|
|
2832
|
+
undulationProjRad(lat_rad: number, lon_rad: number, arithmetic: ProjVgridshiftArithmetic): number;
|
|
2820
2833
|
/**
|
|
2821
2834
|
* Bilinearly interpolated undulation `N` (metres) at a geodetic position in
|
|
2822
2835
|
* radians (latitude positive north, longitude positive east).
|
|
@@ -5930,6 +5943,36 @@ export class PredictedObservables {
|
|
|
5930
5943
|
readonly transmitTimeJ2000S: number;
|
|
5931
5944
|
}
|
|
5932
5945
|
|
|
5946
|
+
/**
|
|
5947
|
+
* Floating-point evaluation recipe for PROJ vertical-grid interpolation.
|
|
5948
|
+
*/
|
|
5949
|
+
export enum ProjVgridshiftArithmetic {
|
|
5950
|
+
/**
|
|
5951
|
+
* Round every multiplication and addition separately. This matches the
|
|
5952
|
+
* reviewed x86-64 PROJ 9.3.0 build with contraction disabled.
|
|
5953
|
+
*/
|
|
5954
|
+
SeparateMultiplyAdd = 0,
|
|
5955
|
+
/**
|
|
5956
|
+
* Evaluate each accumulation with a fused multiply-add and one rounding.
|
|
5957
|
+
* This matches the contracted AArch64 PROJ 9.3.0 reference build.
|
|
5958
|
+
*/
|
|
5959
|
+
FusedMultiplyAdd = 1,
|
|
5960
|
+
}
|
|
5961
|
+
|
|
5962
|
+
/**
|
|
5963
|
+
* Error category reported by PROJ vertical-grid coordinate lookup.
|
|
5964
|
+
*/
|
|
5965
|
+
export enum ProjVgridshiftError {
|
|
5966
|
+
/**
|
|
5967
|
+
* Latitude or longitude was not finite.
|
|
5968
|
+
*/
|
|
5969
|
+
NonFiniteCoordinate = 0,
|
|
5970
|
+
/**
|
|
5971
|
+
* Latitude or longitude was outside the loaded grid.
|
|
5972
|
+
*/
|
|
5973
|
+
CoordinateOutsideGrid = 1,
|
|
5974
|
+
}
|
|
5975
|
+
|
|
5933
5976
|
/**
|
|
5934
5977
|
* Reason a satellite was dropped from paired pseudorange combination.
|
|
5935
5978
|
*/
|
package/pkg-node/sidereon.js
CHANGED
|
@@ -5531,6 +5531,21 @@ class GeoidGrid {
|
|
|
5531
5531
|
}
|
|
5532
5532
|
return GeoidGrid.__wrap(ret[0]);
|
|
5533
5533
|
}
|
|
5534
|
+
/**
|
|
5535
|
+
* Parse PROJ's public EGM96 15-arcminute `egm96_15.gtx` byte stream.
|
|
5536
|
+
* Use `undulationProjRad` with an explicit arithmetic recipe.
|
|
5537
|
+
* @param {Uint8Array} bytes
|
|
5538
|
+
* @returns {GeoidGrid}
|
|
5539
|
+
*/
|
|
5540
|
+
static fromProjEgm96Gtx(bytes) {
|
|
5541
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
5542
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5543
|
+
const ret = wasm.geoidgrid_fromProjEgm96Gtx(ptr0, len0);
|
|
5544
|
+
if (ret[2]) {
|
|
5545
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5546
|
+
}
|
|
5547
|
+
return GeoidGrid.__wrap(ret[0]);
|
|
5548
|
+
}
|
|
5534
5549
|
/**
|
|
5535
5550
|
* Parse a grid from the documented whitespace-delimited text format (a
|
|
5536
5551
|
* six-field header `lat_min lon_min dlat dlon n_lat n_lon` followed by
|
|
@@ -5607,6 +5622,24 @@ class GeoidGrid {
|
|
|
5607
5622
|
const ret = wasm.geoidgrid_undulationDeg(this.__wbg_ptr, lat_deg, lon_deg);
|
|
5608
5623
|
return ret;
|
|
5609
5624
|
}
|
|
5625
|
+
/**
|
|
5626
|
+
* Evaluate PROJ 9.3.0-compatible vertical-grid interpolation at geodetic
|
|
5627
|
+
* radians. The caller must select separate or fused multiply/add behavior;
|
|
5628
|
+
* no platform-dependent default is inferred. Invalid coordinates throw a
|
|
5629
|
+
* `RangeError` with machine-readable `kind`, `coordinate`, and `detail`
|
|
5630
|
+
* properties.
|
|
5631
|
+
* @param {number} lat_rad
|
|
5632
|
+
* @param {number} lon_rad
|
|
5633
|
+
* @param {ProjVgridshiftArithmetic} arithmetic
|
|
5634
|
+
* @returns {number}
|
|
5635
|
+
*/
|
|
5636
|
+
undulationProjRad(lat_rad, lon_rad, arithmetic) {
|
|
5637
|
+
const ret = wasm.geoidgrid_undulationProjRad(this.__wbg_ptr, lat_rad, lon_rad, arithmetic);
|
|
5638
|
+
if (ret[2]) {
|
|
5639
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5640
|
+
}
|
|
5641
|
+
return ret[0];
|
|
5642
|
+
}
|
|
5610
5643
|
/**
|
|
5611
5644
|
* Bilinearly interpolated undulation `N` (metres) at a geodetic position in
|
|
5612
5645
|
* radians (latitude positive north, longitude positive east).
|
|
@@ -13739,6 +13772,40 @@ class PredictedObservables {
|
|
|
13739
13772
|
if (Symbol.dispose) PredictedObservables.prototype[Symbol.dispose] = PredictedObservables.prototype.free;
|
|
13740
13773
|
exports.PredictedObservables = PredictedObservables;
|
|
13741
13774
|
|
|
13775
|
+
/**
|
|
13776
|
+
* Floating-point evaluation recipe for PROJ vertical-grid interpolation.
|
|
13777
|
+
* @enum {0 | 1}
|
|
13778
|
+
*/
|
|
13779
|
+
const ProjVgridshiftArithmetic = Object.freeze({
|
|
13780
|
+
/**
|
|
13781
|
+
* Round every multiplication and addition separately. This matches the
|
|
13782
|
+
* reviewed x86-64 PROJ 9.3.0 build with contraction disabled.
|
|
13783
|
+
*/
|
|
13784
|
+
SeparateMultiplyAdd: 0, "0": "SeparateMultiplyAdd",
|
|
13785
|
+
/**
|
|
13786
|
+
* Evaluate each accumulation with a fused multiply-add and one rounding.
|
|
13787
|
+
* This matches the contracted AArch64 PROJ 9.3.0 reference build.
|
|
13788
|
+
*/
|
|
13789
|
+
FusedMultiplyAdd: 1, "1": "FusedMultiplyAdd",
|
|
13790
|
+
});
|
|
13791
|
+
exports.ProjVgridshiftArithmetic = ProjVgridshiftArithmetic;
|
|
13792
|
+
|
|
13793
|
+
/**
|
|
13794
|
+
* Error category reported by PROJ vertical-grid coordinate lookup.
|
|
13795
|
+
* @enum {0 | 1}
|
|
13796
|
+
*/
|
|
13797
|
+
const ProjVgridshiftError = Object.freeze({
|
|
13798
|
+
/**
|
|
13799
|
+
* Latitude or longitude was not finite.
|
|
13800
|
+
*/
|
|
13801
|
+
NonFiniteCoordinate: 0, "0": "NonFiniteCoordinate",
|
|
13802
|
+
/**
|
|
13803
|
+
* Latitude or longitude was outside the loaded grid.
|
|
13804
|
+
*/
|
|
13805
|
+
CoordinateOutsideGrid: 1, "1": "CoordinateOutsideGrid",
|
|
13806
|
+
});
|
|
13807
|
+
exports.ProjVgridshiftError = ProjVgridshiftError;
|
|
13808
|
+
|
|
13742
13809
|
/**
|
|
13743
13810
|
* Reason a satellite was dropped from paired pseudorange combination.
|
|
13744
13811
|
* @enum {0 | 1 | 2 | 3}
|
|
Binary file
|