ootk 4.0.9 → 5.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 (535) hide show
  1. package/README.md +0 -15
  2. package/dist/body/Celestial.d.ts +96 -0
  3. package/dist/body/Celestial.js +124 -0
  4. package/dist/body/Celestial.js.map +1 -0
  5. package/dist/body/Earth.d.ts +68 -0
  6. package/dist/body/Earth.js +198 -0
  7. package/dist/body/Earth.js.map +1 -0
  8. package/dist/body/Moon.d.ts +137 -0
  9. package/dist/body/Moon.js +464 -0
  10. package/dist/body/Moon.js.map +1 -0
  11. package/dist/body/NutationAngles.d.ts +38 -0
  12. package/dist/body/NutationAngles.js +24 -0
  13. package/dist/body/NutationAngles.js.map +1 -0
  14. package/dist/body/PrecessionAngles.d.ts +29 -0
  15. package/dist/body/PrecessionAngles.js +24 -0
  16. package/dist/body/PrecessionAngles.js.map +1 -0
  17. package/dist/body/Sun.d.ts +305 -0
  18. package/dist/body/Sun.js +548 -0
  19. package/dist/body/Sun.js.map +1 -0
  20. package/dist/body/index.d.ts +26 -0
  21. package/dist/body/index.js +27 -0
  22. package/dist/body/index.js.map +1 -0
  23. package/dist/coordinate/ClassicalElements.d.ts +132 -0
  24. package/dist/coordinate/ClassicalElements.js +279 -0
  25. package/dist/coordinate/ClassicalElements.js.map +1 -0
  26. package/dist/coordinate/EquinoctialElements.d.ts +114 -0
  27. package/dist/coordinate/EquinoctialElements.js +172 -0
  28. package/dist/coordinate/EquinoctialElements.js.map +1 -0
  29. package/dist/coordinate/FormatTle.d.ts +95 -0
  30. package/dist/coordinate/FormatTle.js +184 -0
  31. package/dist/coordinate/FormatTle.js.map +1 -0
  32. package/dist/coordinate/Geodetic.d.ts +110 -0
  33. package/dist/coordinate/Geodetic.js +163 -0
  34. package/dist/coordinate/Geodetic.js.map +1 -0
  35. package/dist/coordinate/Hill.d.ts +1 -1
  36. package/dist/coordinate/Hill.js +1 -1
  37. package/dist/coordinate/Hill.js.map +1 -1
  38. package/dist/coordinate/ITRF.d.ts +75 -0
  39. package/dist/coordinate/ITRF.js +135 -0
  40. package/dist/coordinate/ITRF.js.map +1 -0
  41. package/dist/coordinate/J2000.d.ts +65 -0
  42. package/dist/coordinate/J2000.js +120 -0
  43. package/dist/coordinate/J2000.js.map +1 -0
  44. package/dist/coordinate/RIC.d.ts +64 -0
  45. package/dist/coordinate/RIC.js +79 -0
  46. package/dist/coordinate/RIC.js.map +1 -0
  47. package/dist/coordinate/RelativeState.d.ts +70 -0
  48. package/dist/coordinate/RelativeState.js +79 -0
  49. package/dist/coordinate/RelativeState.js.map +1 -0
  50. package/dist/coordinate/StateVector.d.ts +76 -0
  51. package/dist/coordinate/StateVector.js +97 -0
  52. package/dist/coordinate/StateVector.js.map +1 -0
  53. package/dist/coordinate/TEME.d.ts +57 -0
  54. package/dist/coordinate/TEME.js +89 -0
  55. package/dist/coordinate/TEME.js.map +1 -0
  56. package/dist/coordinate/Tle.d.ts +430 -0
  57. package/dist/coordinate/Tle.js +865 -0
  58. package/dist/coordinate/Tle.js.map +1 -0
  59. package/dist/coordinate/index.d.ts +11 -0
  60. package/dist/coordinate/index.js +12 -0
  61. package/dist/coordinate/index.js.map +1 -1
  62. package/dist/coordinate/tle-format-data.d.ts +41 -0
  63. package/dist/coordinate/tle-format-data.js +46 -0
  64. package/dist/coordinate/tle-format-data.js.map +1 -0
  65. package/dist/covariance/CovarianceSample.d.ts +1 -1
  66. package/dist/covariance/CovarianceSample.js +1 -1
  67. package/dist/covariance/CovarianceSample.js.map +1 -1
  68. package/dist/covariance/StateCovariance.d.ts +1 -1
  69. package/dist/covariance/StateCovariance.js +1 -1
  70. package/dist/covariance/StateCovariance.js.map +1 -1
  71. package/dist/data/DataHandler.d.ts +66 -0
  72. package/dist/data/DataHandler.js +80 -0
  73. package/dist/data/DataHandler.js.map +1 -0
  74. package/dist/data/values/Egm96Data.d.ts +37 -0
  75. package/dist/data/values/Egm96Data.js +63 -0
  76. package/dist/data/values/Egm96Data.js.map +1 -0
  77. package/dist/data/values/HpAtmosphereData.d.ts +33 -0
  78. package/dist/data/values/HpAtmosphereData.js +58 -0
  79. package/dist/data/values/HpAtmosphereData.js.map +1 -0
  80. package/dist/data/values/HpAtmosphereResult.d.ts +29 -0
  81. package/dist/data/values/HpAtmosphereResult.js +38 -0
  82. package/dist/data/values/HpAtmosphereResult.js.map +1 -0
  83. package/dist/data/values/Iau1980Data.d.ts +36 -0
  84. package/dist/data/values/Iau1980Data.js +52 -0
  85. package/dist/data/values/Iau1980Data.js.map +1 -0
  86. package/dist/data/values/LeapSecond.d.ts +27 -0
  87. package/dist/data/values/LeapSecond.js +35 -0
  88. package/dist/data/values/LeapSecond.js.map +1 -0
  89. package/dist/data/values/LeapSecondData.d.ts +41 -0
  90. package/dist/data/values/LeapSecondData.js +103 -0
  91. package/dist/data/values/LeapSecondData.js.map +1 -0
  92. package/dist/data/values/egm96.d.ts +24 -0
  93. package/dist/data/values/egm96.js +726 -0
  94. package/dist/data/values/egm96.js.map +1 -0
  95. package/dist/data/values/hpAtmosphere.d.ts +24 -0
  96. package/dist/data/values/hpAtmosphere.js +76 -0
  97. package/dist/data/values/hpAtmosphere.js.map +1 -0
  98. package/dist/data/values/iau1980.d.ts +24 -0
  99. package/dist/data/values/iau1980.js +30 -0
  100. package/dist/data/values/iau1980.js.map +1 -0
  101. package/dist/enums/AngularDiameterMethod.d.ts +27 -0
  102. package/dist/enums/AngularDiameterMethod.js +29 -0
  103. package/dist/enums/AngularDiameterMethod.js.map +1 -0
  104. package/dist/enums/AngularDistanceMethod.d.ts +27 -0
  105. package/dist/enums/AngularDistanceMethod.js +29 -0
  106. package/dist/enums/AngularDistanceMethod.js.map +1 -0
  107. package/dist/enums/OrbitRegime.d.ts +30 -0
  108. package/dist/enums/OrbitRegime.js +32 -0
  109. package/dist/enums/OrbitRegime.js.map +1 -0
  110. package/dist/enums/PassType.d.ts +28 -0
  111. package/dist/enums/PassType.js +30 -0
  112. package/dist/enums/PassType.js.map +1 -0
  113. package/dist/enums/Sgp4OpsMode.d.ts +26 -0
  114. package/dist/enums/Sgp4OpsMode.js +28 -0
  115. package/dist/enums/Sgp4OpsMode.js.map +1 -0
  116. package/dist/enums/index.d.ts +5 -0
  117. package/dist/enums/index.js +5 -0
  118. package/dist/enums/index.js.map +1 -1
  119. package/dist/force/AtmosphericDrag.d.ts +1 -1
  120. package/dist/force/AtmosphericDrag.js +1 -1
  121. package/dist/force/AtmosphericDrag.js.map +1 -1
  122. package/dist/force/EarthGravity.d.ts +1 -1
  123. package/dist/force/EarthGravity.js +1 -1
  124. package/dist/force/EarthGravity.js.map +1 -1
  125. package/dist/force/Force.d.ts +1 -1
  126. package/dist/force/ForceModel.d.ts +1 -1
  127. package/dist/force/ForceModel.js +1 -1
  128. package/dist/force/ForceModel.js.map +1 -1
  129. package/dist/force/Gravity.d.ts +1 -1
  130. package/dist/force/Gravity.js +1 -1
  131. package/dist/force/Gravity.js.map +1 -1
  132. package/dist/force/SolarRadiationPressure.d.ts +1 -1
  133. package/dist/force/SolarRadiationPressure.js +1 -1
  134. package/dist/force/SolarRadiationPressure.js.map +1 -1
  135. package/dist/force/ThirdBodyGravity.d.ts +1 -1
  136. package/dist/force/ThirdBodyGravity.js +1 -1
  137. package/dist/force/ThirdBodyGravity.js.map +1 -1
  138. package/dist/force/Thrust.d.ts +1 -1
  139. package/dist/force/Thrust.js +1 -1
  140. package/dist/force/Thrust.js.map +1 -1
  141. package/dist/interfaces/BaseObjectParams.d.ts +31 -0
  142. package/dist/interfaces/BaseObjectParams.js +24 -0
  143. package/dist/interfaces/BaseObjectParams.js.map +1 -0
  144. package/dist/interfaces/ClassicalElementsParams.d.ts +33 -0
  145. package/dist/interfaces/ClassicalElementsParams.js +24 -0
  146. package/dist/interfaces/ClassicalElementsParams.js.map +1 -0
  147. package/dist/interfaces/EquinoctialElementsParams.d.ts +35 -0
  148. package/dist/interfaces/EquinoctialElementsParams.js +24 -0
  149. package/dist/interfaces/EquinoctialElementsParams.js.map +1 -0
  150. package/dist/interfaces/GroundPositionParams.d.ts +28 -0
  151. package/dist/interfaces/GroundPositionParams.js +24 -0
  152. package/dist/interfaces/GroundPositionParams.js.map +1 -0
  153. package/dist/interfaces/OmmFormat.d.ts +62 -0
  154. package/dist/interfaces/OmmFormat.js +2 -0
  155. package/dist/interfaces/OmmFormat.js.map +1 -0
  156. package/dist/interfaces/OptionsParams.d.ts +3 -0
  157. package/dist/interfaces/OptionsParams.js +2 -0
  158. package/dist/interfaces/OptionsParams.js.map +1 -0
  159. package/dist/interfaces/RfSensorParams.d.ts +1 -1
  160. package/dist/interfaces/SatelliteParams.d.ts +18 -0
  161. package/dist/interfaces/SatelliteParams.js +2 -0
  162. package/dist/interfaces/SatelliteParams.js.map +1 -0
  163. package/dist/interfaces/SensorParams.d.ts +38 -0
  164. package/dist/interfaces/SensorParams.js +2 -0
  165. package/dist/interfaces/SensorParams.js.map +1 -0
  166. package/dist/interfaces/StarObjectParams.d.ts +10 -0
  167. package/dist/interfaces/StarObjectParams.js +2 -0
  168. package/dist/interfaces/StarObjectParams.js.map +1 -0
  169. package/dist/interfaces/TimeVariables.d.ts +6 -0
  170. package/dist/interfaces/TimeVariables.js +2 -0
  171. package/dist/interfaces/TimeVariables.js.map +1 -0
  172. package/dist/interfaces/index.d.ts +8 -0
  173. package/dist/interpolator/ChebyshevCoefficients.d.ts +1 -1
  174. package/dist/interpolator/ChebyshevCoefficients.js +1 -1
  175. package/dist/interpolator/ChebyshevCoefficients.js.map +1 -1
  176. package/dist/interpolator/ChebyshevInterpolator.d.ts +1 -1
  177. package/dist/interpolator/ChebyshevInterpolator.js +1 -1
  178. package/dist/interpolator/ChebyshevInterpolator.js.map +1 -1
  179. package/dist/interpolator/CubicSpline.d.ts +1 -1
  180. package/dist/interpolator/CubicSplineInterpolator.d.ts +1 -1
  181. package/dist/interpolator/CubicSplineInterpolator.js +1 -1
  182. package/dist/interpolator/CubicSplineInterpolator.js.map +1 -1
  183. package/dist/interpolator/Interpolator.d.ts +1 -1
  184. package/dist/interpolator/Interpolator.js +1 -1
  185. package/dist/interpolator/Interpolator.js.map +1 -1
  186. package/dist/interpolator/LagrangeInterpolator.d.ts +1 -1
  187. package/dist/interpolator/LagrangeInterpolator.js +1 -1
  188. package/dist/interpolator/LagrangeInterpolator.js.map +1 -1
  189. package/dist/interpolator/StateInterpolator.d.ts +1 -1
  190. package/dist/interpolator/VerletBlendInterpolator.d.ts +1 -1
  191. package/dist/interpolator/VerletBlendInterpolator.js +1 -1
  192. package/dist/interpolator/VerletBlendInterpolator.js.map +1 -1
  193. package/dist/main.d.ts +11 -3
  194. package/dist/main.js +11 -3
  195. package/dist/main.js.map +1 -1
  196. package/dist/maneuver/TwoBurnOrbitTransfer.d.ts +1 -1
  197. package/dist/maneuver/TwoBurnOrbitTransfer.js +1 -1
  198. package/dist/maneuver/TwoBurnOrbitTransfer.js.map +1 -1
  199. package/dist/maneuver/Waypoint.d.ts +1 -1
  200. package/dist/maneuver/Waypoint.js +1 -1
  201. package/dist/maneuver/Waypoint.js.map +1 -1
  202. package/dist/objects/BaseObject.d.ts +74 -0
  203. package/dist/objects/BaseObject.js +151 -0
  204. package/dist/objects/BaseObject.js.map +1 -0
  205. package/dist/objects/DetailedSatellite.d.ts +2 -1
  206. package/dist/objects/DetailedSatellite.js +2 -2
  207. package/dist/objects/DetailedSatellite.js.map +1 -1
  208. package/dist/objects/DetailedSensor.d.ts +2 -1
  209. package/dist/objects/DetailedSensor.js +1 -1
  210. package/dist/objects/DetailedSensor.js.map +1 -1
  211. package/dist/objects/GroundObject.d.ts +85 -0
  212. package/dist/objects/GroundObject.js +143 -0
  213. package/dist/objects/GroundObject.js.map +1 -0
  214. package/dist/objects/LandObject.d.ts +2 -1
  215. package/dist/objects/LandObject.js +1 -1
  216. package/dist/objects/LandObject.js.map +1 -1
  217. package/dist/objects/Marker.d.ts +1 -1
  218. package/dist/objects/Marker.js +1 -1
  219. package/dist/objects/Marker.js.map +1 -1
  220. package/dist/objects/RfSensor.d.ts +1 -2
  221. package/dist/objects/RfSensor.js +1 -2
  222. package/dist/objects/RfSensor.js.map +1 -1
  223. package/dist/objects/Satellite.d.ts +226 -0
  224. package/dist/objects/Satellite.js +443 -0
  225. package/dist/objects/Satellite.js.map +1 -0
  226. package/dist/objects/Sensor.d.ts +100 -0
  227. package/dist/objects/Sensor.js +239 -0
  228. package/dist/objects/Sensor.js.map +1 -0
  229. package/dist/objects/Star.d.ts +36 -0
  230. package/dist/objects/Star.js +59 -0
  231. package/dist/objects/Star.js.map +1 -0
  232. package/dist/objects/index.d.ts +5 -0
  233. package/dist/objects/index.js +5 -0
  234. package/dist/objects/index.js.map +1 -1
  235. package/dist/observation/Observation.d.ts +1 -1
  236. package/dist/observation/ObservationOptical.d.ts +1 -1
  237. package/dist/observation/ObservationOptical.js +1 -1
  238. package/dist/observation/ObservationOptical.js.map +1 -1
  239. package/dist/observation/ObservationRadar.d.ts +1 -1
  240. package/dist/observation/ObservationRadar.js +1 -1
  241. package/dist/observation/ObservationRadar.js.map +1 -1
  242. package/dist/observation/ObservationUtils.d.ts +3 -1
  243. package/dist/observation/ObservationUtils.js +15 -1
  244. package/dist/observation/ObservationUtils.js.map +1 -1
  245. package/dist/observation/RAE.d.ts +111 -0
  246. package/dist/observation/RAE.js +215 -0
  247. package/dist/observation/RAE.js.map +1 -0
  248. package/dist/observation/RadecGeocentric.d.ts +111 -0
  249. package/dist/observation/RadecGeocentric.js +169 -0
  250. package/dist/observation/RadecGeocentric.js.map +1 -0
  251. package/dist/observation/RadecTopocentric.d.ts +123 -0
  252. package/dist/observation/RadecTopocentric.js +196 -0
  253. package/dist/observation/RadecTopocentric.js.map +1 -0
  254. package/dist/observation/index.d.ts +26 -0
  255. package/dist/observation/index.js +27 -0
  256. package/dist/observation/index.js.map +1 -0
  257. package/dist/operations/BoxMuller.d.ts +1 -1
  258. package/dist/operations/BoxMuller.js +1 -1
  259. package/dist/operations/BoxMuller.js.map +1 -1
  260. package/dist/operations/EulerAngles.d.ts +1 -1
  261. package/dist/operations/EulerAngles.js +1 -1
  262. package/dist/operations/EulerAngles.js.map +1 -1
  263. package/dist/operations/Matrix.d.ts +170 -0
  264. package/dist/operations/Matrix.js +405 -0
  265. package/dist/operations/Matrix.js.map +1 -0
  266. package/dist/operations/Quaternion.d.ts +1 -1
  267. package/dist/operations/Quaternion.js +1 -1
  268. package/dist/operations/Quaternion.js.map +1 -1
  269. package/dist/operations/Random.d.ts +40 -0
  270. package/dist/operations/Random.js +50 -0
  271. package/dist/operations/Random.js.map +1 -0
  272. package/dist/operations/RandomGaussianSource.d.ts +1 -1
  273. package/dist/operations/RandomGaussianSource.js +1 -1
  274. package/dist/operations/RandomGaussianSource.js.map +1 -1
  275. package/dist/operations/Vector.d.ts +262 -0
  276. package/dist/operations/Vector.js +415 -0
  277. package/dist/operations/Vector.js.map +1 -0
  278. package/dist/operations/Vector3D.d.ts +86 -0
  279. package/dist/operations/Vector3D.js +241 -0
  280. package/dist/operations/Vector3D.js.map +1 -0
  281. package/dist/operations/operations.d.ts +26 -0
  282. package/dist/operations/operations.js +27 -0
  283. package/dist/operations/operations.js.map +1 -0
  284. package/dist/optimize/ChebyshevCompressor.js +1 -1
  285. package/dist/optimize/ChebyshevCompressor.js.map +1 -1
  286. package/dist/optimize/PolynomialRegression.js +1 -1
  287. package/dist/optimize/PolynomialRegression.js.map +1 -1
  288. package/dist/optimize/SimplexEntry.js +1 -1
  289. package/dist/optimize/SimplexEntry.js.map +1 -1
  290. package/dist/orbit_determination/BatchLeastSquaresOD.d.ts +1 -1
  291. package/dist/orbit_determination/BatchLeastSquaresOD.js +1 -1
  292. package/dist/orbit_determination/BatchLeastSquaresOD.js.map +1 -1
  293. package/dist/orbit_determination/BatchLeastSquaresResult.d.ts +1 -1
  294. package/dist/orbit_determination/GibbsIOD.d.ts +1 -1
  295. package/dist/orbit_determination/GibbsIOD.js +1 -1
  296. package/dist/orbit_determination/GibbsIOD.js.map +1 -1
  297. package/dist/orbit_determination/GoodingIOD.d.ts +1 -1
  298. package/dist/orbit_determination/GoodingIOD.js +1 -1
  299. package/dist/orbit_determination/GoodingIOD.js.map +1 -1
  300. package/dist/orbit_determination/HerrickGibbsIOD.d.ts +1 -1
  301. package/dist/orbit_determination/HerrickGibbsIOD.js +1 -1
  302. package/dist/orbit_determination/HerrickGibbsIOD.js.map +1 -1
  303. package/dist/orbit_determination/LambertIOD.d.ts +1 -1
  304. package/dist/orbit_determination/LambertIOD.js +1 -1
  305. package/dist/orbit_determination/LambertIOD.js.map +1 -1
  306. package/dist/orbit_determination/ModifiedGoodingIOD.d.ts +1 -1
  307. package/dist/orbit_determination/ModifiedGoodingIOD.js +1 -1
  308. package/dist/orbit_determination/ModifiedGoodingIOD.js.map +1 -1
  309. package/dist/orbit_determination/index.d.ts +7 -0
  310. package/dist/orbit_determination/index.js +8 -0
  311. package/dist/orbit_determination/index.js.map +1 -0
  312. package/dist/propagator/KeplerPropagator.d.ts +1 -1
  313. package/dist/propagator/KeplerPropagator.js +1 -1
  314. package/dist/propagator/KeplerPropagator.js.map +1 -1
  315. package/dist/propagator/Propagator.d.ts +1 -1
  316. package/dist/propagator/Propagator.js +1 -1
  317. package/dist/propagator/Propagator.js.map +1 -1
  318. package/dist/propagator/RkCheckpoint.d.ts +1 -1
  319. package/dist/propagator/RkResult.d.ts +1 -1
  320. package/dist/propagator/RungeKutta4Propagator.d.ts +1 -1
  321. package/dist/propagator/RungeKutta4Propagator.js +1 -1
  322. package/dist/propagator/RungeKutta4Propagator.js.map +1 -1
  323. package/dist/propagator/RungeKuttaAdaptive.d.ts +1 -1
  324. package/dist/propagator/RungeKuttaAdaptive.js +1 -1
  325. package/dist/propagator/RungeKuttaAdaptive.js.map +1 -1
  326. package/dist/propagator/Sgp4Propagator.d.ts +1 -1
  327. package/dist/sgp4/index.d.ts +23 -0
  328. package/dist/sgp4/index.js +24 -0
  329. package/dist/sgp4/index.js.map +1 -0
  330. package/dist/sgp4/sgp4-error.d.ts +22 -0
  331. package/dist/sgp4/sgp4-error.js +44 -0
  332. package/dist/sgp4/sgp4-error.js.map +1 -0
  333. package/dist/sgp4/sgp4.d.ts +102 -0
  334. package/dist/sgp4/sgp4.js +3167 -0
  335. package/dist/sgp4/sgp4.js.map +1 -0
  336. package/dist/smoothing/ExponentialSmoothing.d.ts +1 -1
  337. package/dist/time/Epoch.d.ts +44 -0
  338. package/dist/time/Epoch.js +109 -0
  339. package/dist/time/Epoch.js.map +1 -0
  340. package/dist/time/EpochGPS.d.ts +42 -0
  341. package/dist/time/EpochGPS.js +70 -0
  342. package/dist/time/EpochGPS.js.map +1 -0
  343. package/dist/time/EpochTAI.d.ts +26 -0
  344. package/dist/time/EpochTAI.js +27 -0
  345. package/dist/time/EpochTAI.js.map +1 -0
  346. package/dist/time/EpochTDB.d.ts +26 -0
  347. package/dist/time/EpochTDB.js +27 -0
  348. package/dist/time/EpochTDB.js.map +1 -0
  349. package/dist/time/EpochTT.d.ts +26 -0
  350. package/dist/time/EpochTT.js +27 -0
  351. package/dist/time/EpochTT.js.map +1 -0
  352. package/dist/time/EpochUTC.d.ts +59 -0
  353. package/dist/time/EpochUTC.js +137 -0
  354. package/dist/time/EpochUTC.js.map +1 -0
  355. package/dist/time/EpochWindow.d.ts +28 -0
  356. package/dist/time/EpochWindow.js +31 -0
  357. package/dist/time/EpochWindow.js.map +1 -0
  358. package/dist/time/TimeStamped.d.ts +43 -0
  359. package/dist/time/TimeStamped.js +46 -0
  360. package/dist/time/TimeStamped.js.map +1 -0
  361. package/dist/time/index.d.ts +30 -0
  362. package/dist/time/index.js +31 -0
  363. package/dist/time/index.js.map +1 -0
  364. package/dist/transforms/TransformCache.d.ts +27 -0
  365. package/dist/transforms/TransformCache.js +41 -0
  366. package/dist/transforms/TransformCache.js.map +1 -0
  367. package/dist/transforms/conversions.d.ts +63 -0
  368. package/dist/transforms/conversions.js +88 -0
  369. package/dist/transforms/conversions.js.map +1 -0
  370. package/dist/transforms/index.d.ts +1 -0
  371. package/dist/transforms/index.js +1 -0
  372. package/dist/transforms/index.js.map +1 -1
  373. package/dist/transforms/transforms.d.ts +166 -2
  374. package/dist/transforms/transforms.js +372 -1
  375. package/dist/transforms/transforms.js.map +1 -1
  376. package/dist/types/types.d.ts +674 -2
  377. package/dist/types/types.js +36 -0
  378. package/dist/types/types.js.map +1 -1
  379. package/dist/utils/constants.d.ts +80 -0
  380. package/dist/utils/constants.js +87 -0
  381. package/dist/utils/constants.js.map +1 -0
  382. package/dist/utils/functions.d.ts +228 -0
  383. package/dist/utils/functions.js +476 -0
  384. package/dist/utils/functions.js.map +1 -1
  385. package/dist/utils/index.d.ts +3 -1
  386. package/dist/utils/index.js +3 -1
  387. package/dist/utils/index.js.map +1 -1
  388. package/dist/utils/jacobian.d.ts +1 -1
  389. package/dist/utils/jacobian.js +1 -1
  390. package/dist/utils/jacobian.js.map +1 -1
  391. package/dist/utils/linearDistance.d.ts +8 -0
  392. package/dist/utils/linearDistance.js +10 -0
  393. package/dist/utils/linearDistance.js.map +1 -0
  394. package/package.json +4 -7
  395. package/src/body/Celestial.ts +134 -0
  396. package/src/body/Earth.ts +260 -0
  397. package/src/body/Moon.ts +556 -0
  398. package/src/body/NutationAngles.ts +40 -0
  399. package/src/body/PrecessionAngles.ts +31 -0
  400. package/src/body/Sun.ts +669 -0
  401. package/src/body/index.ts +27 -0
  402. package/src/body/suncalc.LICENSE.md +18 -0
  403. package/src/coordinate/ClassicalElements.ts +326 -0
  404. package/src/coordinate/EquinoctialElements.ts +189 -0
  405. package/src/coordinate/FormatTle.ts +214 -0
  406. package/src/coordinate/Geodetic.ts +186 -0
  407. package/src/coordinate/Hill.ts +1 -1
  408. package/src/coordinate/ITRF.ts +146 -0
  409. package/src/coordinate/J2000.ts +130 -0
  410. package/src/coordinate/RIC.ts +87 -0
  411. package/src/coordinate/RelativeState.ts +101 -0
  412. package/src/coordinate/StateVector.ts +122 -0
  413. package/src/coordinate/TEME.ts +97 -0
  414. package/src/coordinate/Tle.ts +1024 -0
  415. package/src/coordinate/index.ts +12 -0
  416. package/src/coordinate/tle-format-data.ts +47 -0
  417. package/src/covariance/CovarianceSample.ts +1 -1
  418. package/src/covariance/StateCovariance.ts +1 -1
  419. package/src/data/DataHandler.ts +88 -0
  420. package/src/data/values/Egm96Data.ts +75 -0
  421. package/src/data/values/HpAtmosphereData.ts +76 -0
  422. package/src/data/values/HpAtmosphereResult.ts +41 -0
  423. package/src/data/values/Iau1980Data.ts +63 -0
  424. package/src/data/values/LeapSecond.ts +37 -0
  425. package/src/data/values/LeapSecondData.ts +113 -0
  426. package/src/data/values/egm96.ts +728 -0
  427. package/src/data/values/hpAtmosphere.ts +79 -0
  428. package/src/data/values/iau1980.ts +32 -0
  429. package/src/enums/AngularDiameterMethod.ts +28 -0
  430. package/src/enums/AngularDistanceMethod.ts +28 -0
  431. package/src/enums/OrbitRegime.ts +31 -0
  432. package/src/enums/PassType.ts +29 -0
  433. package/src/enums/Sgp4OpsMode.ts +27 -0
  434. package/src/enums/index.ts +5 -0
  435. package/src/force/AtmosphericDrag.ts +1 -1
  436. package/src/force/EarthGravity.ts +1 -1
  437. package/src/force/Force.ts +1 -1
  438. package/src/force/ForceModel.ts +1 -1
  439. package/src/force/Gravity.ts +1 -1
  440. package/src/force/SolarRadiationPressure.ts +1 -1
  441. package/src/force/ThirdBodyGravity.ts +1 -1
  442. package/src/force/Thrust.ts +1 -1
  443. package/src/interfaces/BaseObjectParams.ts +33 -0
  444. package/src/interfaces/ClassicalElementsParams.ts +35 -0
  445. package/src/interfaces/EquinoctialElementsParams.ts +37 -0
  446. package/src/interfaces/GroundPositionParams.ts +30 -0
  447. package/src/interfaces/OmmFormat.ts +63 -0
  448. package/src/interfaces/OptionsParams.ts +3 -0
  449. package/src/interfaces/RfSensorParams.ts +1 -1
  450. package/src/interfaces/SatelliteParams.ts +20 -0
  451. package/src/interfaces/SensorParams.ts +39 -0
  452. package/src/interfaces/StarObjectParams.ts +11 -0
  453. package/src/interfaces/TimeVariables.ts +7 -0
  454. package/src/interfaces/index.ts +8 -0
  455. package/src/interpolator/ChebyshevCoefficients.ts +1 -1
  456. package/src/interpolator/ChebyshevInterpolator.ts +1 -1
  457. package/src/interpolator/CubicSpline.ts +1 -1
  458. package/src/interpolator/CubicSplineInterpolator.ts +1 -1
  459. package/src/interpolator/Interpolator.ts +1 -1
  460. package/src/interpolator/LagrangeInterpolator.ts +1 -1
  461. package/src/interpolator/StateInterpolator.ts +1 -1
  462. package/src/interpolator/VerletBlendInterpolator.ts +1 -1
  463. package/src/main.ts +11 -3
  464. package/src/maneuver/TwoBurnOrbitTransfer.ts +1 -1
  465. package/src/maneuver/Waypoint.ts +1 -1
  466. package/src/objects/BaseObject.ts +171 -0
  467. package/src/objects/DetailedSatellite.ts +3 -3
  468. package/src/objects/DetailedSensor.ts +2 -1
  469. package/src/objects/GroundObject.ts +176 -0
  470. package/src/objects/LandObject.ts +2 -1
  471. package/src/objects/Marker.ts +1 -1
  472. package/src/objects/RfSensor.ts +1 -2
  473. package/src/objects/Satellite.ts +552 -0
  474. package/src/objects/Sensor.ts +280 -0
  475. package/src/objects/Star.ts +96 -0
  476. package/src/objects/index.ts +5 -0
  477. package/src/observation/Observation.ts +1 -1
  478. package/src/observation/ObservationOptical.ts +1 -1
  479. package/src/observation/ObservationRadar.ts +1 -1
  480. package/src/observation/ObservationUtils.ts +30 -1
  481. package/src/observation/RAE.ts +262 -0
  482. package/src/observation/RadecGeocentric.ts +206 -0
  483. package/src/observation/RadecTopocentric.ts +241 -0
  484. package/src/observation/index.ts +27 -0
  485. package/src/operations/BoxMuller.ts +1 -1
  486. package/src/operations/EulerAngles.ts +1 -1
  487. package/src/operations/Matrix.ts +473 -0
  488. package/src/operations/Quaternion.ts +1 -1
  489. package/src/operations/Random.ts +54 -0
  490. package/src/operations/RandomGaussianSource.ts +1 -1
  491. package/src/operations/Vector.ts +484 -0
  492. package/src/operations/Vector3D.ts +289 -0
  493. package/src/operations/operations.ts +27 -0
  494. package/src/optimize/ChebyshevCompressor.ts +1 -1
  495. package/src/optimize/PolynomialRegression.ts +1 -1
  496. package/src/optimize/SimplexEntry.ts +1 -1
  497. package/src/orbit_determination/BatchLeastSquaresOD.ts +1 -1
  498. package/src/orbit_determination/BatchLeastSquaresResult.ts +1 -1
  499. package/src/orbit_determination/GibbsIOD.ts +3 -1
  500. package/src/orbit_determination/GoodingIOD.ts +1 -1
  501. package/src/orbit_determination/HerrickGibbsIOD.ts +1 -1
  502. package/src/orbit_determination/LambertIOD.ts +1 -1
  503. package/src/orbit_determination/ModifiedGoodingIOD.ts +1 -1
  504. package/src/orbit_determination/index.ts +7 -0
  505. package/src/propagator/KeplerPropagator.ts +1 -1
  506. package/src/propagator/Propagator.ts +1 -1
  507. package/src/propagator/RkCheckpoint.ts +1 -1
  508. package/src/propagator/RkResult.ts +1 -1
  509. package/src/propagator/RungeKutta4Propagator.ts +1 -1
  510. package/src/propagator/RungeKuttaAdaptive.ts +1 -1
  511. package/src/propagator/Sgp4Propagator.ts +1 -1
  512. package/src/sgp4/index.ts +24 -0
  513. package/src/sgp4/sgp4-error.ts +53 -0
  514. package/src/sgp4/sgp4.LICENSE.md +28 -0
  515. package/src/sgp4/sgp4.ts +3986 -0
  516. package/src/smoothing/ExponentialSmoothing.ts +1 -1
  517. package/src/time/Epoch.ts +128 -0
  518. package/src/time/EpochGPS.ts +76 -0
  519. package/src/time/EpochTAI.ts +27 -0
  520. package/src/time/EpochTDB.ts +27 -0
  521. package/src/time/EpochTT.ts +27 -0
  522. package/src/time/EpochUTC.ts +188 -0
  523. package/src/time/EpochWindow.ts +33 -0
  524. package/src/time/TimeStamped.ts +50 -0
  525. package/src/time/index.ts +31 -0
  526. package/src/transforms/TransformCache.ts +46 -0
  527. package/src/transforms/conversions.ts +98 -0
  528. package/src/transforms/index.ts +1 -0
  529. package/src/transforms/transforms.ts +478 -2
  530. package/src/types/types.ts +721 -2
  531. package/src/utils/constants.ts +113 -0
  532. package/src/utils/functions.ts +562 -0
  533. package/src/utils/index.ts +3 -1
  534. package/src/utils/jacobian.ts +1 -1
  535. package/src/utils/linearDistance.ts +11 -0
@@ -14,8 +14,679 @@
14
14
  * You should have received a copy of the GNU Affero General Public License along with
15
15
  * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
- import { Kilometers, Milliseconds, SatelliteParams, SensorParams, Vec3 } from 'ootk-core';
18
- import { CommLink } from '../main.js';
17
+ import { Vector3D, PassType, Satellite, CommLink, SatelliteParams, SensorParams } from '../main.js';
18
+ import { Sgp4ErrorCode } from '../sgp4/sgp4-error.js';
19
+ /**
20
+ * Represents a distinct type.
21
+ *
22
+ * This type is used to create new types based on existing ones, but with a
23
+ * unique identifier. This can be useful for creating types that are
24
+ * semantically different but structurally the same.
25
+ * @template T The base type from which the distinct type is created.
26
+ * @template DistinctName A unique identifier for the distinct type.
27
+ * __TYPE__ A property that holds the unique identifier for the
28
+ * distinct type.
29
+ */
30
+ type Distinct<T, DistinctName> = T & {
31
+ __TYPE__: DistinctName;
32
+ };
33
+ /**
34
+ * Represents a quantity of days.
35
+ */
36
+ export type Days = Distinct<number, 'Days'>;
37
+ /**
38
+ * Represents a quantity of hours.
39
+ *
40
+ * This type is based on the number type, but is distinct and cannot be used
41
+ * interchangeably with other number-based types.
42
+ */
43
+ export type Hours = Distinct<number, 'Hours'>;
44
+ /**
45
+ * Represents a quantity of minutes.
46
+ */
47
+ export type Minutes = Distinct<number, 'Minutes'>;
48
+ /**
49
+ * Represents a quantity of seconds.
50
+ */
51
+ export type Seconds = Distinct<number, 'Seconds'>;
52
+ /**
53
+ * Represents a quantity of milliseconds.
54
+ */
55
+ export type Milliseconds = Distinct<number, 'Milliseconds'>;
56
+ /**
57
+ * Represents a quantity of degrees.
58
+ */
59
+ export type Degrees = Distinct<number, 'Degrees'>;
60
+ /**
61
+ * Represents a quantity of radians.
62
+ */
63
+ export type Radians = Distinct<number, 'Radians'>;
64
+ /**
65
+ * Represents a quantity of kilometers.
66
+ */
67
+ export type Kilometers = Distinct<number, 'Kilometers'>;
68
+ /**
69
+ * Represents a quantity of meters.
70
+ */
71
+ export type Meters = Distinct<number, 'Meters'>;
72
+ /**
73
+ * Represents the type for seconds per meter per second.
74
+ */
75
+ export type SecondsPerMeterPerSecond = Distinct<number, 'SecondsPerMeterPerSecond'>;
76
+ /**
77
+ * Represents a value in kilometers per second.
78
+ */
79
+ export type KilometersPerSecond = Distinct<number, 'KilometersPerSecond'>;
80
+ /**
81
+ * Represents a value in Radians per second.
82
+ */
83
+ export type RadiansPerSecond = Distinct<number, 'RadiansPerSecond'>;
84
+ /**
85
+ * Represents a value in degrees per second.
86
+ */
87
+ export type DegreesPerSecond = Distinct<number, 'DegreesPerSecond'>;
88
+ /**
89
+ * Represents a value in meters per second.
90
+ */
91
+ export type MetersPerSecond = Distinct<number, 'MetersPerSecond'>;
92
+ /**
93
+ * Represents a three-dimensional vector.
94
+ *
95
+ * This type is used to represent a point in space in terms of x, y, and z
96
+ * coordinates. It is a generic type that allows for flexibility in the units of
97
+ * measure used for each dimension. The default unit of measure is Kilometers.
98
+ * @template Units The unit of measure used for the dimensions. This is
99
+ * typically a type representing a distance, such as kilometers or meters. The
100
+ * default is Kilometers.
101
+ * x The x dimension of the vector, representing the distance from the
102
+ * origin to the point in the x direction.
103
+ * y The y dimension of the vector, representing the distance from the
104
+ * origin to the point in the y direction. @property z The z dimension of the
105
+ * vector, representing the distance from the origin to the point in the z
106
+ * direction.
107
+ */
108
+ export type Vec3<Units = Kilometers> = {
109
+ x: Units;
110
+ y: Units;
111
+ z: Units;
112
+ };
113
+ /**
114
+ * Represents a three-dimensional vector in Earth-Centered Inertial (ECI)
115
+ * coordinates.
116
+ *
117
+ * This type is used to represent a point in space in terms of x, y, and z
118
+ * coordinates. It is a generic type that allows for flexibility in the units of
119
+ * measure used for each dimension. The default unit of measure is Kilometers.
120
+ * x The x dimension of the vector, representing the distance from the
121
+ * origin to the point in the x direction.
122
+ * y The y dimension of the vector, representing the distance from the
123
+ * origin to the point in the y direction. @property z The z dimension of the
124
+ * vector, representing the distance from the origin to the point in the z
125
+ * direction.
126
+ */
127
+ export type EciVec3<Units = Kilometers> = Vec3<Units>;
128
+ /**
129
+ * Represents a three-dimensional vector in Earth-Centered Fixed (ECF)
130
+ * coordinates.
131
+ *
132
+ * NOTE: ECF (Earth-Centered Fixed) and ECEF (Earth-Centered, Earth-Fixed) are
133
+ * essentially the same thing. Both refer to a coordinate system that is fixed
134
+ * with respect to the Earth, meaning that the coordinates of a point in this
135
+ * system do not change even as the Earth rotates.
136
+ *
137
+ * The difference between the two is that ECF is a Cartesian coordinate system,
138
+ * while ECEF is a spherical coordinate system. The ECF system is used in this
139
+ * library because it is easier to work with in the context of the SGP4
140
+ * algorithm.
141
+ *
142
+ * This type is used to represent a point in space in terms of x, y, and z
143
+ * coordinates. It is a generic type that allows for flexibility in the units of
144
+ * measure used for each dimension. The default unit of measure is Kilometers.
145
+ * x The x dimension of the vector, representing the distance from the
146
+ * origin to the point in the x direction.
147
+ * y The y dimension of the vector, representing the distance from the
148
+ * origin to the point in the y direction. @property z The z dimension of the
149
+ * vector, representing the distance from the origin to the point in the z
150
+ * direction.
151
+ */
152
+ export type EcfVec3<Units = Kilometers> = Vec3<Units>;
153
+ /**
154
+ * Represents a three-dimensional vector in Earth-Centered Earth-Fixed (ECEF)
155
+ * coordinates.
156
+ */
157
+ export type EcefVec3<Units = Kilometers> = EcfVec3<Units>;
158
+ /**
159
+ * Represents a three-dimensional vector in East, North, Up (ENU) coordinates.
160
+ *
161
+ * East–west tangent to parallels, North–south tangent to meridians, and Up–down
162
+ * in the direction normal to the oblate spheroid used as Earth's ellipsoid,
163
+ * which does not generally pass through the center of Earth.
164
+ *
165
+ * In many targeting and tracking applications the local East, North, Up (ENU)
166
+ * Cartesian coordinate system is far more intuitive and practical than ECEF or
167
+ * Geodetic coordinates. The local ENU coordinates are formed from a plane
168
+ * tangent to the Earth's surface fixed to a specific location and hence it is
169
+ * sometimes known as a "Local Tangent" or "local geodetic" plane. By convention
170
+ * the east axis is labeled x, the north y, and the up z.
171
+ * @see https://en.wikipedia.org/wiki/Local_tangent_plane_coordinates
172
+ * @template Units The unit of measure used for the dimensions. This is
173
+ * typically a type representing a distance, such as kilometers or meters. The
174
+ * default is Kilometers.
175
+ * e The east dimension of the vector, representing the distance from
176
+ * the origin to the point in the east direction.
177
+ * n The north dimension of the vector, representing the distance from
178
+ * the origin to the point in the north direction. @property u The up dimension
179
+ * of the vector, representing the distance from the origin to the point in the
180
+ * upward direction.
181
+ */
182
+ export type EnuVec3<Units = Kilometers> = Vec3<Units>;
183
+ /**
184
+ * Represents a three-dimensional vector in geographical coordinates.
185
+ *
186
+ * This type is used to represent a point in space in terms of latitude,
187
+ * longitude, and altitude. It is a generic type that allows for flexibility in
188
+ * the units of measure used for each dimension.
189
+ * @template A The unit of measure used for the latitude and longitude
190
+ * dimensions. This is typically a type representing an angle, such as degrees
191
+ * or radians. The default is Radians.
192
+ * @template D The unit of measure used for the altitude dimension. This is
193
+ * typically a type representing a distance, such as kilometers or meters. The
194
+ * default is Kilometers.
195
+ */
196
+ export type LlaVec3<A = Degrees, D = Kilometers> = {
197
+ lat: A;
198
+ lon: A;
199
+ alt: D;
200
+ };
201
+ /**
202
+ * Represents a three-dimensional vector in Range, Azimuth, and Elevation (RAE)
203
+ * coordinates.
204
+ *
205
+ * This type is used to represent a point in space in terms of range, azimuth,
206
+ * and elevation. It is a generic type that allows for flexibility in the units
207
+ * of measure used for each dimension.
208
+ * @template DistanceUnit The unit of measure used for the altitude dimension.
209
+ * This is typically a type representing a distance, such as kilometers or
210
+ * meters. The default is Kilometers.
211
+ * @template AngleUnit The unit of measure used for the latitude and longitude
212
+ * dimensions. This is typically a type representing an angle, such as degrees
213
+ * or radians. The default is Radians.
214
+ * rng The range dimension of the vector, representing the distance
215
+ * from the origin to the point.
216
+ * az The azimuth dimension of the vector, representing the angle in
217
+ * the horizontal plane from a reference direction. @property el The elevation
218
+ * dimension of the vector, representing the angle from the horizontal plane to
219
+ * the point.
220
+ */
221
+ export type RaeVec3<DistanceUnit = Kilometers, AngleUnit = Degrees> = {
222
+ rng: DistanceUnit;
223
+ az: AngleUnit;
224
+ el: AngleUnit;
225
+ };
226
+ /**
227
+ * Represents a three-dimensional vector in South, East, and Zenith (SEZ)
228
+ * coordinates.
229
+ *
230
+ * This type is used to represent a point in space in terms of south, east, and
231
+ * zenith. It is a generic type that allows for flexibility in the units of
232
+ * measure used for each dimension.
233
+ * s The south dimension of the vector
234
+ * e The east dimension of the vector @property z The zenith dimension
235
+ * of the vector
236
+ */
237
+ export type SezVec3<D = Kilometers> = {
238
+ s: D;
239
+ e: D;
240
+ z: D;
241
+ };
242
+ /**
243
+ * SatelliteRecord contains all of the orbital parameters necessary for running SGP4. It is generated by Sgp4.
244
+ */
245
+ export interface SatelliteRecord {
246
+ Om: number;
247
+ PInco: number;
248
+ a: number;
249
+ alta: number;
250
+ altp: number;
251
+ am: number;
252
+ argpdot: number;
253
+ argpo: number;
254
+ atime: number;
255
+ aycof: number;
256
+ bstar: number;
257
+ cc1: number;
258
+ cc4: number;
259
+ cc5: number;
260
+ con41: number;
261
+ d2: number;
262
+ d2201: number;
263
+ d2211: number;
264
+ d3: number;
265
+ d3210: number;
266
+ d3222: number;
267
+ d4: number;
268
+ d4410: number;
269
+ d4422: number;
270
+ d5220: number;
271
+ d5232: number;
272
+ d5421: number;
273
+ d5433: number;
274
+ dedt: number;
275
+ del1: number;
276
+ del2: number;
277
+ del3: number;
278
+ delmo: number;
279
+ didt: number;
280
+ dmdt: number;
281
+ dnodt: number;
282
+ domdt: number;
283
+ e3: number;
284
+ ecco: number;
285
+ ee2: number;
286
+ em: number;
287
+ epochdays: number;
288
+ epochyr: number;
289
+ error: Sgp4ErrorCode;
290
+ eta: number;
291
+ gsto: number;
292
+ im: number;
293
+ inclo: number;
294
+ init: boolean;
295
+ irez: number;
296
+ /** is imprecise flag */
297
+ isimp: boolean;
298
+ j2: number;
299
+ j3: number;
300
+ j3oj2: number;
301
+ j4: number;
302
+ jdsatepoch: number;
303
+ mdot: number;
304
+ method: string;
305
+ mm: number;
306
+ mo: number;
307
+ mus: number;
308
+ nddot: number;
309
+ ndot: number;
310
+ nm: number;
311
+ no: number;
312
+ nodecf: number;
313
+ nodedot: number;
314
+ nodeo: number;
315
+ om: number;
316
+ omgcof: number;
317
+ operationmode: string;
318
+ peo: number;
319
+ pgho: number;
320
+ pho: number;
321
+ plo: number;
322
+ radiusearthkm: number;
323
+ satnum: string;
324
+ se2: number;
325
+ se3: number;
326
+ sgh2: number;
327
+ sgh3: number;
328
+ sgh4: number;
329
+ sh2: number;
330
+ sh3: number;
331
+ si2: number;
332
+ si3: number;
333
+ sinmao: number;
334
+ sl2: number;
335
+ sl3: number;
336
+ sl4: number;
337
+ t: number;
338
+ t2cof: number;
339
+ t3cof: number;
340
+ t4cof: number;
341
+ t5cof: number;
342
+ tumin: number;
343
+ vkmpersec: number;
344
+ x1mth2: number;
345
+ x7thm1: number;
346
+ xfact: number;
347
+ xgh2: number;
348
+ xgh3: number;
349
+ xgh4: number;
350
+ xh2: number;
351
+ xh3: number;
352
+ xi2: number;
353
+ xi3: number;
354
+ xke: number;
355
+ xl2: number;
356
+ xl3: number;
357
+ xl4: number;
358
+ xlamo: number;
359
+ xlcof: number;
360
+ xli: number;
361
+ xmcof: number;
362
+ xni: number;
363
+ zmol: number;
364
+ zmos: number;
365
+ }
366
+ /**
367
+ * The StateVector is a type that represents the output from the Sgp4.propagate
368
+ * function. It consists of two main properties: position and velocity, each of
369
+ * which is a three-dimensional vector.
370
+ *
371
+ * The position and velocity vectors are represented as objects with x, y, and z
372
+ * properties, each of which is a number. Alternatively, they can be a boolean
373
+ * value.
374
+ *
375
+ * This type is primarily used in the context of satellite tracking and
376
+ * prediction, where it is crucial to know both the current position and
377
+ * velocity of a satellite.
378
+ */
379
+ export type StateVectorSgp4 = {
380
+ position: {
381
+ x: Kilometers;
382
+ y: Kilometers;
383
+ z: Kilometers;
384
+ } | false;
385
+ velocity: {
386
+ x: KilometersPerSecond;
387
+ y: KilometersPerSecond;
388
+ z: KilometersPerSecond;
389
+ } | false;
390
+ };
391
+ export type PosVel<T = Kilometers, T2 = KilometersPerSecond> = {
392
+ position: Vec3<T>;
393
+ velocity: Vec3<T2>;
394
+ };
395
+ /**
396
+ * A type that represents a three-dimensional vector in a flat array format.
397
+ * This type is used in vector mathematics and physics calculations.
398
+ *
399
+ * It is an array of three numbers, where each number represents a coordinate in
400
+ * 3D space:
401
+ * - The first number represents the x-coordinate.
402
+ * - The second number represents the y-coordinate.
403
+ * - The third number represents the z-coordinate.
404
+ *
405
+ * This format is particularly useful in scenarios where you need to perform
406
+ * operations on vectors, such as addition, subtraction, scalar multiplication,
407
+ * dot product, and cross product.
408
+ */
409
+ export type Vec3Flat<T = number> = [T, T, T];
410
+ /**
411
+ * A type that represents a two-line element set (TLE). A TLE is a data format
412
+ * used to convey sets of orbital elements that describe the orbits of
413
+ * Earth-orbiting objects. It consists of two lines of text, each of which is 69
414
+ * characters long.
415
+ * @see https://en.wikipedia.org/wiki/Two-line_element_set
416
+ */
417
+ export type TleLine1 = Distinct<string, 'TLE Line 1'>;
418
+ /**
419
+ * A type that represents a two-line element set (TLE). A TLE is a data format
420
+ * used to convey sets of orbital elements that describe the orbits of
421
+ * Earth-orbiting objects. It consists of two lines of text, each of which is 69
422
+ * characters long.
423
+ * @see https://en.wikipedia.org/wiki/Two-line_element_set
424
+ */
425
+ export type TleLine2 = Distinct<string, 'TLE Line 2'>;
426
+ /**
427
+ * The Line1Data type represents the first line of a two-line element set (TLE).
428
+ * A TLE is a data format used to convey sets of orbital elements that describe
429
+ * the orbits of Earth-orbiting objects.
430
+ *
431
+ * The properties of this type include:
432
+ * - lineNumber1: The line number of the TLE (should be 1 for this line).
433
+ * - satNum: The satellite number.
434
+ * - satNumRaw: The raw string representation of the satellite number.
435
+ * - classification: The classification of the satellite (e.g., "U" for
436
+ * unclassified).
437
+ * - intlDes: The international designator for the satellite.
438
+ * - intlDesYear: The year of the international designator.
439
+ * - intlDesLaunchNum: The launch number of the international designator.
440
+ * - intlDesLaunchPiece: The piece of the launch of the international
441
+ * designator.
442
+ * - epochYear: The last two digits of the year of the epoch.
443
+ * - epochYearFull: The full four-digit year of the epoch.
444
+ * - epochDay: The day of the year of the epoch.
445
+ * - meanMoDev1: The first derivative of the Mean Motion.
446
+ * - meanMoDev2: The second derivative of the Mean Motion.
447
+ * - bstar: The BSTAR drag term.
448
+ * - ephemerisType: The type of ephemeris used.
449
+ * - elsetNum: The element set number.
450
+ * - checksum1: The checksum of the first line of the TLE.
451
+ * @see https://en.wikipedia.org/wiki/Two-line_element_set
452
+ */
453
+ export type Line1Data = {
454
+ lineNumber1: number;
455
+ satNum: number;
456
+ satNumRaw: string;
457
+ classification: string;
458
+ intlDes: string;
459
+ intlDesYear: number;
460
+ intlDesLaunchNum: number;
461
+ intlDesLaunchPiece: string;
462
+ epochYear: number;
463
+ epochYearFull: number;
464
+ epochDay: number;
465
+ meanMoDev1: number;
466
+ meanMoDev2: number;
467
+ bstar: number;
468
+ ephemerisType: number;
469
+ elsetNum: number;
470
+ checksum1: number;
471
+ };
472
+ /**
473
+ * The Line2Data type represents the second line of a two-line element set
474
+ * (TLE). A TLE is a data format used to convey sets of orbital elements that
475
+ * describe the orbits of Earth-orbiting objects.
476
+ *
477
+ * The properties of this type include:
478
+ * - lineNumber2: The line number of the TLE (should be 2 for this line).
479
+ * - satNum: The satellite number.
480
+ * - satNumRaw: The raw string representation of the satellite number.
481
+ * - inclination: The inclination of the satellite's orbit.
482
+ * - rightAscension: The Right Ascension of the Ascending Node.
483
+ * - eccentricity: The eccentricity of the satellite's orbit.
484
+ * - argOfPerigee: The argument of perigee.
485
+ * - meanAnomaly: The mean anomaly of the satellite.
486
+ * - meanMotion: The mean motion of the satellite.
487
+ * - revNum: The revolution number at epoch.
488
+ * - checksum2: The checksum of the second line of the TLE.
489
+ * - period: The period of the satellite's orbit, derived from the mean motion.
490
+ * @see https://en.wikipedia.org/wiki/Two-line_element_set
491
+ */
492
+ export type Line2Data = {
493
+ lineNumber2: number;
494
+ satNum: number;
495
+ satNumRaw: string;
496
+ inclination: Degrees;
497
+ rightAscension: Degrees;
498
+ eccentricity: number;
499
+ argOfPerigee: Degrees;
500
+ meanAnomaly: Degrees;
501
+ meanMotion: number;
502
+ revNum: number;
503
+ checksum2: number;
504
+ period: Minutes;
505
+ };
506
+ /**
507
+ * Enum representing different types of objects.
508
+ */
509
+ export declare enum SpaceObjectType {
510
+ UNKNOWN = 0,
511
+ PAYLOAD = 1,
512
+ ROCKET_BODY = 2,
513
+ DEBRIS = 3,
514
+ SPECIAL = 4,
515
+ BALLISTIC_MISSILE = 8,
516
+ STAR = 9,
517
+ INTERGOVERNMENTAL_ORGANIZATION = 10,
518
+ SUBORBITAL_PAYLOAD_OPERATOR = 11,
519
+ PAYLOAD_OWNER = 12,
520
+ METEOROLOGICAL_ROCKET_LAUNCH_AGENCY_OR_MANUFACTURER = 13,
521
+ PAYLOAD_MANUFACTURER = 14,
522
+ LAUNCH_AGENCY = 15,
523
+ LAUNCH_SITE = 16,
524
+ LAUNCH_POSITION = 17,
525
+ LAUNCH_FACILITY = 18,
526
+ CONTROL_FACILITY = 19,
527
+ GROUND_SENSOR_STATION = 20,
528
+ OPTICAL = 21,
529
+ MECHANICAL = 22,
530
+ PHASED_ARRAY_RADAR = 23,
531
+ OBSERVER = 24,
532
+ BISTATIC_RADIO_TELESCOPE = 25,
533
+ COUNTRY = 26,
534
+ LAUNCH_VEHICLE_MANUFACTURER = 27,
535
+ ENGINE_MANUFACTURER = 28,
536
+ NOTIONAL = 29,
537
+ FRAGMENT = 30,
538
+ SHORT_TERM_FENCE = 31,
539
+ MAX_SPACE_OBJECT_TYPE = 32
540
+ }
541
+ /**
542
+ * Represents the Greenwich Mean Sidereal Time (GMST).
543
+ *
544
+ * GMST is a time system that is a measure of the angle, on the celestial
545
+ * equator, from the Greenwich meridian to the meridian that passes through the
546
+ * vernal equinox.
547
+ */
548
+ export type GreenwichMeanSiderealTime = Distinct<number, 'Greenwich Mean Sidereal Time'>;
549
+ /**
550
+ * Represents the azimuth and elevation of an object in the sky. Azimuth and
551
+ * elevation are the two coordinates that define the position of a celestial
552
+ * body (sun, moon, planet, star, etc.) in the sky as observed from a specific
553
+ * location on the Earth's surface.
554
+ * @template Units The units in which the azimuth and elevation are expressed.
555
+ * By default, this is radians.
556
+ * az The azimuth of the object. This is the angle between the
557
+ * observer's north vector and the perpendicular projection of the object onto
558
+ * the observer's local horizon.
559
+ * el The elevation of the object. This is the angle between the
560
+ * object and the observer's local horizon.
561
+ */
562
+ export type AzEl<Units = Radians> = {
563
+ az: Units;
564
+ el: Units;
565
+ };
566
+ /**
567
+ * Represents the coordinates of a celestial object in Right Ascension (RA) and
568
+ * Declination (Dec).
569
+ */
570
+ export type RaDec = {
571
+ dec: Radians;
572
+ ra: Radians;
573
+ dist: Kilometers;
574
+ };
575
+ /**
576
+ * Represents the solar noon and nadir times.
577
+ * solarNoon The time at which the sun is at its highest point in the
578
+ * sky (directly above the observer's head). This is the midpoint of the day.
579
+ * nadir The time at which the sun is at its lowest point, directly
580
+ * below the observer. This is the midpoint of the night.
581
+ */
582
+ export type SunTime = {
583
+ solarNoon: Date;
584
+ nadir: Date;
585
+ goldenHourDuskStart: Date;
586
+ goldenHourDawnEnd: Date;
587
+ sunsetStart: Date;
588
+ sunriseEnd: Date;
589
+ sunsetEnd: Date;
590
+ sunriseStart: Date;
591
+ goldenHourDuskEnd: Date;
592
+ goldenHourDawnStart: Date;
593
+ blueHourDuskStart: Date;
594
+ blueHourDawnEnd: Date;
595
+ civilDusk: Date;
596
+ civilDawn: Date;
597
+ blueHourDuskEnd: Date;
598
+ blueHourDawnStart: Date;
599
+ nauticalDusk: Date;
600
+ nauticalDawn: Date;
601
+ amateurDusk: Date;
602
+ amateurDawn: Date;
603
+ astronomicalDusk: Date;
604
+ astronomicalDawn: Date;
605
+ };
606
+ export type LaunchDetails = {
607
+ launchDate?: string;
608
+ launchMass?: string;
609
+ launchSite?: string;
610
+ launchVehicle?: string;
611
+ launchPad?: string;
612
+ };
613
+ export type SpaceCraftDetails = {
614
+ lifetime?: string | number;
615
+ maneuver?: string;
616
+ manufacturer?: string;
617
+ motor?: string;
618
+ power?: string;
619
+ payload?: string;
620
+ purpose?: string;
621
+ shape?: string;
622
+ span?: string;
623
+ bus?: string;
624
+ configuration?: string;
625
+ equipment?: string;
626
+ dryMass?: string;
627
+ };
628
+ export type OperationsDetails = {
629
+ user?: string;
630
+ mission?: string;
631
+ owner?: string;
632
+ country?: string;
633
+ };
634
+ export type Lookangle = {
635
+ type: PassType;
636
+ time: Date;
637
+ az: Degrees;
638
+ el: Degrees;
639
+ rng: Kilometers;
640
+ maxElPass?: Degrees;
641
+ };
642
+ /**
643
+ * Two-line element set data for a satellite.
644
+ */
645
+ export type TleData = {
646
+ satNum: number;
647
+ intlDes: string;
648
+ epochYear: number;
649
+ epochDay: number;
650
+ meanMoDev1: number;
651
+ meanMoDev2: number;
652
+ bstar: number;
653
+ inclination: Degrees;
654
+ rightAscension: Degrees;
655
+ eccentricity: number;
656
+ argOfPerigee: Degrees;
657
+ meanAnomaly: Degrees;
658
+ meanMotion: number;
659
+ period: Minutes;
660
+ };
661
+ /**
662
+ * Represents a set of data containing both Line 1 and Line 2 TLE information.
663
+ */
664
+ export type TleDataFull = Line1Data & Line2Data;
665
+ export type StringifiedNumber = `${number}.${number}`;
666
+ /**
667
+ * Represents a set of data containing both Line 1 and Line 2 TLE information.
668
+ *
669
+ * TODO: #22 TleParams types should be more consistent.
670
+ */
671
+ export type TleParams = {
672
+ sat?: Satellite;
673
+ inc: string | number;
674
+ meanmo: string | number;
675
+ rasc: string | number;
676
+ argPe: string | number;
677
+ meana: string | number;
678
+ ecen: string;
679
+ epochyr: string;
680
+ epochday: string;
681
+ /** COSPAR International Designator */
682
+ intl: string;
683
+ /** alpha 5 satellite number */
684
+ scc: string;
685
+ };
686
+ export type PositionVelocity = {
687
+ position: Vector3D<Kilometers>;
688
+ velocity: Vector3D<KilometersPerSecond>;
689
+ };
19
690
  export declare enum ZoomValue {
20
691
  LEO = 0.45,
21
692
  GEO = 0.82,
@@ -129,3 +800,4 @@ export type JacobianFunction = (xs: Float64Array) => Float64Array;
129
800
  * @param x The input value. @returns The output value.
130
801
  */
131
802
  export type DifferentiableFunction = (x: number) => number;
803
+ export {};