ootk 1.0.8 → 1.5.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/{asc → .asc}/asconfig.json +0 -0
- package/{asc → .asc}/assembly/index.ts +0 -0
- package/{asc → .asc}/ex/asconfig.json +0 -0
- package/{asc → .asc}/ex/assembly/index.ts +0 -0
- package/{asc → .asc}/ex/index.html +0 -0
- package/{asc → .asc}/ex/package.json +0 -0
- package/{asc → .asc}/ex/tests/index.js +0 -0
- package/{asc → .asc}/package.json +0 -0
- package/{asc → .asc}/tests/index.js +0 -0
- package/.eslintrc.json +244 -0
- package/CHANGELOG.md +21 -1
- package/LICENSE.MD +299 -21
- package/README.md +17 -22
- package/dist/objects/base-object.d.ts +40 -0
- package/dist/objects/detailed-sat.d.ts +66 -0
- package/dist/objects/index.d.ts +4 -0
- package/dist/objects/sat.d.ts +88 -0
- package/dist/objects/sensor.d.ts +40 -0
- package/dist/objects/space-object.d.ts +38 -0
- package/dist/objects/star.d.ts +46 -0
- package/dist/ootk.d.ts +16 -21
- package/dist/ootk.js +2 -1
- package/dist/ootk.js.LICENSE.txt +77 -0
- package/dist/{sgp4.d.ts → sgp4/sgp4.d.ts} +14 -21
- package/dist/tle/tle-format-data.d.ts +6 -0
- package/dist/tle/tle.d.ts +374 -0
- package/{lib → dist/transforms}/transforms.d.ts +14 -17
- package/dist/{types.d.ts → types/types.d.ts} +111 -3
- package/dist/utils/constants.d.ts +34 -0
- package/dist/utils/moon-math.d.ts +104 -0
- package/dist/utils/sun-math.d.ts +230 -0
- package/dist/utils/utils.d.ts +36 -0
- package/lib/objects/base-object.d.ts +40 -0
- package/lib/objects/base-object.js +109 -0
- package/lib/objects/base-object.js.map +1 -0
- package/lib/objects/detailed-sat.d.ts +66 -0
- package/lib/objects/detailed-sat.js +149 -0
- package/lib/objects/detailed-sat.js.map +1 -0
- package/lib/objects/index.d.ts +4 -0
- package/lib/objects/index.js +5 -0
- package/lib/objects/index.js.map +1 -0
- package/lib/objects/sat.d.ts +88 -0
- package/lib/objects/sat.js +141 -0
- package/lib/objects/sat.js.map +1 -0
- package/lib/objects/sensor.d.ts +40 -0
- package/lib/objects/sensor.js +88 -0
- package/lib/objects/sensor.js.map +1 -0
- package/lib/objects/space-object.d.ts +38 -0
- package/lib/objects/space-object.js +60 -0
- package/lib/objects/space-object.js.map +1 -0
- package/lib/objects/star.d.ts +46 -0
- package/lib/objects/star.js +91 -0
- package/lib/objects/star.js.map +1 -0
- package/lib/ootk.d.ts +16 -21
- package/lib/ootk.js +16 -21
- package/lib/ootk.js.map +1 -1
- package/lib/{sgp4.d.ts → sgp4/sgp4.d.ts} +14 -21
- package/lib/{sgp4.js → sgp4/sgp4.js} +1064 -898
- package/lib/sgp4/sgp4.js.map +1 -0
- package/lib/tle/tle-format-data.d.ts +6 -0
- package/lib/tle/tle-format-data.js +10 -0
- package/lib/tle/tle-format-data.js.map +1 -0
- package/lib/tle/tle.d.ts +374 -0
- package/lib/tle/tle.js +611 -0
- package/lib/tle/tle.js.map +1 -0
- package/{dist → lib/transforms}/transforms.d.ts +14 -17
- package/lib/{transforms.js → transforms/transforms.js} +44 -40
- package/lib/transforms/transforms.js.map +1 -0
- package/lib/{types.d.ts → types/types.d.ts} +111 -3
- package/lib/types/types.js +34 -0
- package/lib/types/types.js.map +1 -0
- package/lib/utils/constants.d.ts +19 -15
- package/lib/utils/constants.js +20 -16
- package/lib/utils/constants.js.map +1 -1
- package/lib/utils/moon-math.d.ts +104 -0
- package/lib/utils/moon-math.js +387 -0
- package/lib/utils/moon-math.js.map +1 -0
- package/lib/utils/sun-math.d.ts +230 -0
- package/lib/utils/sun-math.js +421 -0
- package/lib/utils/sun-math.js.map +1 -0
- package/lib/utils/utils.d.ts +36 -0
- package/lib/utils/utils.js +81 -0
- package/lib/utils/utils.js.map +1 -0
- package/package.json +4 -3
- package/dist/utils.d.ts +0 -34
- package/lib/sgp4.js.map +0 -1
- package/lib/transforms.js.map +0 -1
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/lib/utils.d.ts +0 -34
- package/lib/utils.js +0 -62
- package/lib/utils.js.map +0 -1
package/lib/ootk.d.ts
CHANGED
|
@@ -3,28 +3,23 @@
|
|
|
3
3
|
* @description Orbital Object ToolKit (OOTK) is a collection of tools for working
|
|
4
4
|
* with satellites and other orbital objects.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
7
|
-
* Copyright (c) 2020-
|
|
6
|
+
* @license AGPL-3.0-or-later
|
|
7
|
+
* @Copyright (c) 2020-2022 Theodore Kruczek
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
* of
|
|
11
|
-
*
|
|
12
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
-
* furnished to do so, subject to the following conditions:
|
|
9
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
10
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
11
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
15
12
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
14
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
15
|
+
* See the GNU Affero General Public License for more details.
|
|
18
16
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
-
* SOFTWARE.
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
18
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
26
19
|
*/
|
|
27
|
-
export { Sgp4 } from './sgp4';
|
|
28
|
-
export { Transforms } from './transforms';
|
|
29
|
-
export { Utils } from './utils';
|
|
30
|
-
export
|
|
20
|
+
export { Sgp4 } from './sgp4/sgp4';
|
|
21
|
+
export { Transforms } from './transforms/transforms';
|
|
22
|
+
export { Utils } from './utils/utils';
|
|
23
|
+
export { Tle } from './tle/tle';
|
|
24
|
+
export * from './objects/index';
|
|
25
|
+
export * from './types/types';
|
package/lib/ootk.js
CHANGED
|
@@ -3,29 +3,24 @@
|
|
|
3
3
|
* @description Orbital Object ToolKit (OOTK) is a collection of tools for working
|
|
4
4
|
* with satellites and other orbital objects.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
7
|
-
* Copyright (c) 2020-
|
|
6
|
+
* @license AGPL-3.0-or-later
|
|
7
|
+
* @Copyright (c) 2020-2022 Theodore Kruczek
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
* of
|
|
11
|
-
*
|
|
12
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
-
* furnished to do so, subject to the following conditions:
|
|
9
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
10
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
11
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
15
12
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
14
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
15
|
+
* See the GNU Affero General Public License for more details.
|
|
18
16
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
-
* SOFTWARE.
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
18
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
26
19
|
*/
|
|
27
|
-
export { Sgp4 } from './sgp4';
|
|
28
|
-
export { Transforms } from './transforms';
|
|
29
|
-
export { Utils } from './utils';
|
|
30
|
-
export
|
|
20
|
+
export { Sgp4 } from './sgp4/sgp4';
|
|
21
|
+
export { Transforms } from './transforms/transforms';
|
|
22
|
+
export { Utils } from './utils/utils';
|
|
23
|
+
export { Tle } from './tle/tle';
|
|
24
|
+
export * from './objects/index';
|
|
25
|
+
export * from './types/types';
|
|
31
26
|
//# sourceMappingURL=ootk.js.map
|
package/lib/ootk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ootk.js","sourceRoot":"","sources":["../src/ootk.ts"],"names":[],"mappings":"AAAA
|
|
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"}
|
|
@@ -9,28 +9,21 @@
|
|
|
9
9
|
* in order provide context to the functions and clarify any adjustments made for
|
|
10
10
|
* TypeScript/JavaScript compatibility.
|
|
11
11
|
*
|
|
12
|
-
* @
|
|
13
|
-
* Copyright (c) 2020-
|
|
12
|
+
* @license AGPL-3.0-or-later
|
|
13
|
+
* @Copyright (c) 2020-2022 Theodore Kruczek
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
* of
|
|
17
|
-
*
|
|
18
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
20
|
-
* furnished to do so, subject to the following conditions:
|
|
15
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
16
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
17
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
21
18
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
19
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
20
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
21
|
+
* See the GNU Affero General Public License for more details.
|
|
24
22
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
-
* SOFTWARE.
|
|
23
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
24
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
32
25
|
*/
|
|
33
|
-
import { SatelliteRecord, StateVector, Vec3Flat } from '
|
|
26
|
+
import { SatelliteRecord, StateVector, Vec3Flat } from '../types/types';
|
|
34
27
|
declare class Sgp4 {
|
|
35
28
|
private static dpper;
|
|
36
29
|
private static dscom;
|
|
@@ -66,7 +59,7 @@ declare class Sgp4 {
|
|
|
66
59
|
truelon: number;
|
|
67
60
|
lonper: number;
|
|
68
61
|
};
|
|
69
|
-
static jday(year: number, mon
|
|
62
|
+
static jday(year: number | Date, mon?: number, day?: number, hr?: number, min?: number, sec?: number, ms?: number): {
|
|
70
63
|
jd: number;
|
|
71
64
|
jdFrac: number;
|
|
72
65
|
};
|
|
@@ -74,7 +67,7 @@ declare class Sgp4 {
|
|
|
74
67
|
mon: number;
|
|
75
68
|
day: number;
|
|
76
69
|
hr: number;
|
|
77
|
-
|
|
70
|
+
min: number;
|
|
78
71
|
sec: number;
|
|
79
72
|
};
|
|
80
73
|
static invjday(jd: number, jdfrac: number): {
|
|
@@ -82,7 +75,7 @@ declare class Sgp4 {
|
|
|
82
75
|
mon: number;
|
|
83
76
|
day: number;
|
|
84
77
|
hr: number;
|
|
85
|
-
|
|
78
|
+
min: number;
|
|
86
79
|
sec: number;
|
|
87
80
|
};
|
|
88
81
|
}
|