ootk 1.5.0 → 1.5.3

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,374 @@
1
+ /**
2
+ * @author Theodore Kruczek.
3
+ * @description Orbital Object ToolKit (OOTK) is a collection of tools for working
4
+ * with satellites and other orbital objects.
5
+ *
6
+ * @file The TLE module contains a collection of functions for working with TLEs.
7
+ *
8
+ * @license AGPL-3.0-or-later
9
+ * @Copyright (c) 2020-2022 Theodore Kruczek
10
+ *
11
+ * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
12
+ * terms of the GNU Affero General Public License as published by the Free Software
13
+ * Foundation, either version 3 of the License, or (at your option) any later version.
14
+ *
15
+ * Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
16
+ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
+ * See the GNU Affero General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public License along with
20
+ * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import { Line1Data, Line2Data, TleLine1, TleLine2 } from '../types/types';
23
+ declare type TleData = {
24
+ satNum: number;
25
+ intlDes: string;
26
+ epochYear: number;
27
+ epochDay: number;
28
+ meanMoDev1: number;
29
+ meanMoDev2: number;
30
+ bstar: number;
31
+ inclination: number;
32
+ raan: number;
33
+ eccentricity: number;
34
+ argOfPerigee: number;
35
+ meanAnomaly: number;
36
+ meanMotion: number;
37
+ };
38
+ declare type TleDataFull = Line1Data & Line2Data;
39
+ export declare class Tle {
40
+ private static lineNumber;
41
+ private static satNum;
42
+ private static classification;
43
+ private static intlDes;
44
+ private static intlDesYear;
45
+ private static intlDesLaunchNum;
46
+ private static intlDesLaunchPiece;
47
+ private static epochYear;
48
+ private static epochDay;
49
+ private static meanMoDev1;
50
+ private static meanMoDev2;
51
+ private static bstar;
52
+ private static ephemerisType;
53
+ private static elsetNum;
54
+ private static checksum;
55
+ private static inclination;
56
+ private static raan;
57
+ private static eccentricity;
58
+ private static argPerigee;
59
+ private static meanAnom;
60
+ private static meanMo;
61
+ private static revNum;
62
+ /**
63
+ * Parses the TLE into orbital data.
64
+ *
65
+ * If you want all of the data then use parseTleFull instead.
66
+ * @param {TleLine1} tleLine1 TLE line 1
67
+ * @param {TleLine2} tleLine2 TLE line 2
68
+ * @returns {TleData} Returns most commonly used orbital data from TLE
69
+ */
70
+ static parseTle(tleLine1: TleLine1, tleLine2: TleLine2): TleData;
71
+ /**
72
+ * Parses all of the data contained in the TLE.
73
+ *
74
+ * If you only want the most commonly used data then use parseTle instead.
75
+ * @param {TleLine1} tleLine1 The first line of the TLE to parse.
76
+ * @param {TleLine2} tleLine2 The second line of the TLE to parse.
77
+ * @returns {TleDataFull} Returns all of the data from the TLE.
78
+ */
79
+ static parseTleFull(tleLine1: TleLine1, tleLine2: TleLine2): TleDataFull;
80
+ /**
81
+ * Parse the first line of the TLE.
82
+ * @param {TleLine1} tleLine1 The first line of the TLE to parse.
83
+ * @returns {Line1Data} Returns the data from the first line of the TLE.
84
+ */
85
+ static parseLine1(tleLine1: TleLine1): Line1Data;
86
+ /**
87
+ * Parse the second line of the TLE.
88
+ * @param {TleLine2} tleLine2 The second line of the TLE to parse.
89
+ * @returns {Line2Data} Returns the data from the second line of the TLE.
90
+ */
91
+ static parseLine2(tleLine2: TleLine2): Line2Data;
92
+ /**
93
+ * This should always return a 1 or a 2.
94
+ * @param {string} tleLine The first line of the TLE to parse.
95
+ * @returns {number} The line number of the TLE.
96
+ */
97
+ static getLineNumber(tleLine: TleLine1 | TleLine2): 1 | 2;
98
+ /**
99
+ * See https://en.wikipedia.org/wiki/Satellite_Catalog_Number
100
+ *
101
+ * Range: 0 to 99999 or 26999.
102
+ *
103
+ * NOTE: To support Alpha-5, the first digit can be a letter.
104
+ * This will be converted to a number in order to expand the range to 26999.
105
+ *
106
+ * Example: 25544 or B1234 (e.g. Sputnik's rocket body was number 00001)
107
+ *
108
+ * @param {string} tleLine The first line of the TLE to parse.
109
+ * @returns {number} NORAD catalog number.
110
+ */
111
+ static getSatNum(tleLine: TleLine1 | TleLine2): number;
112
+ /**
113
+ * See https://en.wikipedia.org/wiki/Satellite_Catalog_Number
114
+ *
115
+ * Range: 0 to 99999 or 26999.
116
+ *
117
+ * NOTE: To support Alpha-5, the first digit can be a letter.
118
+ * This will NOT be converted to a number. Use getSatNum() for that.
119
+ *
120
+ * Example: 25544 or B1234 (e.g. Sputnik's rocket body was number 00001)
121
+ *
122
+ * @param {string} tleLine The first line of the TLE to parse.
123
+ * @returns {string} NORAD catalog number.
124
+ */
125
+ static getRawSatNum(tleLine: TleLine1 | TleLine2): string;
126
+ /**
127
+ * Satellite classification.
128
+ * * 'U' = unclassified
129
+ * * 'C' = confidential
130
+ * * 'S' = secret
131
+ *
132
+ * Example: 'U'
133
+ * @param {string} tleLine1 The first line of the TLE to parse.
134
+ * @returns {string} The classification.
135
+ */
136
+ static getClassification(tleLine1: TleLine1): string;
137
+ /**
138
+ * International Designator (COSPAR ID)
139
+ * See https://en.wikipedia.org/wiki/International_Designator
140
+ * @param {string} tleLine1 The first line of the TLE to parse.
141
+ * @returns {string} The International Designator.
142
+ */
143
+ static getIntlDes(tleLine1: TleLine1): string;
144
+ /**
145
+ * International Designator (COSPAR ID): Last 2 digits of launch year.
146
+ *
147
+ * Range: 00 to 99
148
+ *
149
+ * Example: 98
150
+ *
151
+ * @param {string} tleLine1 The first line of the TLE to parse.
152
+ * @returns {number} The year of the International Designator.
153
+ */
154
+ static getIntlDesYear(tleLine1: TleLine1): number;
155
+ /**
156
+ * International Designator (COSPAR ID): Launch number of the year.
157
+ *
158
+ * Range: 1 to 999
159
+ *
160
+ * Example: 67
161
+ *
162
+ * @param {string} tleLine1 The first line of the TLE to parse.
163
+ * @returns {number} The launch number of the International Designator.
164
+ */
165
+ static getIntlDesLaunchNum(tleLine1: string): number;
166
+ /**
167
+ * International Designator (COSPAR ID): Piece of the launch.
168
+ *
169
+ * Range: A to ZZZ
170
+ *
171
+ * Example: 'A'
172
+ *
173
+ * @param {string} tleLine1 The first line of the TLE to parse.
174
+ * @returns {string} The launch piece of the International Designator.
175
+ */
176
+ static getIntlDesLaunchPiece(tleLine1: TleLine1): string;
177
+ /**
178
+ * Year when the TLE was generated (TLE epoch), last two digits.
179
+ *
180
+ * Range: 00 to 99
181
+ *
182
+ * Example: 17
183
+ *
184
+ * @param {string} tleLine1 The first line of the TLE to parse.
185
+ * @returns {number} The year the TLE was generated.
186
+ */
187
+ static getEpochYear(tleLine1: TleLine1): number;
188
+ /**
189
+ * Year when the TLE was generated (TLE epoch), four digits.
190
+ *
191
+ * Range: 1957 to 2056
192
+ *
193
+ * Example: 2008
194
+ *
195
+ * @param {string} tleLine1 The first line of the TLE to parse.
196
+ * @returns {number} The year the TLE was generated.
197
+ */
198
+ static getEpochYearFull(tleLine1: TleLine1): number;
199
+ /**
200
+ * Fractional day of the year when the TLE was generated (TLE epoch).
201
+ *
202
+ * Range: 1 to 365.99999999
203
+ *
204
+ * Example: 206.18396726
205
+ *
206
+ * @param {string} tleLine1 The first line of the TLE to parse.
207
+ * @returns {number} The day of the year the TLE was generated.
208
+ */
209
+ static getEpochDay(tleLine1: string): number;
210
+ /**
211
+ * First Time Derivative of the Mean Motion divided by two. Defines how mean motion changes
212
+ * over time, so TLE propagators can still be used to make reasonable guesses when
213
+ * times are distant from the original TLE epoch.
214
+ *
215
+ * Units: Orbits / day ^ 2
216
+ *
217
+ * Example: 0.00001961
218
+ *
219
+ * @param {string} tleLine1 The first line of the TLE to parse.
220
+ * @returns {number} The first derivative of the mean motion.
221
+ */
222
+ static getMeanMoDev1(tleLine1: TleLine1): number;
223
+ /**
224
+ * Second Time Derivative of Mean Motion divided by six (decimal point assumed). Measures rate
225
+ * of change in the Mean Motion Dot so software can make reasonable guesses when times are
226
+ * distant from the original TLE epoch.
227
+ *
228
+ * Usually zero, unless the satellite is manuevering or in a decaying orbit.
229
+ *
230
+ * Units: Orbits / day ^ 3.
231
+ *
232
+ * Example: 0 ('00000-0' in the original TLE [= 0.00000 * 10 ^ 0])
233
+ *
234
+ * @param {string} tleLine1 The first line of the TLE to parse.
235
+ * @returns {number} The second derivative of the mean motion.
236
+ */
237
+ static getMeanMoDev2(tleLine1: string): number;
238
+ /**
239
+ * BSTAR drag term (decimal point assumed). Estimates the effects of
240
+ * atmospheric drag on the satellite's motion.
241
+ *
242
+ * Units: EarthRadii ^ -1
243
+ *
244
+ * Example: 0.000036771 ('36771-4' in the original TLE [= 0.36771 * 10 ^ -4])
245
+ *
246
+ * @param {string} tleLine1 The first line of the TLE to parse.
247
+ * @returns {number} The drag coefficient.
248
+ */
249
+ static getBstar(tleLine1: TleLine1): number;
250
+ /**
251
+ * Private value - used by United States Space Force to reference the orbit model used to
252
+ * generate the TLE. Will always be seen as zero externally (e.g. by "us", unless you are
253
+ * "them" - in which case, hello!).
254
+ *
255
+ * Example: 0
256
+ *
257
+ * @param {string} tleLine1 The first line of the TLE to parse.
258
+ * @returns {number} The ephemeris type.
259
+ */
260
+ static getEphemerisType(tleLine1: TleLine1): number;
261
+ /**
262
+ * TLE element set number, incremented for each new TLE generated. 999 seems to mean the TLE
263
+ * has maxed out.
264
+ *
265
+ * Range: Technically 1 to 9999, though in practice the maximum number seems to be 999.
266
+ *
267
+ * Example: 999
268
+ * @param {string} tleLine1 The first line of the TLE to parse.
269
+ * @returns {number} The element number.
270
+ */
271
+ static getElsetNum(tleLine1: TleLine1): number;
272
+ /**
273
+ * TLE line 1 checksum (modulo 10), for verifying the integrity of this line of the TLE.
274
+ *
275
+ * Range: 0 to 9
276
+ * Example: 3
277
+ *
278
+ * @param {string} tleLine1 The first line of the TLE to parse.
279
+ * @returns {number} The checksum value.
280
+ */
281
+ static getChecksum(tleLine1: TleLine1): number;
282
+ /**
283
+ * Inclination relative to the Earth's equatorial plane in degrees. 0 to 90 degrees is a
284
+ * prograde orbit and 90 to 180 degrees is a retrograde orbit.
285
+ *
286
+ * Units: degrees
287
+ *
288
+ * Range: 0 to 180
289
+ *
290
+ * Example: 51.6400
291
+ *
292
+ * @param {string} tleLine2 The second line of the TLE to parse.
293
+ * @returns {number} The inclination of the satellite.
294
+ */
295
+ static getInclination(tleLine2: TleLine2): number;
296
+ /**
297
+ * Right ascension of the ascending node in degrees. Essentially, this is the angle of the
298
+ * satellite as it crosses northward (ascending) across the Earth's equator (equatorial
299
+ * plane).
300
+ *
301
+ * Units: degrees
302
+ *
303
+ * Range: 0 to 359.9999
304
+ *
305
+ * Example: 208.9163
306
+ *
307
+ * @param {string} tleLine2 The second line of the TLE to parse.
308
+ * @returns {number} The right ascension of the satellite.
309
+ */
310
+ static getRaan(tleLine2: TleLine2): number;
311
+ /**
312
+ * Orbital eccentricity, decimal point assumed. All artificial Earth satellites have an
313
+ * eccentricity between 0 (perfect circle) and 1 (parabolic orbit).
314
+ *
315
+ * Range: 0 to 1
316
+ *
317
+ * Example: 0.0006317 (`0006317` in the original TLE)
318
+ *
319
+ * @param {string} tleLine2 The second line of the TLE to parse.
320
+ * @returns {number} The eccentricity of the satellite.
321
+ */
322
+ static getEccentricity(tleLine2: TleLine2): number;
323
+ /**
324
+ * Argument of perigee. See https://en.wikipedia.org/wiki/Argument_of_perigee
325
+ *
326
+ * Units: degrees
327
+ *
328
+ * Range: 0 to 359.9999
329
+ *
330
+ * Example: 69.9862
331
+ *
332
+ * @param {string} tleLine2 The second line of the TLE to parse.
333
+ * @returns {number} The argument of perigee in degrees.
334
+ */
335
+ static getArgOfPerigee(tleLine2: TleLine2): number;
336
+ /**
337
+ * Mean anomaly. Indicates where the satellite was located within its orbit at the time of the
338
+ * TLE epoch.
339
+ * See https://en.wikipedia.org/wiki/Mean_Anomaly
340
+ *
341
+ * Units: degrees
342
+ *
343
+ * Range: 0 to 359.9999
344
+ *
345
+ * Example: 25.2906
346
+ *
347
+ * @param {string} tleLine2 The second line of the TLE to parse.
348
+ * @returns {number} The mean anomaly of the satellite.
349
+ */
350
+ static getMeanAnomaly(tleLine2: TleLine2): number;
351
+ /**
352
+ * Revolutions around the Earth per day (mean motion).
353
+ * See https://en.wikipedia.org/wiki/Mean_Motion
354
+ *
355
+ * Range: 0 to 17 (theoretically)
356
+ * Example: 15.54225995
357
+ * @param {string} tleLine2 The second line of the TLE to parse.
358
+ * @returns {number} The mean motion of the satellite.
359
+ */
360
+ static getMeanMotion(tleLine2: TleLine2): number;
361
+ /**
362
+ * Total satellite revolutions when this TLE was generated. This number rolls over
363
+ * (e.g. 99999 -> 0).
364
+ *
365
+ * Range: 0 to 99999
366
+ *
367
+ * Example: 6766
368
+ *
369
+ * @param {string} tleLine2 The second line of the TLE to parse.
370
+ * @returns {number} The revolutions around the Earth per day (mean motion).
371
+ */
372
+ static getRevNum(tleLine2: TleLine2): number;
373
+ }
374
+ export {};
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @author Theodore Kruczek.
3
+ * @description Orbital Object ToolKit (OOTK) is a collection of tools for working
4
+ * with satellites and other orbital objects.
5
+ *
6
+ * @file The Transforms module contains a collection of conversions not contained
7
+ * in the original SGP4 library such as ECI to ECF and ECF to RAE. This was based
8
+ * on some of the functions in satellite.js.
9
+ *
10
+ * @license AGPL-3.0-or-later
11
+ * @Copyright (c) 2020-2022 Theodore Kruczek
12
+ *
13
+ * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
14
+ * terms of the GNU Affero General Public License as published by the Free Software
15
+ * Foundation, either version 3 of the License, or (at your option) any later version.
16
+ *
17
+ * Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
18
+ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
+ * See the GNU Affero General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU Affero General Public License along with
22
+ * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ import { Degrees, EcfVec3, EciVec3, LlaVec3, Radians, RaeVec3, SezVec3 } from '../types/types';
25
+ declare class Transforms {
26
+ static getDegLat(radians: Radians): Degrees;
27
+ static getDegLon(radians: Radians): Degrees;
28
+ static getRadLat(degrees: Degrees): Radians;
29
+ static getRadLon(degrees: Degrees): Radians;
30
+ static rad2deg(radians: Radians): Degrees;
31
+ static deg2rad(degrees: Degrees): Radians;
32
+ static ecf2eci(ecf: EcfVec3, gmst: number): EciVec3;
33
+ static ecf2rae(lla: LlaVec3, ecf: EcfVec3): RaeVec3;
34
+ /**
35
+ * EciToGeodetic converts eci coordinates to lla coordinates
36
+ * @param {vec3} eci takes xyz coordinates
37
+ * @param {number} gmst takes a number in gmst time
38
+ * @returns {array} array containing lla coordinates
39
+ */
40
+ static eci2lla(eci: EciVec3, gmst: number): LlaVec3;
41
+ static eci2ecf(eci: EciVec3, gmst: number): EcfVec3;
42
+ static lla2ecf(lla: LlaVec3): EcfVec3;
43
+ static lla2sez(lla: LlaVec3, ecf: EcfVec3): SezVec3;
44
+ static rae2sez(rae: RaeVec3): SezVec3;
45
+ static rae2ecf(rae: RaeVec3, lla: LlaVec3): EcfVec3;
46
+ /**
47
+ * @param {Object} sez Containing SEZ coordinates
48
+ * @param {Number} sez.s Positive horizontal vector S due south.
49
+ * @param {Number} sez.e Positive horizontal vector E due east.
50
+ * @param {Number} sez.z Vector Z normal to the surface of the earth (up).
51
+ * @returns {Object} Rng, Az, El array
52
+ */
53
+ static sez2rae(sez: SezVec3): RaeVec3;
54
+ }
55
+ export { Transforms };
@@ -0,0 +1,272 @@
1
+ export declare type Kilometer = number;
2
+ export declare type Radians = number;
3
+ export declare type Degrees = number;
4
+ export declare type Vec3<Type> = {
5
+ x: Type;
6
+ y: Type;
7
+ z: Type;
8
+ };
9
+ export declare type EciVec3 = Vec3<Kilometer>;
10
+ export declare type EcfVec3 = {
11
+ x: Kilometer;
12
+ y: Kilometer;
13
+ z: Kilometer;
14
+ };
15
+ export declare type LlaVec3 = {
16
+ lat: Radians;
17
+ lon: Radians;
18
+ alt: Kilometer;
19
+ };
20
+ export declare type RaeVec3 = {
21
+ rng: Kilometer;
22
+ az: Degrees;
23
+ el: Degrees;
24
+ };
25
+ export declare type SezVec3 = {
26
+ s: Kilometer;
27
+ e: Kilometer;
28
+ z: Kilometer;
29
+ };
30
+ /**
31
+ * @interface SatelliteRecord contains all of the orbital parameters necessary for running SGP4.
32
+ * It is generated by Sgp4.createSatrec.
33
+ *
34
+ */
35
+ export interface SatelliteRecord {
36
+ a: number;
37
+ am: number;
38
+ alta: number;
39
+ altp: number;
40
+ argpdot: number;
41
+ argpo: number;
42
+ aycof: number;
43
+ bstar: number;
44
+ cc1: number;
45
+ cc4: number;
46
+ cc5: number;
47
+ con41: number;
48
+ d2: number;
49
+ d3: number;
50
+ d4: number;
51
+ d5232: number;
52
+ d5421: number;
53
+ d5433: number;
54
+ dedt: number;
55
+ delmo: number;
56
+ del1: number;
57
+ ecco: number;
58
+ em: number;
59
+ epochdays: number;
60
+ epochyr: number;
61
+ error: number;
62
+ eta: number;
63
+ gsto: number;
64
+ im: number;
65
+ inclo: number;
66
+ init: string;
67
+ isimp: number;
68
+ jdsatepoch: number;
69
+ mdot: number;
70
+ method: string;
71
+ mo: number;
72
+ mm: number;
73
+ nddot: number;
74
+ ndot: number;
75
+ no: number;
76
+ nodecf: number;
77
+ nodedot: number;
78
+ nodeo: number;
79
+ om: number;
80
+ Om: number;
81
+ omgcof: number;
82
+ operationmode: string;
83
+ satnum: string;
84
+ sinmao: number;
85
+ t: number;
86
+ t2cof: number;
87
+ t3cof: number;
88
+ t4cof: number;
89
+ t5cof: number;
90
+ x1mth2: number;
91
+ x7thm1: number;
92
+ xlcof: number;
93
+ xmcof: number;
94
+ xfact: number;
95
+ xlamo: number;
96
+ xli: number;
97
+ xgh4: number;
98
+ xgh3: number;
99
+ xh2: number;
100
+ xi2: number;
101
+ xi3: number;
102
+ xl2: number;
103
+ xl3: number;
104
+ xl4: number;
105
+ zmol: number;
106
+ zmos: number;
107
+ dmdt: number;
108
+ dnodt: number;
109
+ domdt: number;
110
+ e3: number;
111
+ ee2: number;
112
+ peo: number;
113
+ pgho: number;
114
+ pho: number;
115
+ PInco: number;
116
+ plo: number;
117
+ se2: number;
118
+ se3: number;
119
+ sgh2: number;
120
+ sgh3: number;
121
+ sgh4: number;
122
+ sh2: number;
123
+ sh3: number;
124
+ si2: number;
125
+ si3: number;
126
+ sl2: number;
127
+ sl3: number;
128
+ sl4: number;
129
+ xgh2: number;
130
+ xh3: number;
131
+ tumin: number;
132
+ radiusearthkm: number;
133
+ irez: number;
134
+ d3210: number;
135
+ d3222: number;
136
+ d4410: number;
137
+ d4422: number;
138
+ d5220: number;
139
+ del2: number;
140
+ del3: number;
141
+ didt: number;
142
+ atime: number;
143
+ j2: number;
144
+ j3: number;
145
+ j4: number;
146
+ mus: number;
147
+ xke: number;
148
+ j3oj2: number;
149
+ xni: number;
150
+ d2201: number;
151
+ d2211: number;
152
+ nm: number;
153
+ }
154
+ /** @typedef StateVector is a three dimensional position and velocity vector output from Sgp4.propagate.*/
155
+ export declare type StateVector = {
156
+ position: {
157
+ x: number;
158
+ y: number;
159
+ z: number;
160
+ } | boolean;
161
+ velocity: {
162
+ x: number;
163
+ y: number;
164
+ z: number;
165
+ } | boolean;
166
+ };
167
+ /** @typedef Vec3Flat is a flat three dimensional array used in vector math.*/
168
+ export declare type Vec3Flat = [number, number, number];
169
+ /** @typedef TleLine1 is the first line of a two line element set */
170
+ export declare type TleLine1 = string;
171
+ /** @typedef TleLine2 is the second line of a two line element set */
172
+ export declare type TleLine2 = string;
173
+ export declare type Line1Data = {
174
+ lineNumber1: number;
175
+ satNum: number;
176
+ satNumRaw: string;
177
+ classification: string;
178
+ intlDes: string;
179
+ intlDesYear: number;
180
+ intlDesLaunchNum: number;
181
+ intlDesLaunchPiece: string;
182
+ epochYear: number;
183
+ epochYearFull: number;
184
+ epochDay: number;
185
+ meanMoDev1: number;
186
+ meanMoDev2: number;
187
+ bstar: number;
188
+ ephemerisType: number;
189
+ elsetNum: number;
190
+ checksum1: number;
191
+ };
192
+ export declare type Line2Data = {
193
+ lineNumber2: number;
194
+ satNum: number;
195
+ satNumRaw: string;
196
+ inclination: number;
197
+ raan: number;
198
+ eccentricity: number;
199
+ argOfPerigee: number;
200
+ meanAnomaly: number;
201
+ meanMotion: number;
202
+ revNum: number;
203
+ checksum2: number;
204
+ };
205
+ export declare enum SpaceObjectType {
206
+ UNKNOWN = 0,
207
+ PAYLOAD = 1,
208
+ ROCKET_BODY = 2,
209
+ DEBRIS = 3,
210
+ SPECIAL = 4,
211
+ RADAR_MEASUREMENT = 5,
212
+ RADAR_TRACK = 6,
213
+ RADAR_OBJECT = 7,
214
+ BALLISTIC_MISSILE = 8,
215
+ STAR = 9,
216
+ INTERGOVERNMENTAL_ORGANIZATION = 10,
217
+ SUBORBITAL_PAYLOAD_OPERATOR = 11,
218
+ PAYLOAD_OWNER = 12,
219
+ METEOROLOGICAL_ROCKET_LAUNCH_AGENCY_OR_MANUFACTURER = 13,
220
+ PAYLOAD_MANUFACTURER = 14,
221
+ LAUNCH_AGENCY = 15,
222
+ LAUNCH_SITE = 16,
223
+ LAUNCH_POSITION = 17,
224
+ LAUNCH_FACILITY = 18,
225
+ CONTROL_FACILITY = 19,
226
+ GROUND_SENSOR_STATION = 20,
227
+ OPTICAL = 21,
228
+ MECHANICAL = 22,
229
+ PHASED_ARRAY_RADAR = 23,
230
+ OBSERVER = 24,
231
+ BISTATIC_RADIO_TELESCOPE = 25,
232
+ COUNTRY = 26,
233
+ LAUNCH_VEHICLE_MANUFACTURER = 27,
234
+ ENGINE_MANUFACTURER = 28
235
+ }
236
+ export declare type GreenwichMeanSiderealTime = number;
237
+ export declare type LaunchDetails = {
238
+ launchDate?: string;
239
+ launchMass?: string;
240
+ launchSite?: string;
241
+ launchVehicle?: string;
242
+ };
243
+ export declare type SpaceCraftDetails = {
244
+ lifetime?: string | number;
245
+ maneuver?: string;
246
+ manufacturer?: string;
247
+ motor?: string;
248
+ power?: string;
249
+ payload?: string;
250
+ purpose?: string;
251
+ shape?: string;
252
+ span?: string;
253
+ bus?: string;
254
+ configuration?: string;
255
+ equipment?: string;
256
+ dryMass?: string;
257
+ };
258
+ export declare type OperationsDetails = {
259
+ user?: string;
260
+ mission?: string;
261
+ owner?: string;
262
+ country?: string;
263
+ };
264
+ export declare type AzEl = {
265
+ az: Radians;
266
+ el: Radians;
267
+ };
268
+ export declare type Meters = number;
269
+ export declare type SunTime = {
270
+ solarNoon: Date;
271
+ nadir: Date;
272
+ };