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
@@ -1,36 +1,24 @@
1
1
  /**
2
- * Enum representing different types of objects.
2
+ * @author @thkruz Theodore Kruczek
3
+ *
4
+ * @license AGPL-3.0-or-later
5
+ * @Copyright (c) 2020-2024 Theodore Kruczek
6
+ *
7
+ * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
+ * terms of the GNU Affero General Public License as published by the Free Software
9
+ * Foundation, either version 3 of the License, or (at your option) any later version.
10
+ *
11
+ * Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
12
+ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
+ * See the GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License along with
16
+ * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
3
17
  */
4
- export var SpaceObjectType;
5
- (function (SpaceObjectType) {
6
- SpaceObjectType[SpaceObjectType["UNKNOWN"] = 0] = "UNKNOWN";
7
- SpaceObjectType[SpaceObjectType["PAYLOAD"] = 1] = "PAYLOAD";
8
- SpaceObjectType[SpaceObjectType["ROCKET_BODY"] = 2] = "ROCKET_BODY";
9
- SpaceObjectType[SpaceObjectType["DEBRIS"] = 3] = "DEBRIS";
10
- SpaceObjectType[SpaceObjectType["SPECIAL"] = 4] = "SPECIAL";
11
- SpaceObjectType[SpaceObjectType["RADAR_MEASUREMENT"] = 5] = "RADAR_MEASUREMENT";
12
- SpaceObjectType[SpaceObjectType["RADAR_TRACK"] = 6] = "RADAR_TRACK";
13
- SpaceObjectType[SpaceObjectType["RADAR_OBJECT"] = 7] = "RADAR_OBJECT";
14
- SpaceObjectType[SpaceObjectType["BALLISTIC_MISSILE"] = 8] = "BALLISTIC_MISSILE";
15
- SpaceObjectType[SpaceObjectType["STAR"] = 9] = "STAR";
16
- SpaceObjectType[SpaceObjectType["INTERGOVERNMENTAL_ORGANIZATION"] = 10] = "INTERGOVERNMENTAL_ORGANIZATION";
17
- SpaceObjectType[SpaceObjectType["SUBORBITAL_PAYLOAD_OPERATOR"] = 11] = "SUBORBITAL_PAYLOAD_OPERATOR";
18
- SpaceObjectType[SpaceObjectType["PAYLOAD_OWNER"] = 12] = "PAYLOAD_OWNER";
19
- SpaceObjectType[SpaceObjectType["METEOROLOGICAL_ROCKET_LAUNCH_AGENCY_OR_MANUFACTURER"] = 13] = "METEOROLOGICAL_ROCKET_LAUNCH_AGENCY_OR_MANUFACTURER";
20
- SpaceObjectType[SpaceObjectType["PAYLOAD_MANUFACTURER"] = 14] = "PAYLOAD_MANUFACTURER";
21
- SpaceObjectType[SpaceObjectType["LAUNCH_AGENCY"] = 15] = "LAUNCH_AGENCY";
22
- SpaceObjectType[SpaceObjectType["LAUNCH_SITE"] = 16] = "LAUNCH_SITE";
23
- SpaceObjectType[SpaceObjectType["LAUNCH_POSITION"] = 17] = "LAUNCH_POSITION";
24
- SpaceObjectType[SpaceObjectType["LAUNCH_FACILITY"] = 18] = "LAUNCH_FACILITY";
25
- SpaceObjectType[SpaceObjectType["CONTROL_FACILITY"] = 19] = "CONTROL_FACILITY";
26
- SpaceObjectType[SpaceObjectType["GROUND_SENSOR_STATION"] = 20] = "GROUND_SENSOR_STATION";
27
- SpaceObjectType[SpaceObjectType["OPTICAL"] = 21] = "OPTICAL";
28
- SpaceObjectType[SpaceObjectType["MECHANICAL"] = 22] = "MECHANICAL";
29
- SpaceObjectType[SpaceObjectType["PHASED_ARRAY_RADAR"] = 23] = "PHASED_ARRAY_RADAR";
30
- SpaceObjectType[SpaceObjectType["OBSERVER"] = 24] = "OBSERVER";
31
- SpaceObjectType[SpaceObjectType["BISTATIC_RADIO_TELESCOPE"] = 25] = "BISTATIC_RADIO_TELESCOPE";
32
- SpaceObjectType[SpaceObjectType["COUNTRY"] = 26] = "COUNTRY";
33
- SpaceObjectType[SpaceObjectType["LAUNCH_VEHICLE_MANUFACTURER"] = 27] = "LAUNCH_VEHICLE_MANUFACTURER";
34
- SpaceObjectType[SpaceObjectType["ENGINE_MANUFACTURER"] = 28] = "ENGINE_MANUFACTURER";
35
- })(SpaceObjectType || (SpaceObjectType = {}));
18
+ export var ZoomValue;
19
+ (function (ZoomValue) {
20
+ ZoomValue[ZoomValue["LEO"] = 0.45] = "LEO";
21
+ ZoomValue[ZoomValue["GEO"] = 0.82] = "GEO";
22
+ ZoomValue[ZoomValue["MAX"] = 1] = "MAX";
23
+ })(ZoomValue || (ZoomValue = {}));
36
24
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAmhBA;;GAEG;AACH,MAAM,CAAN,IAAY,eA8BX;AA9BD,WAAY,eAAe;IACzB,2DAAW,CAAA;IACX,2DAAW,CAAA;IACX,mEAAe,CAAA;IACf,yDAAU,CAAA;IACV,2DAAW,CAAA;IACX,+EAAqB,CAAA;IACrB,mEAAe,CAAA;IACf,qEAAgB,CAAA;IAChB,+EAAqB,CAAA;IACrB,qDAAQ,CAAA;IACR,0GAAmC,CAAA;IACnC,oGAAgC,CAAA;IAChC,wEAAkB,CAAA;IAClB,oJAAwD,CAAA;IACxD,sFAAyB,CAAA;IACzB,wEAAkB,CAAA;IAClB,oEAAgB,CAAA;IAChB,4EAAoB,CAAA;IACpB,4EAAoB,CAAA;IACpB,8EAAqB,CAAA;IACrB,wFAA0B,CAAA;IAC1B,4DAAY,CAAA;IACZ,kEAAe,CAAA;IACf,kFAAuB,CAAA;IACvB,8DAAa,CAAA;IACb,8FAA6B,CAAA;IAC7B,4DAAY,CAAA;IACZ,oGAAgC,CAAA;IAChC,oFAAwB,CAAA;AAC1B,CAAC,EA9BW,eAAe,KAAf,eAAe,QA8B1B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,0CAAU,CAAA;IACV,0CAAU,CAAA;IACV,uCAAO,CAAA;AACT,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB"}
package/package.json CHANGED
@@ -1,21 +1,23 @@
1
1
  {
2
2
  "name": "ootk",
3
- "version": "3.0.0",
4
- "description": "Orbital Object Toolkit including SGP4 Propagator and Coordinate Transforms",
5
- "main": "dist/ootk.js",
3
+ "version": "4.0.0-0",
4
+ "description": "Orbital Object Toolkit including Multiple Propagators, Initial Orbit Determination, and Maneuver Calculations.",
6
5
  "scripts": {
7
- "build": "node ./scripts/cleanup.js && tsc -p tsconfig.build.json && node --openssl-legacy-provider node_modules/webpack/bin/webpack.js --config ./scripts/webpack.js",
8
- "build:legacy": "node ./scripts/cleanup.js && tsc -p tsconfig.build.json && node node_modules/webpack/bin/webpack.js --config ./scripts/webpack.js",
6
+ "build": "node ./scripts/cleanup.mjs && ttsc -p tsconfig.build.json",
9
7
  "lcov": "node ./scripts/openLcov.mjs",
10
8
  "lint": "eslint src",
11
9
  "lint:fix": "eslint src --fix",
12
10
  "lint:test": "eslint test",
13
- "sandbox": "http-server ./",
14
- "test": "jest",
11
+ "test": "npm run build && jest",
15
12
  "test:coverage": "jest --coverage",
16
13
  "test:performance": "node test/performance/timing.test.mjs",
17
14
  "version": "auto-changelog -p && git add CHANGELOG.md"
18
15
  },
16
+ "main": "./lib/ootk.js",
17
+ "exports": {
18
+ "import": "./lib/ootk.js",
19
+ "require": "./lib/ootk.js"
20
+ },
19
21
  "repository": {
20
22
  "type": "git",
21
23
  "url": "git://github.com/thkruz/ootk"
@@ -28,7 +30,7 @@
28
30
  "satellite"
29
31
  ],
30
32
  "author": "Theodore Kruczek <theodore.kruczek@gmail.com> (https://github.com/ootk/)",
31
- "license": "MIT",
33
+ "license": "APGL-3.0",
32
34
  "bugs": {
33
35
  "url": "https://github.com/thkruz/ootk/issues"
34
36
  },
@@ -47,21 +49,21 @@
47
49
  "codecov": "^3.8.1",
48
50
  "copy-webpack-plugin": "^11.0.0",
49
51
  "eslint": "^7.32.0",
50
- "imports-loader": "^4.0.1",
51
52
  "jest": "^28.1.3",
52
53
  "node-fetch": "^2.6.7",
53
54
  "opener": "^1.5.2",
54
55
  "prettier": "^2.8.8",
55
56
  "prettier-plugin-organize-imports": "^3.2.3",
56
- "ts-node": "^10.9.1",
57
+ "ts-node": "^10.9.2",
58
+ "tsconfig-paths": "^4.2.0",
59
+ "ttypescript": "^1.5.15",
57
60
  "typescript": "^4.9.5",
61
+ "typescript-transform-paths": "^3.4.6",
58
62
  "webpack": "^5.11.1",
59
63
  "webpack-cli": "^4.10.0"
60
64
  },
61
65
  "homepage": "https://github.com/thkruz/ootk",
62
- "directories": {
63
- "lib": "lib",
64
- "src": "src",
65
- "test": "test"
66
+ "dependencies": {
67
+ "ootk-core": "^1.0.0-0"
66
68
  }
67
69
  }
package/.prettierrc DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "printWidth": 120,
3
- "tabWidth": 2,
4
- "useTabs": false,
5
- "semi": true,
6
- "singleQuote": true,
7
- "quoteProps": "consistent",
8
- "trailingComma": "all",
9
- "bracketSpacing": true,
10
- "arrowParens": "always",
11
- "requirePragma": false,
12
- "insertPragma": false,
13
- "proseWrap": "never",
14
- "htmlWhitespaceSensitivity": "ignore",
15
- "endOfLine": "lf",
16
- "embeddedLanguageFormatting": "off"
17
- }
package/babel.config.js DELETED
@@ -1,16 +0,0 @@
1
- // eslint-disable-next-line no-undef
2
- module.exports = {
3
- presets: [
4
- [
5
- '@babel/preset-env',
6
- {
7
- targets: {
8
- esmodules: true,
9
- },
10
- // modules: "umd", -- THIS IS FOR DOING THE LIB VERSION OF KEEPTRACK
11
- },
12
- ],
13
- '@babel/preset-typescript',
14
- ],
15
- compact: 'auto',
16
- };
package/codecov.yml DELETED
@@ -1,21 +0,0 @@
1
- codecov:
2
- require_ci_to_pass: yes
3
- bot: Code Coverage Bot
4
-
5
- coverage:
6
- precision: 2
7
- round: down
8
- range: "70...100"
9
-
10
- parsers:
11
- gcov:
12
- branch_detection:
13
- conditional: yes
14
- loop: yes
15
- method: no
16
- macro: no
17
-
18
- comment:
19
- layout: "reach,diff,flags,files,footer"
20
- behavior: default
21
- require_changes: no
@@ -1,40 +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 BaseObject class is used for creating core properties and methods applicable
7
- * to ground and space based objects.
8
- *
9
- * @license AGPL-3.0-or-later
10
- * @Copyright (c) 2020-2023 Theodore Kruczek
11
- *
12
- * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
13
- * terms of the GNU Affero General Public License as published by the Free Software
14
- * Foundation, either version 3 of the License, or (at your option) any later version.
15
- *
16
- * Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
17
- * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
- * See the GNU Affero General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Affero General Public License along with
21
- * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
22
- */
23
- import { EciVec3, SpaceObjectType } from '../types/types';
24
- interface ObjectInfo {
25
- name?: string;
26
- type?: SpaceObjectType;
27
- position?: EciVec3;
28
- time?: Date;
29
- }
30
- export declare class BaseObject {
31
- name: string;
32
- type: SpaceObjectType;
33
- position: EciVec3;
34
- time: Date;
35
- constructor(info: ObjectInfo);
36
- getName(): string;
37
- getType(): SpaceObjectType;
38
- getTypeString(): string;
39
- }
40
- export {};
@@ -1,66 +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 DetailedSat class is an extension of the Sat class that provides additional
7
- * properties for categorizing and filtering satellites.
8
- *
9
- * @license AGPL-3.0-or-later
10
- * @Copyright (c) 2020-2023 Theodore Kruczek
11
- *
12
- * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
13
- * terms of the GNU Affero General Public License as published by the Free Software
14
- * Foundation, either version 3 of the License, or (at your option) any later version.
15
- *
16
- * Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
17
- * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
- * See the GNU Affero General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Affero General Public License along with
21
- * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
22
- */
23
- import { LaunchDetails, OperationsDetails, SpaceCraftDetails, SpaceObjectType, TleLine1, TleLine2 } from '../types/types';
24
- import { Sat } from './sat';
25
- interface ObjectInfo {
26
- name?: string;
27
- type?: SpaceObjectType;
28
- rcs?: number;
29
- vmag?: number;
30
- tle1: TleLine1;
31
- tle2: TleLine2;
32
- }
33
- export declare class DetailedSat extends Sat {
34
- launchDate: string;
35
- launchMass: string;
36
- launchSite: string;
37
- launchVehicle: string;
38
- lifetime: string | number;
39
- maneuver: string;
40
- manufacturer: string;
41
- motor: string;
42
- power: string;
43
- payload: string;
44
- purpose: string;
45
- shape: string;
46
- span: string;
47
- user: string;
48
- mission: string;
49
- owner: string;
50
- configuration: string;
51
- equipment: string;
52
- dryMass: string;
53
- country: string;
54
- constructor(info: ObjectInfo, options: any, details: {
55
- launchDetails: LaunchDetails;
56
- spaceCraftDetails: SpaceCraftDetails;
57
- operationsDetails: OperationsDetails;
58
- });
59
- setLaunchDetails(details: LaunchDetails): void;
60
- getLaunchDetails(): LaunchDetails;
61
- setSpaceCraftDetails(details: SpaceCraftDetails): void;
62
- getSpaceCraftDetails(): SpaceCraftDetails;
63
- setOperationsDetails(details: OperationsDetails): void;
64
- getOperationsDetails(): OperationsDetails;
65
- }
66
- export {};
@@ -1,4 +0,0 @@
1
- export { DetailedSat } from './detailed-sat';
2
- export { Sat } from './sat';
3
- export { Sensor } from './sensor';
4
- export { Star } from './star';
@@ -1,92 +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 Sat class provides functions for calculating satellites positions relative
7
- * to earth based sensors and other orbital objects.
8
- *
9
- * @license AGPL-3.0-or-later
10
- * @Copyright (c) 2020-2023 Theodore Kruczek
11
- *
12
- * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
13
- * terms of the GNU Affero General Public License as published by the Free Software
14
- * Foundation, either version 3 of the License, or (at your option) any later version.
15
- *
16
- * Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
17
- * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
- * See the GNU Affero General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Affero General Public License along with
21
- * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
22
- */
23
- import { EcfVec3, EciVec3, LlaVec3, RaeVec3, SatelliteRecord, SpaceObjectType, StateVector, TleLine1, TleLine2 } from '../types/types';
24
- import { Sensor } from './sensor';
25
- import { SpaceObject } from './space-object';
26
- interface ObjectInfo {
27
- name?: string;
28
- type?: SpaceObjectType;
29
- rcs?: number;
30
- vmag?: number;
31
- tle1: TleLine1;
32
- tle2: TleLine2;
33
- }
34
- export declare class Sat extends SpaceObject {
35
- satNum: number;
36
- satrec: SatelliteRecord;
37
- intlDes: string;
38
- epochYear: number;
39
- epochDay: number;
40
- meanMoDev1: number;
41
- meanMoDev2: number;
42
- bstar: number;
43
- inclination: number;
44
- raan: number;
45
- eccentricity: number;
46
- argOfPerigee: number;
47
- meanAnomaly: number;
48
- meanMotion: number;
49
- period: number;
50
- apogee: number;
51
- perigee: number;
52
- options: any;
53
- constructor(info: ObjectInfo, options?: any);
54
- propagateTo(date: Date): Sat;
55
- /**
56
- * Calculates position and velocity in ECI coordinates at a given time.
57
- * @param {Date} date Date to calculate the state vector for
58
- * @returns {StateVector} State vector for the given date
59
- */
60
- getStateVec(date?: Date): StateVector;
61
- /**
62
- * Calculates ECI position at a given time.
63
- * @param {Date} date Date to calculate
64
- * @returns {EciVec3} ECI position vector
65
- */
66
- getEci(date?: Date): EciVec3;
67
- /**
68
- * Calculates ECF position at a given time.
69
- * @param {Date} date Date to calculate
70
- * @returns {EcfVec3} ECF position vector
71
- */
72
- getEcf(date?: Date): EcfVec3;
73
- /**
74
- * Calculates LLA position at a given time.
75
- * @param {Date} date Date to calculate
76
- * @returns {LlaVec3} LLA position vector
77
- */
78
- getLla(date?: Date): LlaVec3;
79
- getRae(sensor: Sensor, date?: Date): RaeVec3;
80
- getAzimuth(sensor: Sensor, date?: Date): number;
81
- getElevation(sensor: Sensor, date?: Date): number;
82
- getRange(sensor: Sensor, date?: Date): number;
83
- /**
84
- * Calculates the time variables for a given date relative to the TLE epoch.
85
- * @param {Date} date Date to calculate
86
- * @param {SatelliteRecord} satrec Satellite orbital information
87
- * @returns {{m: number, gmst: GreenwichMeanSiderealTime, j: number}} Time variables
88
- */
89
- private static calculateTimeVariables;
90
- static checkSatrec(satrec: SatelliteRecord): boolean;
91
- }
92
- export {};
@@ -1,93 +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 Sensor class is used for creating ground based observers.
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 { Degrees, Kilometers, Radians, RaeVec3, SpaceObjectType } from '../types/types';
23
- import { BaseObject } from './base-object';
24
- import { Sat } from './sat';
25
- interface ObjectInfo {
26
- name?: string;
27
- type?: SpaceObjectType;
28
- lat: Radians;
29
- lon: Radians;
30
- alt: Kilometers;
31
- minAz?: Degrees;
32
- maxAz?: Degrees;
33
- minEl?: Degrees;
34
- maxEl?: Degrees;
35
- minRng?: Kilometers;
36
- maxRng?: Kilometers;
37
- }
38
- export declare enum PassType {
39
- OUT_OF_VIEW = -1,
40
- ENTER = 0,
41
- IN_VIEW = 1,
42
- EXIT = 2
43
- }
44
- type Lookangles = {
45
- type: PassType;
46
- time: Date;
47
- az: Degrees;
48
- el: Degrees;
49
- rng: Kilometers;
50
- maxElPass?: Degrees;
51
- };
52
- export declare class Sensor extends BaseObject {
53
- lat: Radians;
54
- lon: Radians;
55
- alt: Kilometers;
56
- minAz: Degrees;
57
- maxAz: Degrees;
58
- minEl: Degrees;
59
- maxEl: Degrees;
60
- minRng: Kilometers;
61
- maxRng: Kilometers;
62
- /**
63
- * * name: Name as a string - OPTIONAL
64
- * * type: SpaceObjectType - OPTIONAL
65
- * * lat: Latitude in Radians
66
- * * lon: Longitude in Radians
67
- * * alt: Altitude in Kilometers
68
- * * minAz: Minimum Azimuth in Degrees
69
- * * maxAz: Maximum Azimuth in Degrees
70
- * * minEl: Minimum Elevation in Degrees
71
- * * maxEl: Maximum Elevation in Degrees
72
- * * minRng: Minimum Range in Kilometers
73
- * * maxRng: Maximum Range in Kilometers
74
- * @param {ObjectInfo} info ObjectInfo object containing the object's information
75
- */
76
- constructor(info: ObjectInfo);
77
- private validateInputData;
78
- private validateFov;
79
- private validateMaxRng;
80
- private validateMinRng;
81
- private validateMaxEl;
82
- private validateMinEl;
83
- private validateMaxAz;
84
- private validateMinAz;
85
- private validateLla;
86
- setTime(date: Date): this;
87
- getRae(sat: Sat, date?: Date): RaeVec3;
88
- isRaeInFov(rae: RaeVec3): boolean;
89
- isSatInFov(sat: Sat, date?: Date): boolean;
90
- calculatePasses(planningInterval: number, sat: Sat, date?: Date): Lookangles[];
91
- private static getPassType_;
92
- }
93
- export {};
@@ -1,46 +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 Star class is meant to help with cacluating star positions relative to
7
- * satellites and earth based sensors.
8
- *
9
- * @license AGPL-3.0-or-later
10
- * @Copyright (c) 2020-2023 Theodore Kruczek
11
- *
12
- * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
13
- * terms of the GNU Affero General Public License as published by the Free Software
14
- * Foundation, either version 3 of the License, or (at your option) any later version.
15
- *
16
- * Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
17
- * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
- * See the GNU Affero General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Affero General Public License along with
21
- * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
22
- */
23
- import { EciVec3, LlaVec3, Radians, RaeVec3, SpaceObjectType } from '../types/types';
24
- import { SpaceObject } from './space-object';
25
- interface ObjectInfo {
26
- bf?: string;
27
- dec: Radians;
28
- h?: string;
29
- name?: string;
30
- pname?: string;
31
- ra: Radians;
32
- type?: SpaceObjectType;
33
- vmag?: number;
34
- }
35
- export declare class Star extends SpaceObject {
36
- bf: string;
37
- dec: Radians;
38
- h: string;
39
- pname: string;
40
- ra: Radians;
41
- constructor(info: ObjectInfo);
42
- getEci(lla?: LlaVec3, date?: Date): EciVec3;
43
- getRae(lla?: LlaVec3, date?: Date): RaeVec3;
44
- private static calculateTimeVariables_;
45
- }
46
- export {};