ootk 1.8.0 → 2.0.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/.eslintrc.json +1 -1
- package/dist/objects/base-object.d.ts +1 -1
- package/dist/objects/detailed-sat.d.ts +1 -1
- package/dist/objects/sat.d.ts +4 -1
- package/dist/objects/sensor.d.ts +35 -21
- package/dist/objects/space-object.d.ts +1 -1
- package/dist/objects/star.d.ts +6 -6
- package/dist/ootk.d.ts +2 -1
- package/dist/ootk.js +1 -1
- package/dist/ootk.js.LICENSE.txt +3 -3
- package/dist/sgp4/Sgp4Assembly.d.ts +5 -0
- package/dist/sgp4/sgp4.d.ts +34 -34
- package/dist/tle/tle.d.ts +3 -3
- package/dist/transforms/transforms.d.ts +1 -1
- package/dist/types/types.d.ts +40 -32
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/moon-math.d.ts +6 -6
- package/dist/utils/sun-math.d.ts +8 -8
- package/dist/utils/utils.d.ts +4 -3
- package/lib/objects/base-object.d.ts +1 -1
- package/lib/objects/base-object.js +1 -1
- package/lib/objects/base-object.js.map +1 -1
- package/lib/objects/detailed-sat.d.ts +1 -1
- package/lib/objects/detailed-sat.js +1 -1
- package/lib/objects/sat.d.ts +4 -1
- package/lib/objects/sat.js +42 -7
- package/lib/objects/sat.js.map +1 -1
- package/lib/objects/sensor.d.ts +35 -21
- package/lib/objects/sensor.js +22 -7
- package/lib/objects/sensor.js.map +1 -1
- package/lib/objects/space-object.d.ts +1 -1
- package/lib/objects/space-object.js +1 -1
- package/lib/objects/star.d.ts +6 -6
- package/lib/objects/star.js +7 -7
- package/lib/objects/star.js.map +1 -1
- package/lib/ootk.d.ts +2 -1
- package/lib/ootk.js +2 -1
- package/lib/ootk.js.map +1 -1
- package/lib/sgp4/Sgp4Assembly.d.ts +5 -0
- package/lib/sgp4/Sgp4Assembly.js +75 -0
- package/lib/sgp4/Sgp4Assembly.js.map +1 -0
- package/lib/sgp4/sgp4.d.ts +34 -34
- package/lib/sgp4/sgp4.js +2927 -2906
- package/lib/sgp4/sgp4.js.map +1 -1
- package/lib/tle/tle.d.ts +3 -3
- package/lib/tle/tle.js +1 -1
- package/lib/transforms/transforms.d.ts +1 -1
- package/lib/transforms/transforms.js +8 -8
- package/lib/transforms/transforms.js.map +1 -1
- package/lib/types/types.d.ts +40 -32
- package/lib/types/types.js.map +1 -1
- package/lib/utils/constants.d.ts +1 -1
- package/lib/utils/constants.js +1 -1
- package/lib/utils/moon-math.d.ts +6 -6
- package/lib/utils/moon-math.js +4 -4
- package/lib/utils/moon-math.js.map +1 -1
- package/lib/utils/sun-math.d.ts +8 -8
- package/lib/utils/sun-math.js +17 -17
- package/lib/utils/sun-math.js.map +1 -1
- package/lib/utils/utils.d.ts +4 -3
- package/lib/utils/utils.js +2 -2
- package/lib/utils/utils.js.map +1 -1
- package/package.json +8 -8
- package/.asc/asconfig.json +0 -22
- package/.asc/assembly/index.ts +0 -1143
- package/.asc/ex/asconfig.json +0 -22
- package/.asc/ex/assembly/index.ts +0 -5
- package/.asc/ex/index.html +0 -10
- package/.asc/ex/package.json +0 -19
- package/.asc/ex/tests/index.js +0 -4
- package/.asc/package.json +0 -19
- package/.asc/tests/index.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sensor.js","sourceRoot":"","sources":["../../src/objects/sensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"sensor.js","sourceRoot":"","sources":["../../src/objects/sensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;AAEH,OAAO,EAAyC,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAExF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAiB7C,MAA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AAG,CAAC,EAAE;oBACV,EAAE,EAAE,GAAG,CAAC,EAAE;oBACV,GAAG,EAAE,GAAG,CAAC,GAAG;iBACb,CAAC;gBAEF,iCAAiC;gBACjC,IAAI,IAAI,KAAK,QAAQ,CAAC,IAAI,EAAE;oBAC1B,IAAI,CAAC,SAAS,GAAG,aAAa,CAAC;iBAChC;gBAED,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACzB,aAAa,GAAY,CAAC,CAAC;aAC5B;YAED,YAAY,GAAG,QAAQ,CAAC;SACzB;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;IAEc,kBAAW,GAA1B,UAA2B,QAAiB,EAAE,YAAqB;QACjE,IAAI,IAAI,GAAG,QAAQ,CAAC,WAAW,CAAC;QAEhC,IAAI,QAAQ,IAAI,CAAC,YAAY,EAAE;YAC7B,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC;SACvB;aAAM,IAAI,CAAC,QAAQ,IAAI,YAAY,EAAE;YACpC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;SACtB;aAAM,IAAI,QAAQ,IAAI,YAAY,EAAE;YACnC,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC;SACzB;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IACH,aAAC;AAAD,CAAC,AAjOD,CAA4B,UAAU,GAiOrC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* do not apply to ground based objects.
|
|
8
8
|
*
|
|
9
9
|
* @license AGPL-3.0-or-later
|
|
10
|
-
* @Copyright (c) 2020-
|
|
10
|
+
* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
11
11
|
*
|
|
12
12
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
13
13
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* do not apply to ground based objects.
|
|
8
8
|
*
|
|
9
9
|
* @license AGPL-3.0-or-later
|
|
10
|
-
* @Copyright (c) 2020-
|
|
10
|
+
* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
11
11
|
*
|
|
12
12
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
13
13
|
* terms of the GNU Affero General Public License as published by the Free Software
|
package/lib/objects/star.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* satellites and earth based sensors.
|
|
8
8
|
*
|
|
9
9
|
* @license AGPL-3.0-or-later
|
|
10
|
-
* @Copyright (c) 2020-
|
|
10
|
+
* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
11
11
|
*
|
|
12
12
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
13
13
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { EciVec3, LlaVec3, RaeVec3, SpaceObjectType } from '../types/types';
|
|
23
|
+
import { EciVec3, LlaVec3, Radians, RaeVec3, SpaceObjectType } from '../types/types';
|
|
24
24
|
import { SpaceObject } from './space-object';
|
|
25
25
|
interface ObjectInfo {
|
|
26
26
|
name?: string;
|
|
27
27
|
type?: SpaceObjectType;
|
|
28
28
|
vmag?: number;
|
|
29
|
-
ra:
|
|
30
|
-
dec:
|
|
29
|
+
ra: Radians;
|
|
30
|
+
dec: Radians;
|
|
31
31
|
pname?: string;
|
|
32
32
|
bf?: string;
|
|
33
33
|
h?: string;
|
|
@@ -36,8 +36,8 @@ export declare class Star extends SpaceObject {
|
|
|
36
36
|
pname: string;
|
|
37
37
|
bf: string;
|
|
38
38
|
h: string;
|
|
39
|
-
dec:
|
|
40
|
-
ra:
|
|
39
|
+
dec: Radians;
|
|
40
|
+
ra: Radians;
|
|
41
41
|
constructor(info: ObjectInfo);
|
|
42
42
|
getEci(lla?: LlaVec3, date?: Date): EciVec3;
|
|
43
43
|
getRae(lla?: LlaVec3, date?: Date): RaeVec3;
|
package/lib/objects/star.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* satellites and earth based sensors.
|
|
8
8
|
*
|
|
9
9
|
* @license AGPL-3.0-or-later
|
|
10
|
-
* @Copyright (c) 2020-
|
|
10
|
+
* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
11
11
|
*
|
|
12
12
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
13
13
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -35,8 +35,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
35
35
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
|
-
import { DAY_TO_MS, DEG2RAD } from '../utils/constants';
|
|
39
|
-
import { SpaceObjectType } from '../types/types';
|
|
38
|
+
import { DAY_TO_MS, DEG2RAD, RAD2DEG } from '../utils/constants';
|
|
39
|
+
import { SpaceObjectType, } from '../types/types';
|
|
40
40
|
import { Sgp4 } from '../sgp4/sgp4';
|
|
41
41
|
import { SpaceObject } from './space-object';
|
|
42
42
|
import { Transforms } from '../transforms/transforms';
|
|
@@ -66,7 +66,7 @@ var Star = /** @class */ (function (_super) {
|
|
|
66
66
|
return _this;
|
|
67
67
|
}
|
|
68
68
|
Star.prototype.getEci = function (lla, date) {
|
|
69
|
-
if (lla === void 0) { lla = { lat: 180, lon: 0, alt: 0 }; }
|
|
69
|
+
if (lla === void 0) { lla = { lat: (180 * DEG2RAD), lon: 0, alt: 0 }; }
|
|
70
70
|
if (date === void 0) { date = this.time; }
|
|
71
71
|
var rae = this.getRae(lla, date);
|
|
72
72
|
var gmst = Star.calculateTimeVariables(date).gmst;
|
|
@@ -74,10 +74,10 @@ var Star = /** @class */ (function (_super) {
|
|
|
74
74
|
return Transforms.ecf2eci(Transforms.rae2ecf(rae, { lat: 0, lon: 0, alt: 0 }), gmst);
|
|
75
75
|
};
|
|
76
76
|
Star.prototype.getRae = function (lla, date) {
|
|
77
|
-
if (lla === void 0) { lla = { lat: 180, lon: 0, alt: 0 }; }
|
|
77
|
+
if (lla === void 0) { lla = { lat: (180 * DEG2RAD), lon: 0, alt: 0 }; }
|
|
78
78
|
if (date === void 0) { date = this.time; }
|
|
79
|
-
var starPos = Utils.SunMath.getStarAzEl(date, lla.lat *
|
|
80
|
-
return { az: starPos.az, el: starPos.el, rng: 250000 };
|
|
79
|
+
var starPos = Utils.SunMath.getStarAzEl(date, (lla.lat * RAD2DEG), (lla.lon * RAD2DEG), this.ra, this.dec);
|
|
80
|
+
return { az: (starPos.az * RAD2DEG), el: (starPos.el * RAD2DEG), rng: 250000 };
|
|
81
81
|
};
|
|
82
82
|
Star.calculateTimeVariables = function (date) {
|
|
83
83
|
var j = Utils.jday(date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()) +
|
package/lib/objects/star.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"star.js","sourceRoot":"","sources":["../../src/objects/star.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;;;;;AAEH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"star.js","sourceRoot":"","sources":["../../src/objects/star.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;;;;;AAEH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAQL,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAA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,WAAW,GA0EpC"}
|
package/lib/ootk.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* with satellites and other orbital objects.
|
|
5
5
|
*
|
|
6
6
|
* @license AGPL-3.0-or-later
|
|
7
|
-
* @Copyright (c) 2020-
|
|
7
|
+
* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
8
8
|
*
|
|
9
9
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
10
10
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
export { Sgp4 } from './sgp4/sgp4';
|
|
21
|
+
export { Sgp4Assembly } from './sgp4/Sgp4Assembly';
|
|
21
22
|
export { Transforms } from './transforms/transforms';
|
|
22
23
|
export { Utils } from './utils/utils';
|
|
23
24
|
export { Tle } from './tle/tle';
|
package/lib/ootk.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* with satellites and other orbital objects.
|
|
5
5
|
*
|
|
6
6
|
* @license AGPL-3.0-or-later
|
|
7
|
-
* @Copyright (c) 2020-
|
|
7
|
+
* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
8
8
|
*
|
|
9
9
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
10
10
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
export { Sgp4 } from './sgp4/sgp4';
|
|
21
|
+
export { Sgp4Assembly } from './sgp4/Sgp4Assembly';
|
|
21
22
|
export { Transforms } from './transforms/transforms';
|
|
22
23
|
export { Utils } from './utils/utils';
|
|
23
24
|
export { Tle } from './tle/tle';
|
package/lib/ootk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ootk.js","sourceRoot":"","sources":["../src/ootk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"ootk.js","sourceRoot":"","sources":["../src/ootk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { Sgp4 } from './sgp4';
|
|
38
|
+
var Sgp4Assembly = /** @class */ (function () {
|
|
39
|
+
function Sgp4Assembly() {
|
|
40
|
+
}
|
|
41
|
+
Sgp4Assembly.prototype.propagateWasm = function () {
|
|
42
|
+
var TLE1 = '1 25544U 98067A 21284.51782528 .00016738 00000-0 10270-3 0 9033';
|
|
43
|
+
var TLE2 = '2 25544 51.6443 82.9991 0004256 95.9687 15.0739 15.48978733306954';
|
|
44
|
+
var satrec = Sgp4.createSatrec(TLE1, TLE2);
|
|
45
|
+
var propagate = this.module.instance.exports.propagate;
|
|
46
|
+
var tsince = 30;
|
|
47
|
+
// eslint-disable-next-line no-console
|
|
48
|
+
console.log(propagate(satrec.a, satrec.am, satrec.alta, satrec.altp, satrec.argpdot, satrec.argpo, satrec.aycof, satrec.bstar, satrec.cc1, satrec.cc4, satrec.cc5, satrec.con41, satrec.d2, satrec.d3, satrec.d4, satrec.d5232, satrec.d5421, satrec.d5433, satrec.dedt, satrec.delmo, satrec.del1, satrec.ecco, satrec.em, satrec.epochdays, satrec.epochyr, satrec.error, satrec.eta, satrec.gsto, satrec.im, satrec.inclo, satrec.init, satrec.isimp, satrec.jdsatepoch, satrec.mdot, satrec.method, satrec.mo, satrec.mm, satrec.nddot, satrec.ndot, satrec.no, satrec.nodecf, satrec.nodedot, satrec.nodeo, satrec.om, satrec.Om, satrec.omgcof, satrec.operationmode, satrec.satnum, satrec.sinmao, satrec.t, satrec.t2cof, satrec.t3cof, satrec.t4cof, satrec.t5cof, satrec.x1mth2, satrec.x7thm1, satrec.xlcof, satrec.xmcof, satrec.xfact, satrec.xlamo, satrec.xli, satrec.xgh4, satrec.xgh3, satrec.xh2, satrec.xi2, satrec.xi3, satrec.xl2, satrec.xl3, satrec.xl4, satrec.zmol, satrec.zmos, satrec.dmdt, satrec.dnodt, satrec.domdt, satrec.e3, satrec.ee2, satrec.peo, satrec.pgho, satrec.pho, satrec.PInco, satrec.plo, satrec.se2, satrec.se3, satrec.sgh2, satrec.sgh3, satrec.sgh4, satrec.sh2, satrec.sh3, satrec.si2, satrec.si3, satrec.sl2, satrec.sl3, satrec.sl4, satrec.xgh2, satrec.xh3, satrec.tumin, satrec.radiusearthkm, satrec.irez, satrec.d3210, satrec.d3222, satrec.d4410, satrec.d4422, satrec.d5220, satrec.del2, satrec.del3, satrec.didt, satrec.atime, satrec.j2, satrec.j3, satrec.j4, satrec.mus, satrec.xke, satrec.j3oj2, satrec.xni, satrec.d2201, satrec.d2211, satrec.nm, tsince));
|
|
49
|
+
};
|
|
50
|
+
Sgp4Assembly.prototype.loadWasm = function (path) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
52
|
+
var imports, _a;
|
|
53
|
+
return __generator(this, function (_b) {
|
|
54
|
+
switch (_b.label) {
|
|
55
|
+
case 0:
|
|
56
|
+
imports = {
|
|
57
|
+
env: {
|
|
58
|
+
abort: function (_msg, _file, line, column) {
|
|
59
|
+
throw Error("abort called at ".concat(line, ":").concat(column));
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
_a = this;
|
|
64
|
+
return [4 /*yield*/, WebAssembly.instantiateStreaming(fetch(path), imports)];
|
|
65
|
+
case 1:
|
|
66
|
+
_a.module = (_b.sent());
|
|
67
|
+
return [2 /*return*/];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
return Sgp4Assembly;
|
|
73
|
+
}());
|
|
74
|
+
export { Sgp4Assembly };
|
|
75
|
+
//# sourceMappingURL=Sgp4Assembly.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sgp4Assembly.js","sourceRoot":"","sources":["../../src/sgp4/Sgp4Assembly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAyI9B;IAAA;IAqJA,CAAC;IAlJQ,oCAAa,GAApB;QACE,IAAM,IAAI,GAAG,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* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
14
14
|
*
|
|
15
15
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
16
16
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -25,27 +25,37 @@
|
|
|
25
25
|
*/
|
|
26
26
|
import { SatelliteRecord, StateVector, Vec3Flat } from '../types/types';
|
|
27
27
|
declare class Sgp4 {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
private static dsinit;
|
|
31
|
-
private static dspace;
|
|
32
|
-
private static initl;
|
|
33
|
-
private static sgp4init;
|
|
34
|
-
static propagate(satrec: SatelliteRecord, tsince: number): StateVector;
|
|
35
|
-
private static getgravconst;
|
|
28
|
+
static angle(vec1: Vec3Flat, vec2: Vec3Flat): number;
|
|
29
|
+
static asinh(xval: number): number;
|
|
36
30
|
static createSatrec(tleLine1: string, tleLine2: string, whichconst?: string, opsmode?: string): SatelliteRecord;
|
|
37
|
-
static gstime(jdut1: number): number;
|
|
38
|
-
static sgn(x: number): number;
|
|
39
|
-
static mag(x: Vec3Flat): number;
|
|
40
31
|
static cross(vec1: Vec3Flat, vec2: Vec3Flat): Vec3Flat;
|
|
32
|
+
static days2mdhms(year: number, days: number): {
|
|
33
|
+
mon: number;
|
|
34
|
+
day: number;
|
|
35
|
+
hr: number;
|
|
36
|
+
min: number;
|
|
37
|
+
sec: number;
|
|
38
|
+
};
|
|
41
39
|
static dot(x: Vec3Flat, y: Vec3Flat): number;
|
|
42
|
-
static
|
|
43
|
-
static
|
|
40
|
+
static gstime(jdut1: number): number;
|
|
41
|
+
static invjday(jd: number, jdfrac: number): {
|
|
42
|
+
year: number;
|
|
43
|
+
mon: number;
|
|
44
|
+
day: number;
|
|
45
|
+
hr: number;
|
|
46
|
+
min: number;
|
|
47
|
+
sec: number;
|
|
48
|
+
};
|
|
49
|
+
static jday(year: number | Date, mon?: number, day?: number, hr?: number, min?: number, sec?: number, ms?: number): {
|
|
50
|
+
jd: number;
|
|
51
|
+
jdFrac: number;
|
|
52
|
+
};
|
|
53
|
+
static mag(x: Vec3Flat): number;
|
|
44
54
|
static newtonnu(ecc: number, nu: number): {
|
|
45
55
|
e0: number;
|
|
46
56
|
m: number;
|
|
47
57
|
};
|
|
48
|
-
static
|
|
58
|
+
static propagate(satrec: SatelliteRecord, tsince: number): StateVector;
|
|
49
59
|
static rv2coe(r: Vec3Flat, v: Vec3Flat, mus: number): {
|
|
50
60
|
p: number;
|
|
51
61
|
a: number;
|
|
@@ -59,24 +69,14 @@ declare class Sgp4 {
|
|
|
59
69
|
truelon: number;
|
|
60
70
|
lonper: number;
|
|
61
71
|
};
|
|
62
|
-
static
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
static
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
sec: number;
|
|
72
|
-
};
|
|
73
|
-
static invjday(jd: number, jdfrac: number): {
|
|
74
|
-
year: number;
|
|
75
|
-
mon: number;
|
|
76
|
-
day: number;
|
|
77
|
-
hr: number;
|
|
78
|
-
min: number;
|
|
79
|
-
sec: number;
|
|
80
|
-
};
|
|
72
|
+
static sgn(x: number): number;
|
|
73
|
+
static sinh(x: number): number;
|
|
74
|
+
private static dpper;
|
|
75
|
+
private static dscom;
|
|
76
|
+
private static dsinit;
|
|
77
|
+
private static dspace;
|
|
78
|
+
private static getgravconst;
|
|
79
|
+
private static initl;
|
|
80
|
+
private static sgp4init;
|
|
81
81
|
}
|
|
82
82
|
export { Sgp4 };
|