gnss-js 1.26.0 → 1.28.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.
@@ -0,0 +1,70 @@
1
+ /**
2
+ * IONEX 1.0 parser — global ionosphere maps (GIMs) as published by
3
+ * the IGS analysis centres (e.g. ESA0OPSRAP_*_GIM.INX).
4
+ *
5
+ * Returns the TEC maps in TECU on a regular lat/lon grid, one map per
6
+ * epoch. RMS maps and the DCB auxiliary block are skipped.
7
+ */
8
+ interface IonexGrid {
9
+ /** Map epochs (Unix ms, UTC). */
10
+ epochs: number[];
11
+ /** Grid latitudes (degrees), in file order (typically 87.5 → −87.5). */
12
+ lats: number[];
13
+ /** Grid longitudes (degrees), in file order (typically −180 → 180). */
14
+ lons: number[];
15
+ /**
16
+ * TEC maps in TECU: maps[epochIdx][latIdx * lons.length + lonIdx].
17
+ * NaN where the file marks no value (9999).
18
+ */
19
+ maps: Float32Array[];
20
+ }
21
+ declare function parseIonex(text: string): IonexGrid;
22
+
23
+ /**
24
+ * SP3-c/-d precise orbit and clock parser, with Lagrange interpolation
25
+ * for evaluating positions between the tabulated epochs.
26
+ *
27
+ * Positions are converted to meters (SP3 tabulates km), clocks to
28
+ * seconds (SP3 tabulates microseconds). Missing positions (all-zero
29
+ * coordinates) and the 999999.999999 bad-clock sentinel become null.
30
+ * Epoch tags are read in the file's own time scale (GPS for IGS/MGEX
31
+ * products) as epoch milliseconds, matching the convention of the
32
+ * RINEX parsers in this library.
33
+ */
34
+ interface Sp3Sample {
35
+ /** ECEF meters. */
36
+ x: number;
37
+ y: number;
38
+ z: number;
39
+ /** Satellite clock offset in seconds, or null when flagged bad. */
40
+ clk: number | null;
41
+ }
42
+ interface Sp3File {
43
+ version: string;
44
+ /** Epoch timestamps (ms). */
45
+ epochs: number[];
46
+ /** Tabulated interval in seconds (from the ## header line). */
47
+ intervalSec: number;
48
+ /** Time system from the %c line, e.g. 'GPS'. */
49
+ timeSystem: string;
50
+ /** prn → per-epoch samples (null where the satellite is missing). */
51
+ satellites: Record<string, (Sp3Sample | null)[]>;
52
+ }
53
+ declare function parseSp3(text: string): Sp3File;
54
+ /**
55
+ * Satellite position at an arbitrary time by Lagrange interpolation
56
+ * over the `order` nearest tabulated samples (default 9, the standard
57
+ * choice for 5–15 min SP3 tables; centimetre-level between nodes).
58
+ * Clock is interpolated linearly between the bracketing samples.
59
+ *
60
+ * Returns null outside the covered span, near data gaps, or when the
61
+ * satellite is absent.
62
+ */
63
+ declare function sp3Position(sp3: Sp3File, prn: string, tMs: number, order?: number): {
64
+ x: number;
65
+ y: number;
66
+ z: number;
67
+ clk: number | null;
68
+ } | null;
69
+
70
+ export { type IonexGrid as I, type Sp3File as S, type Sp3Sample as a, parseSp3 as b, parseIonex as p, sp3Position as s };
@@ -0,0 +1,70 @@
1
+ /**
2
+ * IONEX 1.0 parser — global ionosphere maps (GIMs) as published by
3
+ * the IGS analysis centres (e.g. ESA0OPSRAP_*_GIM.INX).
4
+ *
5
+ * Returns the TEC maps in TECU on a regular lat/lon grid, one map per
6
+ * epoch. RMS maps and the DCB auxiliary block are skipped.
7
+ */
8
+ interface IonexGrid {
9
+ /** Map epochs (Unix ms, UTC). */
10
+ epochs: number[];
11
+ /** Grid latitudes (degrees), in file order (typically 87.5 → −87.5). */
12
+ lats: number[];
13
+ /** Grid longitudes (degrees), in file order (typically −180 → 180). */
14
+ lons: number[];
15
+ /**
16
+ * TEC maps in TECU: maps[epochIdx][latIdx * lons.length + lonIdx].
17
+ * NaN where the file marks no value (9999).
18
+ */
19
+ maps: Float32Array[];
20
+ }
21
+ declare function parseIonex(text: string): IonexGrid;
22
+
23
+ /**
24
+ * SP3-c/-d precise orbit and clock parser, with Lagrange interpolation
25
+ * for evaluating positions between the tabulated epochs.
26
+ *
27
+ * Positions are converted to meters (SP3 tabulates km), clocks to
28
+ * seconds (SP3 tabulates microseconds). Missing positions (all-zero
29
+ * coordinates) and the 999999.999999 bad-clock sentinel become null.
30
+ * Epoch tags are read in the file's own time scale (GPS for IGS/MGEX
31
+ * products) as epoch milliseconds, matching the convention of the
32
+ * RINEX parsers in this library.
33
+ */
34
+ interface Sp3Sample {
35
+ /** ECEF meters. */
36
+ x: number;
37
+ y: number;
38
+ z: number;
39
+ /** Satellite clock offset in seconds, or null when flagged bad. */
40
+ clk: number | null;
41
+ }
42
+ interface Sp3File {
43
+ version: string;
44
+ /** Epoch timestamps (ms). */
45
+ epochs: number[];
46
+ /** Tabulated interval in seconds (from the ## header line). */
47
+ intervalSec: number;
48
+ /** Time system from the %c line, e.g. 'GPS'. */
49
+ timeSystem: string;
50
+ /** prn → per-epoch samples (null where the satellite is missing). */
51
+ satellites: Record<string, (Sp3Sample | null)[]>;
52
+ }
53
+ declare function parseSp3(text: string): Sp3File;
54
+ /**
55
+ * Satellite position at an arbitrary time by Lagrange interpolation
56
+ * over the `order` nearest tabulated samples (default 9, the standard
57
+ * choice for 5–15 min SP3 tables; centimetre-level between nodes).
58
+ * Clock is interpolated linearly between the bracketing samples.
59
+ *
60
+ * Returns null outside the covered span, near data gaps, or when the
61
+ * satellite is absent.
62
+ */
63
+ declare function sp3Position(sp3: Sp3File, prn: string, tMs: number, order?: number): {
64
+ x: number;
65
+ y: number;
66
+ z: number;
67
+ clk: number | null;
68
+ } | null;
69
+
70
+ export { type IonexGrid as I, type Sp3File as S, type Sp3Sample as a, parseSp3 as b, parseIonex as p, sp3Position as s };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gnss-js",
3
- "version": "1.26.0",
3
+ "version": "1.28.0",
4
4
  "description": "Comprehensive GNSS library for JavaScript — time scales, coordinates, RINEX parsing, RTCM3 decoding, orbit computation, and signal analysis",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,23 +0,0 @@
1
- /**
2
- * IONEX 1.0 parser — global ionosphere maps (GIMs) as published by
3
- * the IGS analysis centres (e.g. ESA0OPSRAP_*_GIM.INX).
4
- *
5
- * Returns the TEC maps in TECU on a regular lat/lon grid, one map per
6
- * epoch. RMS maps and the DCB auxiliary block are skipped.
7
- */
8
- interface IonexGrid {
9
- /** Map epochs (Unix ms, UTC). */
10
- epochs: number[];
11
- /** Grid latitudes (degrees), in file order (typically 87.5 → −87.5). */
12
- lats: number[];
13
- /** Grid longitudes (degrees), in file order (typically −180 → 180). */
14
- lons: number[];
15
- /**
16
- * TEC maps in TECU: maps[epochIdx][latIdx * lons.length + lonIdx].
17
- * NaN where the file marks no value (9999).
18
- */
19
- maps: Float32Array[];
20
- }
21
- declare function parseIonex(text: string): IonexGrid;
22
-
23
- export { type IonexGrid as I, parseIonex as p };
@@ -1,23 +0,0 @@
1
- /**
2
- * IONEX 1.0 parser — global ionosphere maps (GIMs) as published by
3
- * the IGS analysis centres (e.g. ESA0OPSRAP_*_GIM.INX).
4
- *
5
- * Returns the TEC maps in TECU on a regular lat/lon grid, one map per
6
- * epoch. RMS maps and the DCB auxiliary block are skipped.
7
- */
8
- interface IonexGrid {
9
- /** Map epochs (Unix ms, UTC). */
10
- epochs: number[];
11
- /** Grid latitudes (degrees), in file order (typically 87.5 → −87.5). */
12
- lats: number[];
13
- /** Grid longitudes (degrees), in file order (typically −180 → 180). */
14
- lons: number[];
15
- /**
16
- * TEC maps in TECU: maps[epochIdx][latIdx * lons.length + lonIdx].
17
- * NaN where the file marks no value (9999).
18
- */
19
- maps: Float32Array[];
20
- }
21
- declare function parseIonex(text: string): IonexGrid;
22
-
23
- export { type IonexGrid as I, parseIonex as p };