ootk 4.0.0-0 → 4.0.0-2

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 (356) hide show
  1. package/CHANGELOG.md +142 -31
  2. package/{lib → dist}/coordinate/Hill.d.ts +17 -18
  3. package/{lib → dist}/coordinate/Hill.js +44 -36
  4. package/dist/coordinate/Hill.js.map +1 -0
  5. package/{lib → dist}/covariance/CovarianceSample.d.ts +6 -7
  6. package/{lib → dist}/covariance/CovarianceSample.js +29 -28
  7. package/dist/covariance/CovarianceSample.js.map +1 -0
  8. package/{lib → dist}/covariance/StateCovariance.d.ts +4 -3
  9. package/{lib → dist}/covariance/StateCovariance.js +8 -5
  10. package/dist/covariance/StateCovariance.js.map +1 -0
  11. package/{lib → dist}/force/AtmosphericDrag.d.ts +1 -2
  12. package/{lib → dist}/force/AtmosphericDrag.js +13 -6
  13. package/dist/force/AtmosphericDrag.js.map +1 -0
  14. package/{lib → dist}/force/EarthGravity.d.ts +1 -2
  15. package/{lib → dist}/force/EarthGravity.js +4 -2
  16. package/dist/force/EarthGravity.js.map +1 -0
  17. package/{lib → dist}/force/Force.d.ts +3 -2
  18. package/{lib → dist}/force/Force.js +3 -2
  19. package/dist/force/Force.js.map +1 -0
  20. package/{lib → dist}/force/ForceModel.d.ts +4 -5
  21. package/{lib → dist}/force/ForceModel.js +6 -2
  22. package/dist/force/ForceModel.js.map +1 -0
  23. package/{lib → dist}/force/Gravity.d.ts +1 -4
  24. package/{lib → dist}/force/Gravity.js +3 -4
  25. package/dist/force/Gravity.js.map +1 -0
  26. package/{lib → dist}/force/SolarRadiationPressure.d.ts +1 -2
  27. package/{lib → dist}/force/SolarRadiationPressure.js +6 -4
  28. package/dist/force/SolarRadiationPressure.js.map +1 -0
  29. package/{lib → dist}/force/ThirdBodyGravity.d.ts +1 -2
  30. package/{lib → dist}/force/ThirdBodyGravity.js +4 -3
  31. package/dist/force/ThirdBodyGravity.js.map +1 -0
  32. package/{lib → dist}/force/Thrust.d.ts +10 -11
  33. package/{lib → dist}/force/Thrust.js +8 -3
  34. package/dist/force/Thrust.js.map +1 -0
  35. package/dist/interfaces/RfSensorParams.d.ts +28 -0
  36. package/dist/interfaces/RfSensorParams.js +24 -0
  37. package/dist/interfaces/RfSensorParams.js.map +1 -0
  38. package/dist/interfaces/index.d.ts +1 -0
  39. package/dist/interfaces/index.js +2 -0
  40. package/dist/interfaces/index.js.map +1 -0
  41. package/{lib → dist}/interpolator/ChebyshevCoefficients.d.ts +11 -15
  42. package/{lib → dist}/interpolator/ChebyshevCoefficients.js +19 -15
  43. package/dist/interpolator/ChebyshevCoefficients.js.map +1 -0
  44. package/{lib → dist}/interpolator/ChebyshevInterpolator.d.ts +1 -2
  45. package/{lib → dist}/interpolator/ChebyshevInterpolator.js +2 -2
  46. package/dist/interpolator/ChebyshevInterpolator.js.map +1 -0
  47. package/{lib → dist}/interpolator/CubicSpline.d.ts +8 -9
  48. package/{lib → dist}/interpolator/CubicSpline.js +10 -5
  49. package/dist/interpolator/CubicSpline.js.map +1 -0
  50. package/{lib → dist}/interpolator/CubicSplineInterpolator.d.ts +2 -3
  51. package/{lib → dist}/interpolator/CubicSplineInterpolator.js +6 -4
  52. package/dist/interpolator/CubicSplineInterpolator.js.map +1 -0
  53. package/{lib → dist}/interpolator/FieldInterpolator.d.ts +7 -5
  54. package/{lib → dist}/interpolator/FieldInterpolator.js +6 -3
  55. package/dist/interpolator/FieldInterpolator.js.map +1 -0
  56. package/{lib → dist}/interpolator/Interpolator.d.ts +1 -2
  57. package/{lib → dist}/interpolator/Interpolator.js +1 -2
  58. package/dist/interpolator/Interpolator.js.map +1 -0
  59. package/{lib → dist}/interpolator/LagrangeInterpolator.d.ts +8 -10
  60. package/{lib → dist}/interpolator/LagrangeInterpolator.js +32 -29
  61. package/dist/interpolator/LagrangeInterpolator.js.map +1 -0
  62. package/{lib → dist}/interpolator/StateInterpolator.d.ts +2 -4
  63. package/{lib → dist}/interpolator/StateInterpolator.js +2 -4
  64. package/dist/interpolator/StateInterpolator.js.map +1 -0
  65. package/{lib → dist}/interpolator/VerletBlendInterpolator.d.ts +4 -5
  66. package/{lib → dist}/interpolator/VerletBlendInterpolator.js +16 -13
  67. package/dist/interpolator/VerletBlendInterpolator.js.map +1 -0
  68. package/{lib/ootk.d.ts → dist/main.d.ts} +4 -2
  69. package/dist/main.js +32 -0
  70. package/dist/main.js.map +1 -0
  71. package/{lib → dist}/maneuver/TwoBurnOrbitTransfer.d.ts +5 -7
  72. package/{lib → dist}/maneuver/TwoBurnOrbitTransfer.js +6 -3
  73. package/dist/maneuver/TwoBurnOrbitTransfer.js.map +1 -0
  74. package/{lib → dist}/maneuver/Waypoint.d.ts +30 -5
  75. package/{lib → dist}/maneuver/Waypoint.js +31 -4
  76. package/dist/maneuver/Waypoint.js.map +1 -0
  77. package/{lib → dist}/objects/DetailedSatellite.d.ts +7 -31
  78. package/{lib → dist}/objects/DetailedSatellite.js +68 -72
  79. package/dist/objects/DetailedSatellite.js.map +1 -0
  80. package/{lib → dist}/objects/DetailedSensor.d.ts +1 -2
  81. package/{lib → dist}/objects/DetailedSensor.js +22 -2
  82. package/dist/objects/DetailedSensor.js.map +1 -0
  83. package/{lib → dist}/objects/LandObject.d.ts +3 -6
  84. package/{lib → dist}/objects/LandObject.js +9 -3
  85. package/dist/objects/LandObject.js.map +1 -0
  86. package/{lib → dist}/objects/Marker.d.ts +1 -2
  87. package/{lib → dist}/objects/Marker.js +1 -2
  88. package/dist/objects/Marker.js.map +1 -0
  89. package/dist/objects/RfSensor.d.ts +41 -0
  90. package/dist/objects/RfSensor.js +67 -0
  91. package/dist/objects/RfSensor.js.map +1 -0
  92. package/{lib → dist}/objects/index.d.ts +1 -1
  93. package/{lib → dist}/objects/index.js +1 -1
  94. package/dist/objects/index.js.map +1 -0
  95. package/{lib → dist}/observation/Observation.d.ts +42 -4
  96. package/{lib → dist}/observation/Observation.js +41 -10
  97. package/dist/observation/Observation.js.map +1 -0
  98. package/{lib → dist}/observation/ObservationOptical.d.ts +7 -6
  99. package/{lib → dist}/observation/ObservationOptical.js +19 -15
  100. package/dist/observation/ObservationOptical.js.map +1 -0
  101. package/{lib → dist}/observation/ObservationRadar.d.ts +7 -4
  102. package/{lib → dist}/observation/ObservationRadar.js +25 -19
  103. package/dist/observation/ObservationRadar.js.map +1 -0
  104. package/{lib → dist}/observation/ObservationUtils.d.ts +1 -2
  105. package/{lib → dist}/observation/ObservationUtils.js +1 -2
  106. package/dist/observation/ObservationUtils.js.map +1 -0
  107. package/{lib → dist}/observation/PropagatorPairs.d.ts +3 -2
  108. package/{lib → dist}/observation/PropagatorPairs.js +7 -4
  109. package/dist/observation/PropagatorPairs.js.map +1 -0
  110. package/{lib → dist}/operations/BoxMuller.d.ts +7 -2
  111. package/{lib → dist}/operations/BoxMuller.js +15 -4
  112. package/dist/operations/BoxMuller.js.map +1 -0
  113. package/dist/operations/EulerAngles.d.ts +105 -0
  114. package/{lib → dist}/operations/EulerAngles.js +72 -22
  115. package/dist/operations/EulerAngles.js.map +1 -0
  116. package/{lib → dist}/operations/Quaternion.d.ts +5 -6
  117. package/{lib → dist}/operations/Quaternion.js +12 -9
  118. package/dist/operations/Quaternion.js.map +1 -0
  119. package/{lib → dist}/operations/RandomGaussianSource.d.ts +1 -2
  120. package/{lib → dist}/operations/RandomGaussianSource.js +3 -3
  121. package/dist/operations/RandomGaussianSource.js.map +1 -0
  122. package/{lib → dist}/optimize/ChebyshevCompressor.d.ts +3 -2
  123. package/{lib → dist}/optimize/ChebyshevCompressor.js +7 -4
  124. package/dist/optimize/ChebyshevCompressor.js.map +1 -0
  125. package/{lib → dist}/optimize/DownhillSimplex.d.ts +16 -2
  126. package/{lib → dist}/optimize/DownhillSimplex.js +16 -2
  127. package/dist/optimize/DownhillSimplex.js.map +1 -0
  128. package/{lib → dist}/optimize/GoldenSection.d.ts +9 -3
  129. package/{lib → dist}/optimize/GoldenSection.js +9 -3
  130. package/dist/optimize/GoldenSection.js.map +1 -0
  131. package/{lib → dist}/optimize/PolynomialRegression.d.ts +14 -2
  132. package/{lib → dist}/optimize/PolynomialRegression.js +19 -2
  133. package/dist/optimize/PolynomialRegression.js.map +1 -0
  134. package/{lib → dist}/optimize/PolynomicalRegressionResult.d.ts +5 -2
  135. package/{lib → dist}/optimize/PolynomicalRegressionResult.js +8 -2
  136. package/dist/optimize/PolynomicalRegressionResult.js.map +1 -0
  137. package/{lib → dist}/optimize/SimpleLinearRegression.d.ts +5 -2
  138. package/{lib → dist}/optimize/SimpleLinearRegression.js +12 -7
  139. package/dist/optimize/SimpleLinearRegression.js.map +1 -0
  140. package/{lib → dist}/optimize/SimplexEntry.d.ts +1 -2
  141. package/{lib → dist}/optimize/SimplexEntry.js +5 -2
  142. package/dist/optimize/SimplexEntry.js.map +1 -0
  143. package/{lib → dist}/orbit_determination/BatchLeastSquaresOD.d.ts +14 -3
  144. package/{lib → dist}/orbit_determination/BatchLeastSquaresOD.js +29 -4
  145. package/dist/orbit_determination/BatchLeastSquaresOD.js.map +1 -0
  146. package/{lib → dist}/orbit_determination/BatchLeastSquaresResult.d.ts +4 -2
  147. package/{lib → dist}/orbit_determination/BatchLeastSquaresResult.js +7 -2
  148. package/dist/orbit_determination/BatchLeastSquaresResult.js.map +1 -0
  149. package/{lib → dist}/orbit_determination/GibbsIOD.d.ts +9 -4
  150. package/{lib → dist}/orbit_determination/GibbsIOD.js +11 -5
  151. package/dist/orbit_determination/GibbsIOD.js.map +1 -0
  152. package/{lib → dist}/orbit_determination/GoodingIOD.d.ts +21 -22
  153. package/{lib → dist}/orbit_determination/GoodingIOD.js +74 -71
  154. package/dist/orbit_determination/GoodingIOD.js.map +1 -0
  155. package/{lib → dist}/orbit_determination/HerrickGibbsIOD.d.ts +4 -4
  156. package/{lib → dist}/orbit_determination/HerrickGibbsIOD.js +3 -2
  157. package/dist/orbit_determination/HerrickGibbsIOD.js.map +1 -0
  158. package/{lib → dist}/orbit_determination/LambertIOD.d.ts +21 -8
  159. package/{lib → dist}/orbit_determination/LambertIOD.js +20 -6
  160. package/dist/orbit_determination/LambertIOD.js.map +1 -0
  161. package/{lib → dist}/orbit_determination/ModifiedGoodingIOD.d.ts +6 -7
  162. package/{lib → dist}/orbit_determination/ModifiedGoodingIOD.js +12 -11
  163. package/dist/orbit_determination/ModifiedGoodingIOD.js.map +1 -0
  164. package/{lib → dist}/propagator/DormandPrince54Propagator.d.ts +1 -2
  165. package/dist/propagator/DormandPrince54Propagator.js +64 -0
  166. package/dist/propagator/DormandPrince54Propagator.js.map +1 -0
  167. package/{lib → dist}/propagator/KeplerPropagator.d.ts +1 -2
  168. package/{lib → dist}/propagator/KeplerPropagator.js +5 -2
  169. package/{lib → dist}/propagator/KeplerPropagator.js.map +1 -1
  170. package/{lib → dist}/propagator/Propagator.d.ts +5 -6
  171. package/{lib → dist}/propagator/Propagator.js +5 -6
  172. package/dist/propagator/Propagator.js.map +1 -0
  173. package/{lib → dist}/propagator/RkCheckpoint.d.ts +1 -2
  174. package/{lib → dist}/propagator/RkCheckpoint.js +3 -2
  175. package/dist/propagator/RkCheckpoint.js.map +1 -0
  176. package/{lib → dist}/propagator/RkResult.d.ts +1 -2
  177. package/{lib → dist}/propagator/RkResult.js +4 -2
  178. package/dist/propagator/RkResult.js.map +1 -0
  179. package/{lib → dist}/propagator/RungeKutta4Propagator.d.ts +14 -10
  180. package/{lib → dist}/propagator/RungeKutta4Propagator.js +45 -36
  181. package/dist/propagator/RungeKutta4Propagator.js.map +1 -0
  182. package/{lib → dist}/propagator/RungeKutta89Propagator.d.ts +1 -2
  183. package/dist/propagator/RungeKutta89Propagator.js +126 -0
  184. package/dist/propagator/RungeKutta89Propagator.js.map +1 -0
  185. package/{lib → dist}/propagator/RungeKuttaAdaptive.d.ts +13 -11
  186. package/{lib → dist}/propagator/RungeKuttaAdaptive.js +31 -24
  187. package/dist/propagator/RungeKuttaAdaptive.js.map +1 -0
  188. package/{lib → dist}/propagator/Sgp4Propagator.d.ts +3 -4
  189. package/{lib → dist}/propagator/Sgp4Propagator.js +4 -3
  190. package/dist/propagator/Sgp4Propagator.js.map +1 -0
  191. package/{lib → dist}/smoothing/ExponentialSmoothing.d.ts +1 -2
  192. package/{lib → dist}/smoothing/ExponentialSmoothing.js +1 -2
  193. package/dist/smoothing/ExponentialSmoothing.js.map +1 -0
  194. package/dist/transforms/index.d.ts +1 -0
  195. package/dist/transforms/index.js +2 -0
  196. package/dist/transforms/index.js.map +1 -0
  197. package/dist/transforms/transforms.d.ts +58 -0
  198. package/dist/transforms/transforms.js +94 -0
  199. package/dist/transforms/transforms.js.map +1 -0
  200. package/{lib → dist}/types/types.d.ts +44 -4
  201. package/{lib → dist}/types/types.js +1 -2
  202. package/dist/types/types.js.map +1 -0
  203. package/dist/utils/functions.d.ts +8 -0
  204. package/dist/utils/functions.js +18 -0
  205. package/dist/utils/functions.js.map +1 -0
  206. package/dist/utils/index.d.ts +2 -0
  207. package/dist/utils/index.js +3 -0
  208. package/dist/utils/index.js.map +1 -0
  209. package/dist/utils/jacobian.d.ts +11 -0
  210. package/dist/utils/jacobian.js +29 -0
  211. package/dist/utils/jacobian.js.map +1 -0
  212. package/package.json +32 -42
  213. package/src/coordinate/Hill.ts +326 -0
  214. package/src/coordinate/index.ts +1 -0
  215. package/src/covariance/CovarianceSample.ts +194 -0
  216. package/src/covariance/StateCovariance.ts +69 -0
  217. package/src/force/AtmosphericDrag.ts +101 -0
  218. package/src/force/EarthGravity.ts +157 -0
  219. package/src/force/Force.ts +33 -0
  220. package/src/force/ForceModel.ts +91 -0
  221. package/src/force/Gravity.ts +53 -0
  222. package/src/force/SolarRadiationPressure.ts +42 -0
  223. package/src/force/ThirdBodyGravity.ts +62 -0
  224. package/src/force/Thrust.ts +83 -0
  225. package/src/interfaces/RfSensorParams.ts +30 -0
  226. package/src/interfaces/index.ts +1 -0
  227. package/src/interpolator/ChebyshevCoefficients.ts +109 -0
  228. package/src/interpolator/ChebyshevInterpolator.ts +87 -0
  229. package/src/interpolator/CubicSpline.ts +72 -0
  230. package/src/interpolator/CubicSplineInterpolator.ts +90 -0
  231. package/src/interpolator/FieldInterpolator.ts +37 -0
  232. package/src/interpolator/Interpolator.ts +56 -0
  233. package/src/interpolator/LagrangeInterpolator.ts +192 -0
  234. package/src/interpolator/StateInterpolator.ts +39 -0
  235. package/src/interpolator/VerletBlendInterpolator.ts +146 -0
  236. package/{lib/ootk.js → src/main.ts} +7 -3
  237. package/src/maneuver/TwoBurnOrbitTransfer.ts +79 -0
  238. package/src/maneuver/Waypoint.ts +267 -0
  239. package/src/objects/DetailedSatellite.ts +159 -0
  240. package/src/objects/DetailedSensor.ts +68 -0
  241. package/src/objects/LandObject.ts +46 -0
  242. package/src/objects/Marker.ts +25 -0
  243. package/src/objects/RfSensor.ts +78 -0
  244. package/src/objects/index.ts +5 -0
  245. package/src/observation/Observation.ts +125 -0
  246. package/src/observation/ObservationOptical.ts +146 -0
  247. package/src/observation/ObservationRadar.ts +131 -0
  248. package/src/observation/ObservationUtils.ts +40 -0
  249. package/src/observation/PropagatorPairs.ts +45 -0
  250. package/src/operations/BoxMuller.ts +87 -0
  251. package/src/operations/EulerAngles.ts +183 -0
  252. package/src/operations/Quaternion.ts +222 -0
  253. package/src/operations/RandomGaussianSource.ts +51 -0
  254. package/src/operations/index.ts +4 -0
  255. package/src/optimize/ChebyshevCompressor.ts +96 -0
  256. package/src/optimize/DownhillSimplex.ts +212 -0
  257. package/src/optimize/GoldenSection.ts +71 -0
  258. package/src/optimize/PolynomialRegression.ts +109 -0
  259. package/src/optimize/PolynomicalRegressionResult.ts +32 -0
  260. package/src/optimize/SimpleLinearRegression.ts +127 -0
  261. package/src/optimize/SimplexEntry.ts +50 -0
  262. package/src/orbit_determination/BatchLeastSquaresOD.ts +174 -0
  263. package/src/orbit_determination/BatchLeastSquaresResult.ts +33 -0
  264. package/src/orbit_determination/GibbsIOD.ts +95 -0
  265. package/src/orbit_determination/GoodingIOD.ts +380 -0
  266. package/src/orbit_determination/HerrickGibbsIOD.ts +51 -0
  267. package/src/orbit_determination/LambertIOD.ts +260 -0
  268. package/src/orbit_determination/ModifiedGoodingIOD.ts +133 -0
  269. package/src/propagator/DormandPrince54Propagator.ts +73 -0
  270. package/src/propagator/KeplerPropagator.ts +102 -0
  271. package/src/propagator/Propagator.ts +253 -0
  272. package/src/propagator/RkCheckpoint.ts +25 -0
  273. package/src/propagator/RkResult.ts +26 -0
  274. package/src/propagator/RungeKutta4Propagator.ts +179 -0
  275. package/src/propagator/RungeKutta89Propagator.ts +132 -0
  276. package/src/propagator/RungeKuttaAdaptive.ts +232 -0
  277. package/src/propagator/Sgp4Propagator.ts +71 -0
  278. package/src/smoothing/ExponentialSmoothing.ts +90 -0
  279. package/src/transforms/index.ts +1 -0
  280. package/src/transforms/transforms.ts +117 -0
  281. package/src/types/types.ts +135 -0
  282. package/src/utils/functions.ts +21 -0
  283. package/src/utils/index.ts +2 -0
  284. package/src/utils/jacobian.ts +38 -0
  285. package/.eslintrc.json +0 -244
  286. package/jest.config.ts +0 -30
  287. package/lib/coordinate/Hill.js.map +0 -1
  288. package/lib/covariance/CovarianceSample.js.map +0 -1
  289. package/lib/covariance/StateCovariance.js.map +0 -1
  290. package/lib/force/AtmosphericDrag.js.map +0 -1
  291. package/lib/force/EarthGravity.js.map +0 -1
  292. package/lib/force/Force.js.map +0 -1
  293. package/lib/force/ForceModel.js.map +0 -1
  294. package/lib/force/Gravity.js.map +0 -1
  295. package/lib/force/SolarRadiationPressure.js.map +0 -1
  296. package/lib/force/ThirdBodyGravity.js.map +0 -1
  297. package/lib/force/Thrust.js.map +0 -1
  298. package/lib/interpolator/ChebyshevCoefficients.js.map +0 -1
  299. package/lib/interpolator/ChebyshevInterpolator.js.map +0 -1
  300. package/lib/interpolator/CubicSpline.js.map +0 -1
  301. package/lib/interpolator/CubicSplineInterpolator.js.map +0 -1
  302. package/lib/interpolator/FieldInterpolator.js.map +0 -1
  303. package/lib/interpolator/Interpolator.js.map +0 -1
  304. package/lib/interpolator/LagrangeInterpolator.js.map +0 -1
  305. package/lib/interpolator/StateInterpolator.js.map +0 -1
  306. package/lib/interpolator/VerletBlendInterpolator.js.map +0 -1
  307. package/lib/maneuver/TwoBurnOrbitTransfer.js.map +0 -1
  308. package/lib/maneuver/Waypoint.js.map +0 -1
  309. package/lib/objects/DetailedSatellite.js.map +0 -1
  310. package/lib/objects/DetailedSensor.js.map +0 -1
  311. package/lib/objects/LandObject.js.map +0 -1
  312. package/lib/objects/Marker.js.map +0 -1
  313. package/lib/objects/index.js.map +0 -1
  314. package/lib/observation/Observation.js.map +0 -1
  315. package/lib/observation/ObservationOptical.js.map +0 -1
  316. package/lib/observation/ObservationRadar.js.map +0 -1
  317. package/lib/observation/ObservationUtils.js.map +0 -1
  318. package/lib/observation/PropagatorPairs.js.map +0 -1
  319. package/lib/ootk.js.map +0 -1
  320. package/lib/operations/BoxMuller.js.map +0 -1
  321. package/lib/operations/EulerAngles.d.ts +0 -50
  322. package/lib/operations/EulerAngles.js.map +0 -1
  323. package/lib/operations/Quaternion.js.map +0 -1
  324. package/lib/operations/RandomGaussianSource.js.map +0 -1
  325. package/lib/optimize/ChebyshevCompressor.js.map +0 -1
  326. package/lib/optimize/DownhillSimplex.js.map +0 -1
  327. package/lib/optimize/GoldenSection.js.map +0 -1
  328. package/lib/optimize/PolynomialRegression.js.map +0 -1
  329. package/lib/optimize/PolynomicalRegressionResult.js.map +0 -1
  330. package/lib/optimize/SimpleLinearRegression.js.map +0 -1
  331. package/lib/optimize/SimplexEntry.js.map +0 -1
  332. package/lib/orbit_determination/BatchLeastSquaresOD.js.map +0 -1
  333. package/lib/orbit_determination/BatchLeastSquaresResult.js.map +0 -1
  334. package/lib/orbit_determination/GibbsIOD.js.map +0 -1
  335. package/lib/orbit_determination/GoodingIOD.js.map +0 -1
  336. package/lib/orbit_determination/HerrickGibbsIOD.js.map +0 -1
  337. package/lib/orbit_determination/LambertIOD.js.map +0 -1
  338. package/lib/orbit_determination/ModifiedGoodingIOD.js.map +0 -1
  339. package/lib/propagator/DormandPrince54Propagator.js +0 -68
  340. package/lib/propagator/DormandPrince54Propagator.js.map +0 -1
  341. package/lib/propagator/Propagator.js.map +0 -1
  342. package/lib/propagator/RkCheckpoint.js.map +0 -1
  343. package/lib/propagator/RkResult.js.map +0 -1
  344. package/lib/propagator/RungeKutta4Propagator.js.map +0 -1
  345. package/lib/propagator/RungeKutta89Propagator.js +0 -130
  346. package/lib/propagator/RungeKutta89Propagator.js.map +0 -1
  347. package/lib/propagator/RungeKuttaAdaptive.js.map +0 -1
  348. package/lib/propagator/Sgp4Propagator.js.map +0 -1
  349. package/lib/smoothing/ExponentialSmoothing.js.map +0 -1
  350. package/lib/types/types.js.map +0 -1
  351. /package/{lib → dist}/coordinate/index.d.ts +0 -0
  352. /package/{lib → dist}/coordinate/index.js +0 -0
  353. /package/{lib → dist}/coordinate/index.js.map +0 -0
  354. /package/{lib → dist}/operations/index.d.ts +0 -0
  355. /package/{lib → dist}/operations/index.js +0 -0
  356. /package/{lib → dist}/operations/index.js.map +0 -0
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @author @thkruz Theodore Kruczek
3
- *
4
3
  * @license AGPL-3.0-or-later
5
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -15,13 +14,12 @@
15
14
  * You should have received a copy of the GNU Affero General Public License along with
16
15
  * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
17
16
  */
18
- import { EciVec3, Kilometers, LaunchDetails, OperationsDetails, OptionsParams, Satellite, SatelliteParams, SpaceCraftDetails } from 'ootk-core';
17
+ import { LaunchDetails, OperationsDetails, OptionsParams, Satellite, SpaceCraftDetails } from 'ootk-core';
19
18
  import { DetailedSatelliteParams } from '../types/types';
20
19
  /**
21
20
  * Represents a detailed satellite object with launch, spacecraft, and operations details.
22
21
  */
23
22
  export declare class DetailedSatellite extends Satellite {
24
- /** A global index - this is NOT the sccNum */
25
23
  configuration: string;
26
24
  country: string;
27
25
  dryMass: string;
@@ -48,13 +46,12 @@ export declare class DetailedSatellite extends Satellite {
48
46
  source: string;
49
47
  vmag: number;
50
48
  rcs: number;
51
- totalVelocity: number;
52
- velocity: EciVec3<Kilometers>;
53
- semiMajorAxis: number;
54
- semiMinorAxis: number;
55
49
  altId: string;
56
50
  altName: string;
57
- constructor(info: DetailedSatelliteParams & SatelliteParams & LaunchDetails & OperationsDetails & SpaceCraftDetails, options?: OptionsParams);
51
+ constructor(info: DetailedSatelliteParams & LaunchDetails & OperationsDetails & SpaceCraftDetails, options?: OptionsParams);
52
+ private initSpaceCraftDetails_;
53
+ private initOperationDetails_;
54
+ private initLaunchDetails_;
58
55
  /**
59
56
  * Returns the launch details of the satellite.
60
57
  * @returns An object containing the launch date, launch mass, launch site, and launch vehicle of the satellite.
@@ -67,28 +64,7 @@ export declare class DetailedSatellite extends Satellite {
67
64
  getOperationsDetails(): OperationsDetails;
68
65
  /**
69
66
  * Returns the space craft details.
70
- * @returns {SpaceCraftDetails} The space craft details.
67
+ * @returns The space craft details.
71
68
  */
72
69
  getSpaceCraftDetails(): SpaceCraftDetails;
73
- /**
74
- * Propagates the satellite position to the given date using the SGP4 model.
75
- *
76
- * This method changes the position and time properties of the satellite object.
77
- */
78
- propagateTo(date: Date): this;
79
- /**
80
- * Sets the launch details of the satellite.
81
- * @param details - The launch details to set.
82
- */
83
- setLaunchDetails(details: LaunchDetails): void;
84
- /**
85
- * Sets the operations details for the satellite.
86
- * @param details - The operations details to set.
87
- */
88
- setOperationsDetails(details: OperationsDetails): void;
89
- /**
90
- * Sets the details of a spacecraft.
91
- * @param details - The details of the spacecraft to set.
92
- */
93
- setSpaceCraftDetails(details: SpaceCraftDetails): void;
94
70
  }
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @author @thkruz Theodore Kruczek
3
- *
4
3
  * @license AGPL-3.0-or-later
5
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -15,20 +14,79 @@
15
14
  * You should have received a copy of the GNU Affero General Public License along with
16
15
  * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
17
16
  */
18
- import { Satellite, Vector3D, } from 'ootk-core';
17
+ import { Satellite, } from 'ootk-core';
19
18
  /**
20
19
  * Represents a detailed satellite object with launch, spacecraft, and operations details.
21
20
  */
22
21
  export class DetailedSatellite extends Satellite {
22
+ configuration = '';
23
+ country = '';
24
+ dryMass = '';
25
+ equipment = '';
26
+ launchDate = '';
27
+ launchMass = '';
28
+ launchSite = '';
29
+ launchVehicle = '';
30
+ lifetime = '';
31
+ maneuver = '';
32
+ manufacturer = '';
33
+ mission = '';
34
+ bus = '';
35
+ motor = '';
36
+ owner = '';
37
+ payload = '';
38
+ power = '';
39
+ purpose = '';
40
+ length = '';
41
+ diameter = '';
42
+ shape = '';
43
+ span = '';
44
+ user = '';
45
+ source = '';
46
+ vmag;
47
+ rcs;
48
+ altId = '';
49
+ altName = '';
23
50
  constructor(info, options) {
24
51
  super(info, options);
25
52
  this.active ??= true;
26
- this.setLaunchDetails(info);
27
- this.setSpaceCraftDetails(info);
28
- this.setOperationsDetails(info);
29
- Object.keys(info).forEach((key) => {
30
- this[key] = info[key];
31
- });
53
+ this.initSpaceCraftDetails_(info);
54
+ this.length = info.length ?? '';
55
+ this.diameter = info.diameter ?? '';
56
+ this.source = info.source ?? '';
57
+ this.vmag = info.vmag ?? 0;
58
+ this.rcs = info.rcs ?? 0;
59
+ this.altId = info.altId ?? '';
60
+ this.altName = info.altName ?? '';
61
+ this.initOperationDetails_(info);
62
+ this.initLaunchDetails_(info);
63
+ }
64
+ initSpaceCraftDetails_(info) {
65
+ this.lifetime = info.lifetime ?? '';
66
+ this.maneuver = info.maneuver ?? '';
67
+ this.manufacturer = info.manufacturer ?? '';
68
+ this.motor = info.motor ?? '';
69
+ this.power = info.power ?? '';
70
+ this.payload = info.payload ?? '';
71
+ this.purpose = info.purpose ?? '';
72
+ this.shape = info.shape ?? '';
73
+ this.span = info.span ?? '';
74
+ this.bus = info.bus ?? '';
75
+ this.configuration = info.configuration ?? '';
76
+ this.equipment = info.equipment ?? '';
77
+ this.dryMass = info.dryMass ?? '';
78
+ }
79
+ initOperationDetails_(info) {
80
+ this.mission = info.mission ?? '';
81
+ this.user = info.user ?? '';
82
+ this.owner = info.owner ?? '';
83
+ this.country = info.country ?? '';
84
+ }
85
+ initLaunchDetails_(info) {
86
+ this.launchDate = info.launchDate ?? '';
87
+ this.launchMass = info.launchMass ?? '';
88
+ this.launchSite = info.launchSite ?? '';
89
+ this.launchVehicle = info.launchVehicle ?? '';
32
90
  }
33
91
  /**
34
92
  * Returns the launch details of the satellite.
@@ -56,7 +114,7 @@ export class DetailedSatellite extends Satellite {
56
114
  }
57
115
  /**
58
116
  * Returns the space craft details.
59
- * @returns {SpaceCraftDetails} The space craft details.
117
+ * @returns The space craft details.
60
118
  */
61
119
  getSpaceCraftDetails() {
62
120
  return {
@@ -74,67 +132,5 @@ export class DetailedSatellite extends Satellite {
74
132
  dryMass: this.dryMass,
75
133
  };
76
134
  }
77
- /**
78
- * Propagates the satellite position to the given date using the SGP4 model.
79
- *
80
- * This method changes the position and time properties of the satellite object.
81
- */
82
- propagateTo(date) {
83
- const pv = this.getEci(date);
84
- this.position = pv.position;
85
- this.velocity = pv.velocity;
86
- this.totalVelocity = new Vector3D(pv.velocity.x, pv.velocity.y, pv.velocity.z).magnitude();
87
- this.time = date;
88
- return this;
89
- }
90
- /**
91
- * Sets the launch details of the satellite.
92
- * @param details - The launch details to set.
93
- */
94
- setLaunchDetails(details) {
95
- const keys = ['launchDate', 'launchMass', 'launchSite', 'launchVehicle'];
96
- keys.forEach((key) => {
97
- if (details[key]) {
98
- this[key] = details[key];
99
- }
100
- });
101
- }
102
- /**
103
- * Sets the operations details for the satellite.
104
- * @param details - The operations details to set.
105
- */
106
- setOperationsDetails(details) {
107
- const keys = ['user', 'mission', 'owner', 'country'];
108
- keys.forEach((key) => {
109
- if (details[key]) {
110
- this[key] = details[key];
111
- }
112
- });
113
- }
114
- /**
115
- * Sets the details of a spacecraft.
116
- * @param details - The details of the spacecraft to set.
117
- */
118
- setSpaceCraftDetails(details) {
119
- const keys = [
120
- 'lifetime',
121
- 'maneuver',
122
- 'manufacturer',
123
- 'motor',
124
- 'power',
125
- 'payload',
126
- 'purpose',
127
- 'shape',
128
- 'span',
129
- 'configuration',
130
- 'equipment',
131
- 'dryMass',
132
- ];
133
- keys.forEach((key) => {
134
- if (details[key]) {
135
- this[key] = details[key];
136
- }
137
- });
138
- }
139
135
  }
140
136
  //# sourceMappingURL=DetailedSatellite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DetailedSatellite.js","sourceRoot":"","sources":["../../src/objects/DetailedSatellite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAIL,SAAS,GAEV,MAAM,WAAW,CAAC;AAGnB;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,aAAa,GAAW,EAAE,CAAC;IAC3B,OAAO,GAAW,EAAE,CAAC;IACrB,OAAO,GAAW,EAAE,CAAC;IACrB,SAAS,GAAW,EAAE,CAAC;IACvB,UAAU,GAAW,EAAE,CAAC;IACxB,UAAU,GAAW,EAAE,CAAC;IACxB,UAAU,GAAW,EAAE,CAAC;IACxB,aAAa,GAAW,EAAE,CAAC;IAC3B,QAAQ,GAAoB,EAAE,CAAC;IAC/B,QAAQ,GAAW,EAAE,CAAC;IACtB,YAAY,GAAW,EAAE,CAAC;IAC1B,OAAO,GAAW,EAAE,CAAC;IACrB,GAAG,GAAW,EAAE,CAAC;IACjB,KAAK,GAAW,EAA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
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @author @thkruz Theodore Kruczek
3
- *
4
3
  * @license AGPL-3.0-or-later
5
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -17,6 +16,27 @@
17
16
  */
18
17
  import { Sensor } from 'ootk-core';
19
18
  export class DetailedSensor extends Sensor {
19
+ country;
20
+ latRad;
21
+ lonRad;
22
+ shortName;
23
+ beamwidth;
24
+ changeObjectInterval;
25
+ linkAehf;
26
+ linkGalileo;
27
+ linkIridium;
28
+ linkStarlink;
29
+ linkWgs;
30
+ static;
31
+ sensorId;
32
+ url;
33
+ volume;
34
+ zoom;
35
+ band;
36
+ objName;
37
+ uiName;
38
+ system;
39
+ operator;
20
40
  constructor(info) {
21
41
  super(info);
22
42
  this.country = info.country;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DetailedSensor.js","sourceRoot":"","sources":["../../src/objects/DetailedSensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAoD,MAAM,EAAgB,MAAM,WAAW,CAAC;AAGnG,MAAM,OAAO,cAAe,SAAQ,MAAM;IACxC,OAAO,CAAU;IACjB,MAAM,CAAU;IAChB,MAAM,CAAU;IAChB,SAAS,CAAU;IACnB,SAAS,CAAW;IACpB,oBAAoB,CAAgB;IACpC,QAAQ,CAAW;IACnB,WAAW,CAAW;IACtB,WAAW,CAAW;IACtB,YAAY,CAAW;IACvB,OAAO,CAAW;IAClB,MAAM,CAAW;IACjB,QAAQ,CAAU;IAClB,GAAG,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IAAI,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAChC,CAAC;CACF"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @author @thkruz Theodore Kruczek
3
- *
4
3
  * @license AGPL-3.0-or-later
5
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -16,8 +15,7 @@
16
15
  * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
17
16
  */
18
17
  import { BaseObject, BaseObjectParams, Degrees, Kilometers } from 'ootk-core';
19
- export interface LandObjectParams {
20
- id: number;
18
+ export interface LandObjectParams extends BaseObjectParams {
21
19
  lat: Degrees;
22
20
  lon: Degrees;
23
21
  alt: Kilometers;
@@ -25,12 +23,11 @@ export interface LandObjectParams {
25
23
  Code?: string;
26
24
  }
27
25
  export declare class LandObject extends BaseObject {
28
- id: number;
29
26
  lat: Degrees;
30
27
  lon: Degrees;
31
28
  alt: Kilometers;
32
29
  country?: string;
33
30
  Code?: string;
34
- constructor(info: LandObjectParams & BaseObjectParams);
31
+ constructor(info: LandObjectParams);
35
32
  isLandObject(): boolean;
36
33
  }
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @author @thkruz Theodore Kruczek
3
- *
4
3
  * @license AGPL-3.0-or-later
5
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -17,9 +16,16 @@
17
16
  */
18
17
  import { BaseObject } from 'ootk-core';
19
18
  export class LandObject extends BaseObject {
19
+ lat;
20
+ lon;
21
+ alt;
22
+ country;
23
+ Code;
20
24
  constructor(info) {
21
25
  super(info);
22
- Object.assign(this, info);
26
+ this.lat = info.lat;
27
+ this.lon = info.lon;
28
+ this.alt = info.alt;
23
29
  }
24
30
  isLandObject() {
25
31
  return true;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LandObject.js","sourceRoot":"","sources":["../../src/objects/LandObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAyC,MAAM,WAAW,CAAC;AAW9E,MAAM,OAAO,UAAW,SAAQ,UAAU;IACxC,GAAG,CAAU;IACb,GAAG,CAAU;IACb,GAAG,CAAa;IAChB,OAAO,CAAU;IACjB,IAAI,CAAU;IAEd,YAAY,IAAsB;QAChC,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACpB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACpB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;IACtB,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @author @thkruz Theodore Kruczek
3
- *
4
3
  * @license AGPL-3.0-or-later
5
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @author @thkruz Theodore Kruczek
3
- *
4
3
  * @license AGPL-3.0-or-later
5
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Marker.js","sourceRoot":"","sources":["../../src/objects/Marker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,2CAA2C;AAE3C,MAAM,OAAO,MAAO,SAAQ,UAAU;IACpC,QAAQ;QACN,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @author Theodore Kruczek.
3
+ * @license MIT
4
+ * @copyright (c) 2022-2024 Theodore Kruczek Permission is
5
+ * hereby granted, free of charge, to any person obtaining a copy of this
6
+ * software and associated documentation files (the "Software"), to deal in the
7
+ * Software without restriction, including without limitation the rights to use,
8
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ * the Software, and to permit persons to whom the Software is furnished to do
10
+ * so, subject to the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice shall be included in
13
+ * all copies or substantial portions of the Software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ * SOFTWARE.
22
+ */
23
+ import { Degrees, Radians, Sensor } from 'ootk-core';
24
+ import { RfSensorParams } from '../main';
25
+ export declare class RfSensor extends Sensor {
26
+ coneHalfAngle: Degrees;
27
+ boresightAz: Degrees;
28
+ boresightEl: Degrees;
29
+ constructor(info: RfSensorParams);
30
+ uvFromAzEl(az: Degrees, el: Degrees): {
31
+ u: number;
32
+ v: number;
33
+ };
34
+ azElFromUV(u: number, v: number): {
35
+ az: Degrees;
36
+ el: Degrees;
37
+ };
38
+ get boresightAzRad(): Radians;
39
+ get boresightElRad(): Radians;
40
+ get coneHalfAngleRad(): Radians;
41
+ }
@@ -0,0 +1,67 @@
1
+ /**
2
+ * @author Theodore Kruczek.
3
+ * @license MIT
4
+ * @copyright (c) 2022-2024 Theodore Kruczek Permission is
5
+ * hereby granted, free of charge, to any person obtaining a copy of this
6
+ * software and associated documentation files (the "Software"), to deal in the
7
+ * Software without restriction, including without limitation the rights to use,
8
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ * the Software, and to permit persons to whom the Software is furnished to do
10
+ * so, subject to the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice shall be included in
13
+ * all copies or substantial portions of the Software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ * SOFTWARE.
22
+ */
23
+ import { DEG2RAD, RAD2DEG, Sensor, SpaceObjectType } from 'ootk-core';
24
+ import { azel2uv, uv2azel } from '../main';
25
+ export class RfSensor extends Sensor {
26
+ coneHalfAngle;
27
+ boresightAz;
28
+ boresightEl;
29
+ constructor(info) {
30
+ super(info);
31
+ switch (info.type) {
32
+ case SpaceObjectType.BISTATIC_RADIO_TELESCOPE:
33
+ case SpaceObjectType.MECHANICAL:
34
+ case SpaceObjectType.PHASED_ARRAY_RADAR:
35
+ break;
36
+ default:
37
+ throw new Error('Invalid sensor type');
38
+ }
39
+ this.coneHalfAngle = info.coneHalfAngle;
40
+ this.boresightAz = info.boresightAz;
41
+ this.boresightEl = info.boresightEl;
42
+ }
43
+ uvFromAzEl(az, el) {
44
+ const azRad = (az * DEG2RAD);
45
+ const elRad = (el * DEG2RAD);
46
+ const azDiff = (azRad - this.boresightAzRad);
47
+ const elDiff = (elRad - this.boresightElRad);
48
+ return azel2uv(azDiff, elDiff, this.coneHalfAngleRad);
49
+ }
50
+ azElFromUV(u, v) {
51
+ const { az, el } = uv2azel(u, v, this.coneHalfAngleRad);
52
+ return {
53
+ az: ((az + this.boresightAz) * RAD2DEG),
54
+ el: ((el + this.boresightEl) * RAD2DEG),
55
+ };
56
+ }
57
+ get boresightAzRad() {
58
+ return (this.boresightAz * DEG2RAD);
59
+ }
60
+ get boresightElRad() {
61
+ return (this.boresightEl * DEG2RAD);
62
+ }
63
+ get coneHalfAngleRad() {
64
+ return (this.coneHalfAngle * DEG2RAD);
65
+ }
66
+ }
67
+ //# sourceMappingURL=RfSensor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RfSensor.js","sourceRoot":"","sources":["../../src/objects/RfSensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,OAAO,EAAW,OAAO,EAAW,MAAM,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAkB,MAAM,SAAS,CAAC;AAE3D,MAAM,OAAO,QAAS,SAAQ,MAAM;IAClC,aAAa,CAAU;IACvB,WAAW,CAAU;IACrB,WAAW,CAAU;IAErB,YAAY,IAAoB;QA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GAAG,OAAO,CAAY,CAAC;IACjD,CAAC;IAED,IAAI,cAAc;QAChB,OAAO,CAAC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAY,CAAC;IACjD,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,CAAC,IAAI,CAAC,aAAa,GAAG,OAAO,CAAY,CAAC;IACnD,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
- export { BaseObject, Satellite, Sensor, Star } from 'ootk-core';
2
1
  export { DetailedSatellite } from './DetailedSatellite';
3
2
  export { DetailedSensor } from './DetailedSensor';
4
3
  export { LandObject } from './LandObject';
5
4
  export { Marker } from './Marker';
5
+ export { RfSensor } from './RfSensor';
@@ -1,6 +1,6 @@
1
- export { BaseObject, Satellite, Sensor, Star } from 'ootk-core';
2
1
  export { DetailedSatellite } from './DetailedSatellite';
3
2
  export { DetailedSensor } from './DetailedSensor';
4
3
  export { LandObject } from './LandObject';
5
4
  export { Marker } from './Marker';
5
+ export { RfSensor } from './RfSensor';
6
6
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @author @thkruz Theodore Kruczek
3
- *
4
3
  * @license AGPL-3.0-or-later
5
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -19,33 +18,72 @@ import { EpochUTC, J2000, Matrix, Vector, Vector3D } from 'ootk-core';
19
18
  import { Propagator } from '../propagator/Propagator';
20
19
  import { RandomGaussianSource } from './../operations/RandomGaussianSource';
21
20
  import { PropagatorPairs } from './PropagatorPairs';
21
+ /**
22
+ * Observation data.
23
+ */
22
24
  export declare abstract class Observation {
25
+ /** Observation epoch. */
23
26
  abstract get epoch(): EpochUTC;
27
+ /** Inertial observer location. */
24
28
  abstract get site(): J2000;
29
+ /** Observation noise matrix. */
25
30
  abstract get noise(): Matrix;
26
31
  /**
27
32
  * Return range-normalized cross line-of-sight residual for the observation
28
33
  * when compared against a nominal state propagator.
34
+ * @param propagator Propagator to compare against.
35
+ * @throws Not implemented.
29
36
  */
30
37
  clos(propagator: Propagator): number;
31
38
  /**
32
39
  * Return relative state residual for the observation when compared against
33
40
  * a nominal state propagator.
41
+ * @param propagator Propagator to compare against.
42
+ * @throws Not implemented.
34
43
  */
35
44
  ricDiff(propagator: Propagator): Vector3D;
45
+ /**
46
+ * Convert this observation to vector form.
47
+ * @throws Not implemented.
48
+ */
36
49
  toVector(): Vector;
50
+ /**
51
+ * Compute the state derivative matrix for this observation.
52
+ * @param propPairs Propagator pairs to compare against.
53
+ * @throws Not implemented.
54
+ */
37
55
  jacobian(propPairs: PropagatorPairs): Matrix;
56
+ /**
57
+ * Compute the state residual matrix for this observation.
58
+ * @param propagator Propagator to compare against.
59
+ * @throws Not implemented.
60
+ */
38
61
  residual(propagator: Propagator): Matrix;
62
+ /**
63
+ * Convert this observation's noise matrix into a covariance matrix.
64
+ * @returns A matrix representing the noise covariance.
65
+ */
39
66
  noiseCovariance(): Matrix;
40
- _noiseSample(sigma: number): Matrix;
67
+ /**
68
+ * Generates a noise sample from the noise covariance matrix.
69
+ * @param sigma - The scaling factor for the noise covariance matrix.
70
+ * @returns A matrix representing the noise sample.
71
+ */
72
+ noiseSample_(sigma: number): Matrix;
41
73
  /**
42
74
  * Randomly sample this observation in vector form within the
43
75
  * observation noise.
76
+ * @param random Random number generator.
77
+ * @param sigma Sigma value to scale the noise by.
78
+ * @returns Sampled observation.
44
79
  */
45
80
  sampleVector(random: RandomGaussianSource, sigma: number): Vector;
46
81
  /**
47
82
  * Randomly sample this observation within the observation noise, scaled to
48
- * the provided [sigma] value.
83
+ * the provided sigma value.
84
+ * @param random Random number generator.
85
+ * @param sigma Sigma value to scale the noise by.
86
+ * @throws Not implemented.
49
87
  */
50
88
  sample(random: RandomGaussianSource, sigma?: number): Observation;
51
89
  }