ootk 1.0.2 → 1.0.6

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +28 -27
  2. package/LICENSE.MD +21 -21
  3. package/README.md +128 -128
  4. package/asc/asconfig.json +22 -0
  5. package/asc/assembly/index.ts +1143 -0
  6. package/asc/ex/asconfig.json +22 -0
  7. package/asc/ex/assembly/index.ts +5 -0
  8. package/asc/ex/index.html +10 -0
  9. package/asc/ex/package.json +19 -0
  10. package/asc/ex/tests/index.js +4 -0
  11. package/asc/package.json +19 -0
  12. package/asc/tests/index.js +4 -0
  13. package/codecov.yml +21 -0
  14. package/dist/ootk.js +1 -3850
  15. package/lib/{ootk.es.d.ts → ootk.d.ts} +3 -4
  16. package/lib/{ootk.es.js → ootk.js} +4 -4
  17. package/lib/ootk.js.map +1 -0
  18. package/lib/{ootk-sgp4.es.d.ts → sgp4.d.ts} +6 -140
  19. package/lib/{ootk-sgp4.es.js → sgp4.js} +545 -554
  20. package/lib/sgp4.js.map +1 -0
  21. package/lib/transforms.d.ts +58 -0
  22. package/lib/{ootk-transforms.es.js → transforms.js} +3 -3
  23. package/lib/transforms.js.map +1 -0
  24. package/lib/{ootk-utils.es.d.ts → utils/constants.d.ts} +6 -11
  25. package/lib/utils/constants.js +31 -0
  26. package/lib/utils/constants.js.map +1 -0
  27. package/lib/utils/types.d.ts +164 -0
  28. package/lib/utils/types.js +2 -0
  29. package/lib/utils/types.js.map +1 -0
  30. package/lib/utils.d.ts +33 -0
  31. package/lib/{ootk-utils.es.js → utils.js} +12 -5
  32. package/lib/utils.js.map +1 -0
  33. package/package.json +15 -16
  34. package/sandbox.html +8 -0
  35. package/dist/ootk-sgp4.js +0 -3471
  36. package/dist/ootk-sgp4.min.js +0 -34
  37. package/dist/ootk-transforms.js +0 -340
  38. package/dist/ootk-transforms.min.js +0 -1
  39. package/dist/ootk-utils.js +0 -149
  40. package/dist/ootk-utils.min.js +0 -1
  41. package/dist/ootk.min.js +0 -2223
  42. package/lib/ootk-transforms.es.d.ts +0 -141
@@ -1,141 +0,0 @@
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
- * Permission is hereby granted, free of charge, to any person obtaining a copy
11
- * of this software and associated documentation files (the "Software"), to deal
12
- * in the Software without restriction, including without limitation the rights
13
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- * copies of the Software, and to permit persons to whom the Software is
15
- * furnished to do so, subject to the following conditions:
16
- *
17
- * The above copyright notice and this permission notice shall be included in all
18
- * copies or substantial portions of the Software.
19
- *
20
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- * SOFTWARE.
27
- */
28
- declare class Transforms {
29
- static getDegLat(radians: number): number;
30
- static getDegLon(radians: number): number;
31
- static getRadLat(degrees: number): number;
32
- static getRadLon(degrees: number): number;
33
- static rad2deg(radians: number): number;
34
- static deg2rad(degrees: number): number;
35
- static ecf2eci(ecf: {
36
- x: number;
37
- y: number;
38
- z: number;
39
- }, gmst: number): {
40
- x: number;
41
- y: number;
42
- z: number;
43
- };
44
- static ecf2rae(lla: {
45
- lon: number;
46
- lat: number;
47
- alt: number;
48
- }, ecf: {
49
- x: number;
50
- y: number;
51
- z: number;
52
- }): {
53
- rng: number;
54
- az: number;
55
- el: number;
56
- };
57
- /** eciToGeodetic converts eci coordinates to lla coordinates
58
- * @param {{array}} eci takes xyz coordinates
59
- * @param {number} gmst takes a number in gmst time
60
- * @returns {array} array containing lla coordinates
61
- */
62
- static eci2lla(eci: {
63
- x: number;
64
- y: number;
65
- z: number;
66
- }, gmst: number): {
67
- lat: number;
68
- lon: number;
69
- alt: number;
70
- };
71
- static eci2ecf(eci: {
72
- x: number;
73
- y: number;
74
- z: number;
75
- }, gmst: number): {
76
- x: number;
77
- y: number;
78
- z: number;
79
- };
80
- static lla2ecf(lla: {
81
- lat: number;
82
- lon: number;
83
- alt: number;
84
- }): {
85
- x: number;
86
- y: number;
87
- z: number;
88
- };
89
- static lla2sez(lla: {
90
- lat: number;
91
- lon: number;
92
- alt: number;
93
- }, ecf: {
94
- x: number;
95
- y: number;
96
- z: number;
97
- }): {
98
- s: number;
99
- e: number;
100
- z: number;
101
- };
102
- static rae2sez(rae: {
103
- rng: number;
104
- az: number;
105
- el: number;
106
- }): {
107
- s: number;
108
- e: number;
109
- z: number;
110
- };
111
- static rae2ecf(rae: {
112
- rng: number;
113
- az: number;
114
- el: number;
115
- }, lla: {
116
- lat: number;
117
- lon: number;
118
- alt: number;
119
- }): {
120
- x: number;
121
- y: number;
122
- z: number;
123
- };
124
- /**
125
- * @param {Object} sez Containing SEZ coordinates
126
- * @param {Number} sez.s Positive horizontal vector S due south.
127
- * @param {Number} sez.e Positive horizontal vector E due east.
128
- * @param {Number} sez.z Vector Z normal to the surface of the earth (up).
129
- * @returns {Object} Rng, Az, El array
130
- */
131
- static sez2rae(sez: {
132
- s: number;
133
- e: number;
134
- z: number;
135
- }): {
136
- rng: number;
137
- az: number;
138
- el: number;
139
- };
140
- }
141
- export { Transforms };