ootk 3.0.0 → 4.0.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.
Files changed (261) hide show
  1. package/.eslintrc.json +10 -10
  2. package/CHANGELOG.md +122 -0
  3. package/README.md +27 -40
  4. package/lib/coordinate/Hill.d.ts +50 -0
  5. package/lib/coordinate/Hill.js +214 -0
  6. package/lib/coordinate/Hill.js.map +1 -0
  7. package/lib/coordinate/index.d.ts +1 -0
  8. package/lib/coordinate/index.js +2 -0
  9. package/lib/coordinate/index.js.map +1 -0
  10. package/lib/covariance/CovarianceSample.d.ts +44 -0
  11. package/lib/covariance/CovarianceSample.js +146 -0
  12. package/lib/covariance/CovarianceSample.js.map +1 -0
  13. package/lib/covariance/StateCovariance.d.ts +41 -0
  14. package/lib/covariance/StateCovariance.js +62 -0
  15. package/lib/covariance/StateCovariance.js.map +1 -0
  16. package/lib/force/AtmosphericDrag.d.ts +32 -0
  17. package/lib/force/AtmosphericDrag.js +66 -0
  18. package/lib/force/AtmosphericDrag.js.map +1 -0
  19. package/lib/force/EarthGravity.d.ts +28 -0
  20. package/lib/force/EarthGravity.js +115 -0
  21. package/lib/force/EarthGravity.js.map +1 -0
  22. package/{dist/ootk.d.ts → lib/force/Force.d.ts} +10 -10
  23. package/lib/force/Force.js +30 -0
  24. package/lib/force/Force.js.map +1 -0
  25. package/lib/force/ForceModel.d.ts +38 -0
  26. package/lib/force/ForceModel.js +71 -0
  27. package/lib/force/ForceModel.js.map +1 -0
  28. package/lib/force/Gravity.d.ts +41 -0
  29. package/lib/force/Gravity.js +48 -0
  30. package/lib/force/Gravity.js.map +1 -0
  31. package/lib/force/SolarRadiationPressure.d.ts +27 -0
  32. package/lib/force/SolarRadiationPressure.js +42 -0
  33. package/lib/force/SolarRadiationPressure.js.map +1 -0
  34. package/lib/force/ThirdBodyGravity.d.ts +27 -0
  35. package/lib/force/ThirdBodyGravity.js +56 -0
  36. package/lib/force/ThirdBodyGravity.js.map +1 -0
  37. package/lib/force/Thrust.d.ts +35 -0
  38. package/lib/force/Thrust.js +53 -0
  39. package/lib/force/Thrust.js.map +1 -0
  40. package/lib/interpolator/ChebyshevCoefficients.d.ts +54 -0
  41. package/lib/interpolator/ChebyshevCoefficients.js +90 -0
  42. package/lib/interpolator/ChebyshevCoefficients.js.map +1 -0
  43. package/lib/interpolator/ChebyshevInterpolator.d.ts +39 -0
  44. package/lib/interpolator/ChebyshevInterpolator.js +71 -0
  45. package/lib/interpolator/ChebyshevInterpolator.js.map +1 -0
  46. package/lib/interpolator/CubicSpline.d.ts +36 -0
  47. package/lib/interpolator/CubicSpline.js +64 -0
  48. package/lib/interpolator/CubicSpline.js.map +1 -0
  49. package/lib/interpolator/CubicSplineInterpolator.d.ts +37 -0
  50. package/lib/interpolator/CubicSplineInterpolator.js +78 -0
  51. package/lib/interpolator/CubicSplineInterpolator.js.map +1 -0
  52. package/lib/interpolator/FieldInterpolator.d.ts +26 -0
  53. package/lib/interpolator/FieldInterpolator.js +31 -0
  54. package/lib/interpolator/FieldInterpolator.js.map +1 -0
  55. package/lib/interpolator/Interpolator.d.ts +23 -0
  56. package/lib/interpolator/Interpolator.js +48 -0
  57. package/lib/interpolator/Interpolator.js.map +1 -0
  58. package/lib/interpolator/LagrangeInterpolator.d.ts +42 -0
  59. package/lib/interpolator/LagrangeInterpolator.js +156 -0
  60. package/lib/interpolator/LagrangeInterpolator.js.map +1 -0
  61. package/lib/interpolator/StateInterpolator.d.ts +29 -0
  62. package/lib/interpolator/StateInterpolator.js +37 -0
  63. package/lib/interpolator/StateInterpolator.js.map +1 -0
  64. package/lib/interpolator/VerletBlendInterpolator.d.ts +44 -0
  65. package/lib/interpolator/VerletBlendInterpolator.js +115 -0
  66. package/lib/interpolator/VerletBlendInterpolator.js.map +1 -0
  67. package/lib/maneuver/TwoBurnOrbitTransfer.d.ts +43 -0
  68. package/lib/maneuver/TwoBurnOrbitTransfer.js +62 -0
  69. package/lib/maneuver/TwoBurnOrbitTransfer.js.map +1 -0
  70. package/lib/maneuver/Waypoint.d.ts +66 -0
  71. package/lib/maneuver/Waypoint.js +152 -0
  72. package/lib/maneuver/Waypoint.js.map +1 -0
  73. package/lib/objects/DetailedSatellite.d.ts +94 -0
  74. package/lib/objects/DetailedSatellite.js +140 -0
  75. package/lib/objects/DetailedSatellite.js.map +1 -0
  76. package/lib/objects/DetailedSensor.d.ts +43 -0
  77. package/lib/objects/DetailedSensor.js +45 -0
  78. package/lib/objects/DetailedSensor.js.map +1 -0
  79. package/{dist/objects/space-object.d.ts → lib/objects/LandObject.d.ts} +19 -21
  80. package/lib/objects/LandObject.js +28 -0
  81. package/lib/objects/LandObject.js.map +1 -0
  82. package/lib/objects/Marker.d.ts +21 -0
  83. package/lib/objects/Marker.js +25 -0
  84. package/lib/objects/Marker.js.map +1 -0
  85. package/lib/objects/index.d.ts +5 -4
  86. package/lib/objects/index.js +5 -4
  87. package/lib/objects/index.js.map +1 -1
  88. package/lib/observation/Observation.d.ts +51 -0
  89. package/lib/observation/Observation.js +71 -0
  90. package/lib/observation/Observation.js.map +1 -0
  91. package/lib/observation/ObservationOptical.d.ts +47 -0
  92. package/lib/observation/ObservationOptical.js +101 -0
  93. package/lib/observation/ObservationOptical.js.map +1 -0
  94. package/lib/observation/ObservationRadar.d.ts +43 -0
  95. package/lib/observation/ObservationRadar.js +90 -0
  96. package/lib/observation/ObservationRadar.js.map +1 -0
  97. package/lib/observation/ObservationUtils.d.ts +21 -0
  98. package/lib/observation/ObservationUtils.js +33 -0
  99. package/lib/observation/ObservationUtils.js.map +1 -0
  100. package/lib/observation/PropagatorPairs.d.ts +31 -0
  101. package/lib/observation/PropagatorPairs.js +40 -0
  102. package/lib/observation/PropagatorPairs.js.map +1 -0
  103. package/lib/ootk.d.ts +10 -8
  104. package/lib/ootk.js +10 -8
  105. package/lib/ootk.js.map +1 -1
  106. package/lib/operations/BoxMuller.d.ts +41 -0
  107. package/lib/operations/BoxMuller.js +66 -0
  108. package/lib/operations/BoxMuller.js.map +1 -0
  109. package/lib/operations/EulerAngles.d.ts +50 -0
  110. package/lib/operations/EulerAngles.js +111 -0
  111. package/lib/operations/EulerAngles.js.map +1 -0
  112. package/lib/operations/Quaternion.d.ts +57 -0
  113. package/lib/operations/Quaternion.js +164 -0
  114. package/lib/operations/Quaternion.js.map +1 -0
  115. package/lib/operations/RandomGaussianSource.d.ts +25 -0
  116. package/lib/operations/RandomGaussianSource.js +43 -0
  117. package/lib/operations/RandomGaussianSource.js.map +1 -0
  118. package/lib/operations/index.d.ts +4 -0
  119. package/lib/operations/index.js +5 -0
  120. package/lib/operations/index.js.map +1 -0
  121. package/lib/optimize/ChebyshevCompressor.d.ts +31 -0
  122. package/lib/optimize/ChebyshevCompressor.js +80 -0
  123. package/lib/optimize/ChebyshevCompressor.js.map +1 -0
  124. package/lib/optimize/DownhillSimplex.d.ts +50 -0
  125. package/lib/optimize/DownhillSimplex.js +168 -0
  126. package/lib/optimize/DownhillSimplex.js.map +1 -0
  127. package/lib/optimize/GoldenSection.d.ts +33 -0
  128. package/lib/optimize/GoldenSection.js +49 -0
  129. package/lib/optimize/GoldenSection.js.map +1 -0
  130. package/lib/optimize/PolynomialRegression.d.ts +37 -0
  131. package/lib/optimize/PolynomialRegression.js +66 -0
  132. package/lib/optimize/PolynomialRegression.js.map +1 -0
  133. package/lib/optimize/PolynomicalRegressionResult.d.ts +28 -0
  134. package/lib/optimize/PolynomicalRegressionResult.js +32 -0
  135. package/lib/optimize/PolynomicalRegressionResult.js.map +1 -0
  136. package/lib/optimize/SimpleLinearRegression.d.ts +41 -0
  137. package/lib/optimize/SimpleLinearRegression.js +107 -0
  138. package/lib/optimize/SimpleLinearRegression.js.map +1 -0
  139. package/lib/optimize/SimplexEntry.d.ts +33 -0
  140. package/lib/optimize/SimplexEntry.js +39 -0
  141. package/lib/optimize/SimplexEntry.js.map +1 -0
  142. package/lib/orbit_determination/BatchLeastSquaresOD.d.ts +54 -0
  143. package/lib/orbit_determination/BatchLeastSquaresOD.js +118 -0
  144. package/lib/orbit_determination/BatchLeastSquaresOD.js.map +1 -0
  145. package/lib/orbit_determination/BatchLeastSquaresResult.d.ts +29 -0
  146. package/lib/orbit_determination/BatchLeastSquaresResult.js +31 -0
  147. package/lib/orbit_determination/BatchLeastSquaresResult.js.map +1 -0
  148. package/lib/orbit_determination/GibbsIOD.d.ts +33 -0
  149. package/lib/orbit_determination/GibbsIOD.js +70 -0
  150. package/lib/orbit_determination/GibbsIOD.js.map +1 -0
  151. package/lib/orbit_determination/GoodingIOD.d.ts +52 -0
  152. package/lib/orbit_determination/GoodingIOD.js +244 -0
  153. package/lib/orbit_determination/GoodingIOD.js.map +1 -0
  154. package/lib/{objects/space-object.d.ts → orbit_determination/HerrickGibbsIOD.d.ts} +17 -22
  155. package/lib/orbit_determination/HerrickGibbsIOD.js +49 -0
  156. package/lib/orbit_determination/HerrickGibbsIOD.js.map +1 -0
  157. package/lib/orbit_determination/LambertIOD.d.ts +46 -0
  158. package/lib/orbit_determination/LambertIOD.js +199 -0
  159. package/lib/orbit_determination/LambertIOD.js.map +1 -0
  160. package/lib/orbit_determination/ModifiedGoodingIOD.d.ts +41 -0
  161. package/lib/orbit_determination/ModifiedGoodingIOD.js +82 -0
  162. package/lib/orbit_determination/ModifiedGoodingIOD.js.map +1 -0
  163. package/lib/propagator/DormandPrince54Propagator.d.ts +29 -0
  164. package/lib/propagator/DormandPrince54Propagator.js +68 -0
  165. package/lib/propagator/DormandPrince54Propagator.js.map +1 -0
  166. package/lib/propagator/KeplerPropagator.d.ts +36 -0
  167. package/lib/propagator/KeplerPropagator.js +81 -0
  168. package/lib/propagator/KeplerPropagator.js.map +1 -0
  169. package/lib/propagator/Propagator.d.ts +35 -0
  170. package/lib/propagator/Propagator.js +163 -0
  171. package/lib/propagator/Propagator.js.map +1 -0
  172. package/lib/propagator/RkCheckpoint.d.ts +23 -0
  173. package/lib/propagator/RkCheckpoint.js +26 -0
  174. package/lib/propagator/RkCheckpoint.js.map +1 -0
  175. package/lib/propagator/RkResult.d.ts +24 -0
  176. package/lib/propagator/RkResult.js +28 -0
  177. package/lib/propagator/RkResult.js.map +1 -0
  178. package/lib/propagator/RungeKutta4Propagator.d.ts +46 -0
  179. package/lib/propagator/RungeKutta4Propagator.js +132 -0
  180. package/lib/propagator/RungeKutta4Propagator.js.map +1 -0
  181. package/lib/propagator/RungeKutta89Propagator.d.ts +29 -0
  182. package/lib/propagator/RungeKutta89Propagator.js +130 -0
  183. package/lib/propagator/RungeKutta89Propagator.js.map +1 -0
  184. package/lib/propagator/RungeKuttaAdaptive.d.ts +52 -0
  185. package/lib/propagator/RungeKuttaAdaptive.js +152 -0
  186. package/lib/propagator/RungeKuttaAdaptive.js.map +1 -0
  187. package/lib/propagator/Sgp4Propagator.d.ts +35 -0
  188. package/lib/propagator/Sgp4Propagator.js +55 -0
  189. package/lib/propagator/Sgp4Propagator.js.map +1 -0
  190. package/lib/smoothing/ExponentialSmoothing.d.ts +24 -0
  191. package/lib/smoothing/ExponentialSmoothing.js +82 -0
  192. package/lib/smoothing/ExponentialSmoothing.js.map +1 -0
  193. package/lib/types/types.d.ts +65 -584
  194. package/lib/types/types.js +21 -33
  195. package/lib/types/types.js.map +1 -1
  196. package/package.json +16 -14
  197. package/.prettierrc +0 -17
  198. package/babel.config.js +0 -16
  199. package/codecov.yml +0 -21
  200. package/dist/objects/base-object.d.ts +0 -40
  201. package/dist/objects/detailed-sat.d.ts +0 -66
  202. package/dist/objects/index.d.ts +0 -4
  203. package/dist/objects/sat.d.ts +0 -92
  204. package/dist/objects/sensor.d.ts +0 -93
  205. package/dist/objects/star.d.ts +0 -46
  206. package/dist/ootk.js +0 -2
  207. package/dist/ootk.js.LICENSE.txt +0 -77
  208. package/dist/sgp4/sgp4.d.ts +0 -82
  209. package/dist/tle/tle-format-data.d.ts +0 -6
  210. package/dist/tle/tle.d.ts +0 -375
  211. package/dist/transforms/transforms.d.ts +0 -94
  212. package/dist/types/types.d.ts +0 -605
  213. package/dist/utils/constants.d.ts +0 -34
  214. package/dist/utils/moon-math.d.ts +0 -113
  215. package/dist/utils/sun-math.d.ts +0 -230
  216. package/dist/utils/utils.d.ts +0 -39
  217. package/lib/objects/base-object.d.ts +0 -40
  218. package/lib/objects/base-object.js +0 -79
  219. package/lib/objects/base-object.js.map +0 -1
  220. package/lib/objects/detailed-sat.d.ts +0 -66
  221. package/lib/objects/detailed-sat.js +0 -149
  222. package/lib/objects/detailed-sat.js.map +0 -1
  223. package/lib/objects/sat.d.ts +0 -92
  224. package/lib/objects/sat.js +0 -188
  225. package/lib/objects/sat.js.map +0 -1
  226. package/lib/objects/sensor.d.ts +0 -93
  227. package/lib/objects/sensor.js +0 -273
  228. package/lib/objects/sensor.js.map +0 -1
  229. package/lib/objects/space-object.js +0 -60
  230. package/lib/objects/space-object.js.map +0 -1
  231. package/lib/objects/star.d.ts +0 -46
  232. package/lib/objects/star.js +0 -91
  233. package/lib/objects/star.js.map +0 -1
  234. package/lib/sgp4/sgp4.d.ts +0 -82
  235. package/lib/sgp4/sgp4.js +0 -3262
  236. package/lib/sgp4/sgp4.js.map +0 -1
  237. package/lib/tle/tle-format-data.d.ts +0 -6
  238. package/lib/tle/tle-format-data.js +0 -10
  239. package/lib/tle/tle-format-data.js.map +0 -1
  240. package/lib/tle/tle.d.ts +0 -375
  241. package/lib/tle/tle.js +0 -611
  242. package/lib/tle/tle.js.map +0 -1
  243. package/lib/transforms/transforms.d.ts +0 -94
  244. package/lib/transforms/transforms.js +0 -308
  245. package/lib/transforms/transforms.js.map +0 -1
  246. package/lib/utils/constants.d.ts +0 -34
  247. package/lib/utils/constants.js +0 -35
  248. package/lib/utils/constants.js.map +0 -1
  249. package/lib/utils/moon-math.d.ts +0 -113
  250. package/lib/utils/moon-math.js +0 -387
  251. package/lib/utils/moon-math.js.map +0 -1
  252. package/lib/utils/sun-math.d.ts +0 -230
  253. package/lib/utils/sun-math.js +0 -422
  254. package/lib/utils/sun-math.js.map +0 -1
  255. package/lib/utils/utils.d.ts +0 -39
  256. package/lib/utils/utils.js +0 -102
  257. package/lib/utils/utils.js.map +0 -1
  258. package/sandbox.html +0 -8
  259. package/tsconfig.base.json +0 -31
  260. package/tsconfig.build.json +0 -14
  261. /package/{LICENSE.MD → LICENSE.md} +0 -0
package/dist/tle/tle.d.ts DELETED
@@ -1,375 +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 TLE module contains a collection of functions for working with TLEs.
7
- *
8
- * @license AGPL-3.0-or-later
9
- * @Copyright (c) 2020-2023 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
- import { TleFormatData } from './tle-format-data';
24
- type TleData = {
25
- satNum: number;
26
- intlDes: string;
27
- epochYear: number;
28
- epochDay: number;
29
- meanMoDev1: number;
30
- meanMoDev2: number;
31
- bstar: number;
32
- inclination: number;
33
- raan: number;
34
- eccentricity: number;
35
- argOfPerigee: number;
36
- meanAnomaly: number;
37
- meanMotion: number;
38
- };
39
- type TleDataFull = Line1Data & Line2Data;
40
- export declare class Tle {
41
- static readonly lineNumber: TleFormatData;
42
- static readonly satNum: TleFormatData;
43
- static readonly classification: TleFormatData;
44
- static readonly intlDes: TleFormatData;
45
- static readonly intlDesYear: TleFormatData;
46
- static readonly intlDesLaunchNum: TleFormatData;
47
- static readonly intlDesLaunchPiece: TleFormatData;
48
- static readonly epochYear: TleFormatData;
49
- static readonly epochDay: TleFormatData;
50
- static readonly meanMoDev1: TleFormatData;
51
- static readonly meanMoDev2: TleFormatData;
52
- static readonly bstar: TleFormatData;
53
- static readonly ephemerisType: TleFormatData;
54
- static readonly elsetNum: TleFormatData;
55
- static readonly checksum: TleFormatData;
56
- static readonly inclination: TleFormatData;
57
- static readonly raan: TleFormatData;
58
- static readonly eccentricity: TleFormatData;
59
- static readonly argPerigee: TleFormatData;
60
- static readonly meanAnom: TleFormatData;
61
- static readonly meanMo: TleFormatData;
62
- static readonly revNum: TleFormatData;
63
- /**
64
- * Parses the TLE into orbital data.
65
- *
66
- * If you want all of the data then use parseTleFull instead.
67
- * @param {TleLine1} tleLine1 TLE line 1
68
- * @param {TleLine2} tleLine2 TLE line 2
69
- * @returns {TleData} Returns most commonly used orbital data from TLE
70
- */
71
- static parseTle(tleLine1: TleLine1, tleLine2: TleLine2): TleData;
72
- /**
73
- * Parses all of the data contained in the TLE.
74
- *
75
- * If you only want the most commonly used data then use parseTle instead.
76
- * @param {TleLine1} tleLine1 The first line of the TLE to parse.
77
- * @param {TleLine2} tleLine2 The second line of the TLE to parse.
78
- * @returns {TleDataFull} Returns all of the data from the TLE.
79
- */
80
- static parseTleFull(tleLine1: TleLine1, tleLine2: TleLine2): TleDataFull;
81
- /**
82
- * Parse the first line of the TLE.
83
- * @param {TleLine1} tleLine1 The first line of the TLE to parse.
84
- * @returns {Line1Data} Returns the data from the first line of the TLE.
85
- */
86
- static parseLine1(tleLine1: TleLine1): Line1Data;
87
- /**
88
- * Parse the second line of the TLE.
89
- * @param {TleLine2} tleLine2 The second line of the TLE to parse.
90
- * @returns {Line2Data} Returns the data from the second line of the TLE.
91
- */
92
- static parseLine2(tleLine2: TleLine2): Line2Data;
93
- /**
94
- * This should always return a 1 or a 2.
95
- * @param {string} tleLine The first line of the TLE to parse.
96
- * @returns {number} The line number of the TLE.
97
- */
98
- static getLineNumber(tleLine: TleLine1 | TleLine2): 1 | 2;
99
- /**
100
- * See https://en.wikipedia.org/wiki/Satellite_Catalog_Number
101
- *
102
- * Range: 0 to 99999 or 26999.
103
- *
104
- * NOTE: To support Alpha-5, the first digit can be a letter.
105
- * This will be converted to a number in order to expand the range to 26999.
106
- *
107
- * Example: 25544 or B1234 (e.g. Sputnik's rocket body was number 00001)
108
- *
109
- * @param {string} tleLine The first line of the TLE to parse.
110
- * @returns {number} NORAD catalog number.
111
- */
112
- static getSatNum(tleLine: TleLine1 | TleLine2): number;
113
- /**
114
- * See https://en.wikipedia.org/wiki/Satellite_Catalog_Number
115
- *
116
- * Range: 0 to 99999 or 26999.
117
- *
118
- * NOTE: To support Alpha-5, the first digit can be a letter.
119
- * This will NOT be converted to a number. Use getSatNum() for that.
120
- *
121
- * Example: 25544 or B1234 (e.g. Sputnik's rocket body was number 00001)
122
- *
123
- * @param {string} tleLine The first line of the TLE to parse.
124
- * @returns {string} NORAD catalog number.
125
- */
126
- static getRawSatNum(tleLine: TleLine1 | TleLine2): string;
127
- /**
128
- * Satellite classification.
129
- * * 'U' = unclassified
130
- * * 'C' = confidential
131
- * * 'S' = secret
132
- *
133
- * Example: 'U'
134
- * @param {string} tleLine1 The first line of the TLE to parse.
135
- * @returns {string} The classification.
136
- */
137
- static getClassification(tleLine1: TleLine1): string;
138
- /**
139
- * International Designator (COSPAR ID)
140
- * See https://en.wikipedia.org/wiki/International_Designator
141
- * @param {string} tleLine1 The first line of the TLE to parse.
142
- * @returns {string} The International Designator.
143
- */
144
- static getIntlDes(tleLine1: TleLine1): string;
145
- /**
146
- * International Designator (COSPAR ID): Last 2 digits of launch year.
147
- *
148
- * Range: 00 to 99
149
- *
150
- * Example: 98
151
- *
152
- * @param {string} tleLine1 The first line of the TLE to parse.
153
- * @returns {number} The year of the International Designator.
154
- */
155
- static getIntlDesYear(tleLine1: TleLine1): number;
156
- /**
157
- * International Designator (COSPAR ID): Launch number of the year.
158
- *
159
- * Range: 1 to 999
160
- *
161
- * Example: 67
162
- *
163
- * @param {string} tleLine1 The first line of the TLE to parse.
164
- * @returns {number} The launch number of the International Designator.
165
- */
166
- static getIntlDesLaunchNum(tleLine1: string): number;
167
- /**
168
- * International Designator (COSPAR ID): Piece of the launch.
169
- *
170
- * Range: A to ZZZ
171
- *
172
- * Example: 'A'
173
- *
174
- * @param {string} tleLine1 The first line of the TLE to parse.
175
- * @returns {string} The launch piece of the International Designator.
176
- */
177
- static getIntlDesLaunchPiece(tleLine1: TleLine1): string;
178
- /**
179
- * Year when the TLE was generated (TLE epoch), last two digits.
180
- *
181
- * Range: 00 to 99
182
- *
183
- * Example: 17
184
- *
185
- * @param {string} tleLine1 The first line of the TLE to parse.
186
- * @returns {number} The year the TLE was generated.
187
- */
188
- static getEpochYear(tleLine1: TleLine1): number;
189
- /**
190
- * Year when the TLE was generated (TLE epoch), four digits.
191
- *
192
- * Range: 1957 to 2056
193
- *
194
- * Example: 2008
195
- *
196
- * @param {string} tleLine1 The first line of the TLE to parse.
197
- * @returns {number} The year the TLE was generated.
198
- */
199
- static getEpochYearFull(tleLine1: TleLine1): number;
200
- /**
201
- * Fractional day of the year when the TLE was generated (TLE epoch).
202
- *
203
- * Range: 1 to 365.99999999
204
- *
205
- * Example: 206.18396726
206
- *
207
- * @param {string} tleLine1 The first line of the TLE to parse.
208
- * @returns {number} The day of the year the TLE was generated.
209
- */
210
- static getEpochDay(tleLine1: string): number;
211
- /**
212
- * First Time Derivative of the Mean Motion divided by two. Defines how mean motion changes
213
- * over time, so TLE propagators can still be used to make reasonable guesses when
214
- * times are distant from the original TLE epoch.
215
- *
216
- * Units: Orbits / day ^ 2
217
- *
218
- * Example: 0.00001961
219
- *
220
- * @param {string} tleLine1 The first line of the TLE to parse.
221
- * @returns {number} The first derivative of the mean motion.
222
- */
223
- static getMeanMoDev1(tleLine1: TleLine1): number;
224
- /**
225
- * Second Time Derivative of Mean Motion divided by six (decimal point assumed). Measures rate
226
- * of change in the Mean Motion Dot so software can make reasonable guesses when times are
227
- * distant from the original TLE epoch.
228
- *
229
- * Usually zero, unless the satellite is manuevering or in a decaying orbit.
230
- *
231
- * Units: Orbits / day ^ 3.
232
- *
233
- * Example: 0 ('00000-0' in the original TLE [= 0.00000 * 10 ^ 0])
234
- *
235
- * @param {string} tleLine1 The first line of the TLE to parse.
236
- * @returns {number} The second derivative of the mean motion.
237
- */
238
- static getMeanMoDev2(tleLine1: string): number;
239
- /**
240
- * BSTAR drag term (decimal point assumed). Estimates the effects of
241
- * atmospheric drag on the satellite's motion.
242
- *
243
- * Units: EarthRadii ^ -1
244
- *
245
- * Example: 0.000036771 ('36771-4' in the original TLE [= 0.36771 * 10 ^ -4])
246
- *
247
- * @param {string} tleLine1 The first line of the TLE to parse.
248
- * @returns {number} The drag coefficient.
249
- */
250
- static getBstar(tleLine1: TleLine1): number;
251
- /**
252
- * Private value - used by United States Space Force to reference the orbit model used to
253
- * generate the TLE. Will always be seen as zero externally (e.g. by "us", unless you are
254
- * "them" - in which case, hello!).
255
- *
256
- * Example: 0
257
- *
258
- * @param {string} tleLine1 The first line of the TLE to parse.
259
- * @returns {number} The ephemeris type.
260
- */
261
- static getEphemerisType(tleLine1: TleLine1): number;
262
- /**
263
- * TLE element set number, incremented for each new TLE generated. 999 seems to mean the TLE
264
- * has maxed out.
265
- *
266
- * Range: Technically 1 to 9999, though in practice the maximum number seems to be 999.
267
- *
268
- * Example: 999
269
- * @param {string} tleLine1 The first line of the TLE to parse.
270
- * @returns {number} The element number.
271
- */
272
- static getElsetNum(tleLine1: TleLine1): number;
273
- /**
274
- * TLE line 1 checksum (modulo 10), for verifying the integrity of this line of the TLE.
275
- *
276
- * Range: 0 to 9
277
- * Example: 3
278
- *
279
- * @param {string} tleLine The first line of the TLE to parse.
280
- * @returns {number} The checksum value.
281
- */
282
- static getChecksum(tleLine: TleLine1 | TleLine2): number;
283
- /**
284
- * Inclination relative to the Earth's equatorial plane in degrees. 0 to 90 degrees is a
285
- * prograde orbit and 90 to 180 degrees is a retrograde orbit.
286
- *
287
- * Units: degrees
288
- *
289
- * Range: 0 to 180
290
- *
291
- * Example: 51.6400
292
- *
293
- * @param {string} tleLine2 The second line of the TLE to parse.
294
- * @returns {number} The inclination of the satellite.
295
- */
296
- static getInclination(tleLine2: TleLine2): number;
297
- /**
298
- * Right ascension of the ascending node in degrees. Essentially, this is the angle of the
299
- * satellite as it crosses northward (ascending) across the Earth's equator (equatorial
300
- * plane).
301
- *
302
- * Units: degrees
303
- *
304
- * Range: 0 to 359.9999
305
- *
306
- * Example: 208.9163
307
- *
308
- * @param {string} tleLine2 The second line of the TLE to parse.
309
- * @returns {number} The right ascension of the satellite.
310
- */
311
- static getRaan(tleLine2: TleLine2): number;
312
- /**
313
- * Orbital eccentricity, decimal point assumed. All artificial Earth satellites have an
314
- * eccentricity between 0 (perfect circle) and 1 (parabolic orbit).
315
- *
316
- * Range: 0 to 1
317
- *
318
- * Example: 0.0006317 (`0006317` in the original TLE)
319
- *
320
- * @param {string} tleLine2 The second line of the TLE to parse.
321
- * @returns {number} The eccentricity of the satellite.
322
- */
323
- static getEccentricity(tleLine2: TleLine2): number;
324
- /**
325
- * Argument of perigee. See https://en.wikipedia.org/wiki/Argument_of_perigee
326
- *
327
- * Units: degrees
328
- *
329
- * Range: 0 to 359.9999
330
- *
331
- * Example: 69.9862
332
- *
333
- * @param {string} tleLine2 The second line of the TLE to parse.
334
- * @returns {number} The argument of perigee in degrees.
335
- */
336
- static getArgOfPerigee(tleLine2: TleLine2): number;
337
- /**
338
- * Mean anomaly. Indicates where the satellite was located within its orbit at the time of the
339
- * TLE epoch.
340
- * See https://en.wikipedia.org/wiki/Mean_Anomaly
341
- *
342
- * Units: degrees
343
- *
344
- * Range: 0 to 359.9999
345
- *
346
- * Example: 25.2906
347
- *
348
- * @param {string} tleLine2 The second line of the TLE to parse.
349
- * @returns {number} The mean anomaly of the satellite.
350
- */
351
- static getMeanAnomaly(tleLine2: TleLine2): number;
352
- /**
353
- * Revolutions around the Earth per day (mean motion).
354
- * See https://en.wikipedia.org/wiki/Mean_Motion
355
- *
356
- * Range: 0 to 17 (theoretically)
357
- * Example: 15.54225995
358
- * @param {string} tleLine2 The second line of the TLE to parse.
359
- * @returns {number} The mean motion of the satellite.
360
- */
361
- static getMeanMotion(tleLine2: TleLine2): number;
362
- /**
363
- * Total satellite revolutions when this TLE was generated. This number rolls over
364
- * (e.g. 99999 -> 0).
365
- *
366
- * Range: 0 to 99999
367
- *
368
- * Example: 6766
369
- *
370
- * @param {string} tleLine2 The second line of the TLE to parse.
371
- * @returns {number} The revolutions around the Earth per day (mean motion).
372
- */
373
- static getRevNum(tleLine2: TleLine2): number;
374
- }
375
- export {};
@@ -1,94 +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
- * @license AGPL-3.0-or-later
11
- * @Copyright (c) 2020-2023 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, EcefVec3, EcfVec3, EciVec3, EnuVec3, Kilometers, LlaVec3, RadarSensor, Radians, RaeVec3, RfVec3, RuvVec3, 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 {RaeVec3} Rng, Az, El array
52
- */
53
- static sez2rae(sez: SezVec3): RaeVec3;
54
- /**
55
- * Calculates Geodetic Lat Lon Alt to ECEF coordinates.
56
- */
57
- static lla2ecef(lla: LlaVec3): EcefVec3<Kilometers>;
58
- static ecf2enu(ecf: EcefVec3<Kilometers>, lla: LlaVec3): EnuVec3<Kilometers>;
59
- static rae2enu(rae: RaeVec3): EnuVec3<Kilometers>;
60
- static enu2rf({ x, y, z }: EnuVec3<Kilometers>, az: Radians, el: Radians): RfVec3;
61
- /**
62
- * Converts Azimuth and Elevation to U and V.
63
- * Azimuth is the angle off of boresight in the horizontal plane.
64
- * Elevation is the angle off of boresight in the vertical plane.
65
- * Cone half angle is the angle of the cone of the radar max field of view.
66
- */
67
- static azel2uv(az: Radians, el: Radians, coneHalfAngle: Radians): {
68
- u: Radians;
69
- v: Radians;
70
- };
71
- /**
72
- * Converts U and V to Azimuth and Elevation off of boresight.
73
- */
74
- static uv2azel(u: Radians, v: Radians, coneHalfAngle: Radians): {
75
- az: Radians;
76
- el: Radians;
77
- };
78
- /**
79
- * Converts Range Az El to Range U V.
80
- */
81
- static rae2ruv(rae: RaeVec3, sensor: RadarSensor, maxSensorAz: Degrees): RuvVec3;
82
- /**
83
- * Determine azimuth and elevation off of boresight based on sensor orientation and RAE.
84
- *
85
- * @param {rae} rae Range, Azimuth, Elevation
86
- * @param {RadarSensor} sensor Radar sensor object
87
- * @returns {az, el} Azimuth and Elevation off of boresight
88
- */
89
- static rae2raeOffBoresight(rae: RaeVec3, sensor: RadarSensor, maxSensorAz: Degrees): {
90
- az: Radians;
91
- el: Radians;
92
- };
93
- }
94
- export { Transforms };