ootk 5.0.0 → 5.1.1
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.
- package/CHANGELOG.md +42 -3
- package/README.md +59 -45
- package/dist/body/Celestial.d.ts +19 -19
- package/dist/body/Celestial.js +19 -19
- package/dist/body/Earth.d.ts +18 -18
- package/dist/body/Earth.js +18 -18
- package/dist/body/NutationAngles.d.ts +18 -18
- package/dist/body/NutationAngles.js +18 -18
- package/dist/body/PrecessionAngles.d.ts +18 -18
- package/dist/body/PrecessionAngles.js +18 -18
- package/dist/body/Sun.d.ts +14 -18
- package/dist/body/Sun.js +14 -18
- package/dist/body/Sun.js.map +1 -1
- package/dist/body/index.d.ts +18 -18
- package/dist/body/index.js +18 -18
- package/dist/coordinate/ClassicalElements.d.ts +21 -21
- package/dist/coordinate/ClassicalElements.js +20 -20
- package/dist/coordinate/ClassicalElements.js.map +1 -1
- package/dist/coordinate/EquinoctialElements.d.ts +20 -20
- package/dist/coordinate/EquinoctialElements.js +18 -18
- package/dist/coordinate/EquinoctialElements.js.map +1 -1
- package/dist/coordinate/FormatTle.d.ts +19 -19
- package/dist/coordinate/FormatTle.js +18 -18
- package/dist/coordinate/FormatTle.js.map +1 -1
- package/dist/coordinate/Geodetic.d.ts +18 -18
- package/dist/coordinate/Geodetic.js +18 -18
- package/dist/coordinate/Hill.d.ts +2 -2
- package/dist/coordinate/Hill.js +2 -2
- package/dist/coordinate/ITRF.d.ts +18 -18
- package/dist/coordinate/ITRF.js +19 -19
- package/dist/coordinate/ITRF.js.map +1 -1
- package/dist/coordinate/J2000.d.ts +18 -18
- package/dist/coordinate/J2000.js +18 -18
- package/dist/coordinate/J2000.js.map +1 -1
- package/dist/coordinate/RIC.d.ts +18 -18
- package/dist/coordinate/RIC.js +18 -18
- package/dist/coordinate/RelativeState.d.ts +18 -18
- package/dist/coordinate/RelativeState.js +18 -18
- package/dist/coordinate/StateVector.d.ts +19 -19
- package/dist/coordinate/StateVector.js +19 -19
- package/dist/coordinate/StateVector.js.map +1 -1
- package/dist/coordinate/TEME.d.ts +18 -18
- package/dist/coordinate/TEME.js +18 -18
- package/dist/coordinate/TEME.js.map +1 -1
- package/dist/coordinate/Tle.d.ts +22 -23
- package/dist/coordinate/Tle.js +22 -22
- package/dist/coordinate/Tle.js.map +1 -1
- package/dist/coordinate/index.js +0 -1
- package/dist/coordinate/index.js.map +1 -1
- package/dist/coordinate/tle-format-data.d.ts +18 -18
- package/dist/coordinate/tle-format-data.js +18 -18
- package/dist/covariance/CovarianceSample.d.ts +10 -7
- package/dist/covariance/CovarianceSample.js +93 -19
- package/dist/covariance/CovarianceSample.js.map +1 -1
- package/dist/covariance/StateCovariance.d.ts +2 -2
- package/dist/covariance/StateCovariance.js +2 -2
- package/dist/covariance/index.d.ts +2 -0
- package/dist/covariance/index.js +3 -0
- package/dist/covariance/index.js.map +1 -0
- package/dist/data/DataHandler.d.ts +18 -18
- package/dist/data/DataHandler.js +18 -18
- package/dist/data/values/Egm96Data.d.ts +18 -18
- package/dist/data/values/Egm96Data.js +18 -18
- package/dist/data/values/Egm96Data.js.map +1 -1
- package/dist/data/values/HpAtmosphereData.d.ts +18 -18
- package/dist/data/values/HpAtmosphereData.js +20 -20
- package/dist/data/values/HpAtmosphereData.js.map +1 -1
- package/dist/data/values/HpAtmosphereResult.d.ts +18 -18
- package/dist/data/values/HpAtmosphereResult.js +18 -18
- package/dist/data/values/Iau1980Data.d.ts +18 -18
- package/dist/data/values/Iau1980Data.js +18 -18
- package/dist/data/values/Iau1980Data.js.map +1 -1
- package/dist/data/values/LeapSecond.d.ts +18 -18
- package/dist/data/values/LeapSecond.js +18 -18
- package/dist/data/values/LeapSecondData.d.ts +18 -18
- package/dist/data/values/LeapSecondData.js +22 -22
- package/dist/data/values/LeapSecondData.js.map +1 -1
- package/dist/data/values/egm96.d.ts +18 -18
- package/dist/data/values/egm96.js +18 -18
- package/dist/data/values/hpAtmosphere.d.ts +18 -18
- package/dist/data/values/hpAtmosphere.js +18 -18
- package/dist/data/values/iau1980.d.ts +18 -18
- package/dist/data/values/iau1980.js +18 -18
- package/dist/enums/AngularDiameterMethod.d.ts +18 -18
- package/dist/enums/AngularDiameterMethod.js +18 -18
- package/dist/enums/AngularDistanceMethod.d.ts +18 -18
- package/dist/enums/AngularDistanceMethod.js +18 -18
- package/dist/enums/OrbitRegime.d.ts +18 -18
- package/dist/enums/OrbitRegime.js +18 -18
- package/dist/enums/PassType.d.ts +18 -18
- package/dist/enums/PassType.js +18 -18
- package/dist/enums/Sgp4OpsMode.d.ts +18 -18
- package/dist/enums/Sgp4OpsMode.js +18 -18
- package/dist/force/AtmosphericDrag.d.ts +2 -2
- package/dist/force/AtmosphericDrag.js +3 -6
- package/dist/force/AtmosphericDrag.js.map +1 -1
- package/dist/force/EarthGravity.d.ts +2 -2
- package/dist/force/EarthGravity.js +2 -2
- package/dist/force/Force.d.ts +2 -2
- package/dist/force/Force.js +2 -2
- package/dist/force/ForceModel.d.ts +2 -2
- package/dist/force/ForceModel.js +2 -2
- package/dist/force/Gravity.d.ts +2 -2
- package/dist/force/Gravity.js +2 -2
- package/dist/force/SolarRadiationPressure.d.ts +2 -2
- package/dist/force/SolarRadiationPressure.js +2 -2
- package/dist/force/ThirdBodyGravity.d.ts +2 -2
- package/dist/force/ThirdBodyGravity.js +2 -2
- package/dist/force/Thrust.d.ts +2 -2
- package/dist/force/Thrust.js +2 -2
- package/dist/interfaces/BaseObjectParams.d.ts +18 -18
- package/dist/interfaces/BaseObjectParams.js +18 -18
- package/dist/interfaces/ClassicalElementsParams.d.ts +18 -18
- package/dist/interfaces/ClassicalElementsParams.js +18 -18
- package/dist/interfaces/EquinoctialElementsParams.d.ts +18 -18
- package/dist/interfaces/EquinoctialElementsParams.js +18 -18
- package/dist/interfaces/GroundPositionParams.d.ts +18 -18
- package/dist/interfaces/GroundPositionParams.js +18 -18
- package/dist/interpolator/ChebyshevCoefficients.d.ts +5 -5
- package/dist/interpolator/ChebyshevCoefficients.js +2 -2
- package/dist/interpolator/ChebyshevCoefficients.js.map +1 -1
- package/dist/interpolator/ChebyshevInterpolator.d.ts +3 -3
- package/dist/interpolator/ChebyshevInterpolator.js +9 -9
- package/dist/interpolator/ChebyshevInterpolator.js.map +1 -1
- package/dist/interpolator/CubicSpline.d.ts +2 -2
- package/dist/interpolator/CubicSpline.js +2 -2
- package/dist/interpolator/CubicSplineInterpolator.d.ts +4 -4
- package/dist/interpolator/CubicSplineInterpolator.js +10 -10
- package/dist/interpolator/CubicSplineInterpolator.js.map +1 -1
- package/dist/interpolator/FieldInterpolator.d.ts +2 -2
- package/dist/interpolator/FieldInterpolator.js +2 -2
- package/dist/interpolator/Interpolator.d.ts +2 -2
- package/dist/interpolator/Interpolator.js +2 -2
- package/dist/interpolator/LagrangeInterpolator.d.ts +7 -7
- package/dist/interpolator/LagrangeInterpolator.js +2 -2
- package/dist/interpolator/LagrangeInterpolator.js.map +1 -1
- package/dist/interpolator/StateInterpolator.d.ts +2 -2
- package/dist/interpolator/StateInterpolator.js +2 -2
- package/dist/interpolator/VerletBlendInterpolator.d.ts +2 -2
- package/dist/interpolator/VerletBlendInterpolator.js +2 -2
- package/dist/main.d.ts +5 -3
- package/dist/main.js +5 -3
- package/dist/main.js.map +1 -1
- package/dist/maneuver/TwoBurnOrbitTransfer.d.ts +3 -3
- package/dist/maneuver/TwoBurnOrbitTransfer.js +3 -3
- package/dist/maneuver/TwoBurnOrbitTransfer.js.map +1 -1
- package/dist/maneuver/Waypoint.d.ts +3 -3
- package/dist/maneuver/Waypoint.js +3 -3
- package/dist/maneuver/Waypoint.js.map +1 -1
- package/dist/objects/BaseObject.d.ts +18 -18
- package/dist/objects/BaseObject.js +18 -18
- package/dist/objects/DetailedSatellite.d.ts +3 -3
- package/dist/objects/DetailedSatellite.js +7 -5
- package/dist/objects/DetailedSatellite.js.map +1 -1
- package/dist/objects/DetailedSensor.d.ts +4 -4
- package/dist/objects/DetailedSensor.js +2 -2
- package/dist/objects/DetailedSensor.js.map +1 -1
- package/dist/objects/GroundObject.d.ts +19 -19
- package/dist/objects/GroundObject.js +19 -19
- package/dist/objects/GroundObject.js.map +1 -1
- package/dist/objects/LandObject.d.ts +3 -3
- package/dist/objects/LandObject.js +2 -2
- package/dist/objects/LandObject.js.map +1 -1
- package/dist/objects/Marker.d.ts +2 -2
- package/dist/objects/Marker.js +2 -2
- package/dist/objects/Satellite.d.ts +19 -19
- package/dist/objects/Satellite.js +22 -22
- package/dist/objects/Satellite.js.map +1 -1
- package/dist/objects/Sensor.d.ts +19 -20
- package/dist/objects/Sensor.js +19 -20
- package/dist/objects/Sensor.js.map +1 -1
- package/dist/objects/Star.d.ts +18 -18
- package/dist/objects/Star.js +18 -18
- package/dist/observation/Observation.d.ts +2 -2
- package/dist/observation/Observation.js +2 -2
- package/dist/observation/ObservationOptical.d.ts +6 -6
- package/dist/observation/ObservationOptical.js +9 -9
- package/dist/observation/ObservationOptical.js.map +1 -1
- package/dist/observation/ObservationRadar.d.ts +6 -6
- package/dist/observation/ObservationRadar.js +9 -9
- package/dist/observation/ObservationRadar.js.map +1 -1
- package/dist/observation/ObservationUtils.d.ts +3 -3
- package/dist/observation/ObservationUtils.js +3 -3
- package/dist/observation/ObservationUtils.js.map +1 -1
- package/dist/observation/PropagatorPairs.d.ts +5 -5
- package/dist/observation/PropagatorPairs.js +8 -8
- package/dist/observation/PropagatorPairs.js.map +1 -1
- package/dist/observation/RAE.d.ts +18 -18
- package/dist/observation/RAE.js +18 -19
- package/dist/observation/RAE.js.map +1 -1
- package/dist/observation/RadecGeocentric.d.ts +19 -19
- package/dist/observation/RadecGeocentric.js +18 -18
- package/dist/observation/RadecGeocentric.js.map +1 -1
- package/dist/observation/RadecTopocentric.d.ts +19 -19
- package/dist/observation/RadecTopocentric.js +18 -18
- package/dist/observation/RadecTopocentric.js.map +1 -1
- package/dist/observation/index.d.ts +18 -18
- package/dist/observation/index.js +18 -18
- package/dist/operations/BoxMuller.d.ts +2 -2
- package/dist/operations/BoxMuller.js +2 -2
- package/dist/operations/EulerAngles.d.ts +2 -2
- package/dist/operations/EulerAngles.js +2 -2
- package/dist/operations/Matrix.d.ts +19 -19
- package/dist/operations/Matrix.js +64 -64
- package/dist/operations/Matrix.js.map +1 -1
- package/dist/operations/Quaternion.d.ts +7 -7
- package/dist/operations/Quaternion.js +2 -2
- package/dist/operations/Quaternion.js.map +1 -1
- package/dist/operations/Random.d.ts +18 -18
- package/dist/operations/Random.js +18 -18
- package/dist/operations/RandomGaussianSource.d.ts +3 -3
- package/dist/operations/RandomGaussianSource.js +5 -5
- package/dist/operations/RandomGaussianSource.js.map +1 -1
- package/dist/operations/Vector.d.ts +19 -19
- package/dist/operations/Vector.js +25 -25
- package/dist/operations/Vector.js.map +1 -1
- package/dist/operations/Vector3D.d.ts +18 -18
- package/dist/operations/Vector3D.js +18 -18
- package/dist/operations/operations.d.ts +18 -18
- package/dist/operations/operations.js +18 -18
- package/dist/optimize/ChebyshevCompressor.d.ts +4 -4
- package/dist/optimize/ChebyshevCompressor.js +8 -8
- package/dist/optimize/ChebyshevCompressor.js.map +1 -1
- package/dist/optimize/DownhillSimplex.d.ts +2 -2
- package/dist/optimize/DownhillSimplex.js +2 -2
- package/dist/optimize/GoldenSection.d.ts +3 -3
- package/dist/optimize/GoldenSection.js +4 -4
- package/dist/optimize/PolynomialRegression.d.ts +2 -2
- package/dist/optimize/PolynomialRegression.js +2 -2
- package/dist/optimize/PolynomicalRegressionResult.d.ts +2 -2
- package/dist/optimize/PolynomicalRegressionResult.js +2 -2
- package/dist/optimize/SimpleLinearRegression.d.ts +2 -2
- package/dist/optimize/SimpleLinearRegression.js +2 -2
- package/dist/optimize/SimplexEntry.d.ts +5 -5
- package/dist/optimize/SimplexEntry.js +11 -11
- package/dist/optimize/SimplexEntry.js.map +1 -1
- package/dist/orbit_determination/BatchLeastSquaresOD.d.ts +11 -11
- package/dist/orbit_determination/BatchLeastSquaresOD.js +2 -2
- package/dist/orbit_determination/BatchLeastSquaresOD.js.map +1 -1
- package/dist/orbit_determination/BatchLeastSquaresResult.d.ts +2 -2
- package/dist/orbit_determination/BatchLeastSquaresResult.js +2 -2
- package/dist/orbit_determination/GibbsIOD.d.ts +2 -2
- package/dist/orbit_determination/GibbsIOD.js +2 -2
- package/dist/orbit_determination/GoodingIOD.d.ts +2 -2
- package/dist/orbit_determination/GoodingIOD.js +3 -3
- package/dist/orbit_determination/GoodingIOD.js.map +1 -1
- package/dist/orbit_determination/HerrickGibbsIOD.d.ts +2 -2
- package/dist/orbit_determination/HerrickGibbsIOD.js +2 -2
- package/dist/orbit_determination/LambertIOD.d.ts +2 -2
- package/dist/orbit_determination/LambertIOD.js +2 -2
- package/dist/orbit_determination/ModifiedGoodingIOD.d.ts +4 -4
- package/dist/orbit_determination/ModifiedGoodingIOD.js +3 -3
- package/dist/orbit_determination/ModifiedGoodingIOD.js.map +1 -1
- package/dist/propagator/DormandPrince54Propagator.d.ts +6 -6
- package/dist/propagator/DormandPrince54Propagator.js +10 -10
- package/dist/propagator/DormandPrince54Propagator.js.map +1 -1
- package/dist/propagator/KeplerPropagator.d.ts +7 -7
- package/dist/propagator/KeplerPropagator.js +32 -32
- package/dist/propagator/KeplerPropagator.js.map +1 -1
- package/dist/propagator/Propagator.d.ts +3 -3
- package/dist/propagator/Propagator.js +3 -3
- package/dist/propagator/Propagator.js.map +1 -1
- package/dist/propagator/RkCheckpoint.d.ts +2 -2
- package/dist/propagator/RkCheckpoint.js +2 -2
- package/dist/propagator/RkResult.d.ts +2 -2
- package/dist/propagator/RkResult.js +2 -2
- package/dist/propagator/RungeKutta4Propagator.d.ts +4 -4
- package/dist/propagator/RungeKutta4Propagator.js +3 -3
- package/dist/propagator/RungeKutta4Propagator.js.map +1 -1
- package/dist/propagator/RungeKutta89Propagator.d.ts +6 -6
- package/dist/propagator/RungeKutta89Propagator.js +2 -2
- package/dist/propagator/RungeKutta89Propagator.js.map +1 -1
- package/dist/propagator/RungeKuttaAdaptive.d.ts +5 -5
- package/dist/propagator/RungeKuttaAdaptive.js +3 -3
- package/dist/propagator/RungeKuttaAdaptive.js.map +1 -1
- package/dist/propagator/Sgp4Propagator.d.ts +7 -7
- package/dist/propagator/Sgp4Propagator.js +16 -16
- package/dist/propagator/Sgp4Propagator.js.map +1 -1
- package/dist/sgp4/index.d.ts +18 -18
- package/dist/sgp4/index.js +18 -18
- package/dist/sgp4/sgp4.d.ts +18 -21
- package/dist/sgp4/sgp4.js +27 -24
- package/dist/sgp4/sgp4.js.map +1 -1
- package/dist/smoothing/ExponentialSmoothing.d.ts +2 -2
- package/dist/smoothing/ExponentialSmoothing.js +2 -2
- package/dist/time/Epoch.d.ts +18 -18
- package/dist/time/Epoch.js +18 -18
- package/dist/time/EpochGPS.d.ts +19 -19
- package/dist/time/EpochGPS.js +19 -19
- package/dist/time/EpochGPS.js.map +1 -1
- package/dist/time/EpochTAI.d.ts +18 -18
- package/dist/time/EpochTAI.js +18 -18
- package/dist/time/EpochTDB.d.ts +18 -18
- package/dist/time/EpochTDB.js +18 -18
- package/dist/time/EpochTT.d.ts +18 -18
- package/dist/time/EpochTT.js +18 -18
- package/dist/time/EpochUTC.d.ts +18 -18
- package/dist/time/EpochUTC.js +18 -18
- package/dist/time/EpochUTC.js.map +1 -1
- package/dist/time/EpochWindow.d.ts +18 -18
- package/dist/time/EpochWindow.js +18 -18
- package/dist/time/TimeStamped.d.ts +18 -22
- package/dist/time/TimeStamped.js +18 -22
- package/dist/time/TimeStamped.js.map +1 -1
- package/dist/time/index.d.ts +0 -22
- package/dist/time/index.js +0 -22
- package/dist/time/index.js.map +1 -1
- package/dist/transforms/TransformCache.d.ts +18 -18
- package/dist/transforms/TransformCache.js +18 -18
- package/dist/transforms/conversions.d.ts +18 -18
- package/dist/transforms/conversions.js +18 -18
- package/dist/types/types.d.ts +2 -2
- package/dist/types/types.js +1 -1
- package/dist/utils/create-covariance-from-tle.d.ts +18 -0
- package/dist/utils/create-covariance-from-tle.js +57 -0
- package/dist/utils/create-covariance-from-tle.js.map +1 -0
- package/dist/utils/functions.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/jacobian.d.ts +6 -0
- package/dist/utils/jacobian.js +6 -1
- package/dist/utils/jacobian.js.map +1 -1
- package/package.json +1 -2
- package/src/body/Celestial.ts +19 -19
- package/src/body/Earth.ts +18 -18
- package/src/body/NutationAngles.ts +18 -18
- package/src/body/PrecessionAngles.ts +18 -18
- package/src/body/Sun.ts +14 -18
- package/src/body/index.ts +19 -18
- package/src/coordinate/ClassicalElements.ts +28 -22
- package/src/coordinate/EquinoctialElements.ts +20 -20
- package/src/coordinate/FormatTle.ts +19 -19
- package/src/coordinate/Geodetic.ts +18 -18
- package/src/coordinate/Hill.ts +2 -2
- package/src/coordinate/ITRF.ts +19 -19
- package/src/coordinate/J2000.ts +19 -19
- package/src/coordinate/RIC.ts +18 -18
- package/src/coordinate/RelativeState.ts +18 -18
- package/src/coordinate/StateVector.ts +26 -20
- package/src/coordinate/TEME.ts +19 -19
- package/src/coordinate/Tle.ts +27 -27
- package/src/coordinate/index.ts +0 -1
- package/src/coordinate/tle-format-data.ts +18 -18
- package/src/covariance/CovarianceSample.ts +119 -21
- package/src/covariance/StateCovariance.ts +2 -2
- package/src/covariance/index.ts +2 -0
- package/src/data/DataHandler.ts +18 -18
- package/src/data/values/Egm96Data.ts +19 -19
- package/src/data/values/HpAtmosphereData.ts +21 -21
- package/src/data/values/HpAtmosphereResult.ts +18 -18
- package/src/data/values/Iau1980Data.ts +19 -19
- package/src/data/values/LeapSecond.ts +18 -18
- package/src/data/values/LeapSecondData.ts +24 -24
- package/src/data/values/egm96.ts +18 -18
- package/src/data/values/hpAtmosphere.ts +18 -18
- package/src/data/values/iau1980.ts +18 -18
- package/src/enums/AngularDiameterMethod.ts +18 -18
- package/src/enums/AngularDistanceMethod.ts +18 -18
- package/src/enums/OrbitRegime.ts +18 -18
- package/src/enums/PassType.ts +18 -18
- package/src/enums/Sgp4OpsMode.ts +18 -18
- package/src/force/AtmosphericDrag.ts +2 -4
- package/src/force/EarthGravity.ts +2 -2
- package/src/force/Force.ts +2 -2
- package/src/force/ForceModel.ts +2 -2
- package/src/force/Gravity.ts +2 -2
- package/src/force/SolarRadiationPressure.ts +2 -2
- package/src/force/ThirdBodyGravity.ts +2 -2
- package/src/force/Thrust.ts +2 -2
- package/src/interfaces/BaseObjectParams.ts +18 -18
- package/src/interfaces/ClassicalElementsParams.ts +18 -18
- package/src/interfaces/EquinoctialElementsParams.ts +18 -18
- package/src/interfaces/GroundPositionParams.ts +18 -18
- package/src/interpolator/ChebyshevCoefficients.ts +5 -5
- package/src/interpolator/ChebyshevInterpolator.ts +10 -10
- package/src/interpolator/CubicSpline.ts +2 -2
- package/src/interpolator/CubicSplineInterpolator.ts +8 -8
- package/src/interpolator/FieldInterpolator.ts +2 -2
- package/src/interpolator/Interpolator.ts +2 -2
- package/src/interpolator/LagrangeInterpolator.ts +7 -7
- package/src/interpolator/StateInterpolator.ts +2 -2
- package/src/interpolator/VerletBlendInterpolator.ts +2 -2
- package/src/main.ts +24 -3
- package/src/maneuver/TwoBurnOrbitTransfer.ts +3 -3
- package/src/maneuver/Waypoint.ts +4 -4
- package/src/objects/BaseObject.ts +18 -18
- package/src/objects/DetailedSatellite.ts +9 -8
- package/src/objects/DetailedSensor.ts +4 -4
- package/src/objects/GroundObject.ts +23 -23
- package/src/objects/LandObject.ts +3 -3
- package/src/objects/Marker.ts +2 -2
- package/src/objects/Satellite.ts +24 -24
- package/src/objects/Sensor.ts +19 -20
- package/src/objects/Star.ts +18 -18
- package/src/observation/Observation.ts +2 -2
- package/src/observation/ObservationOptical.ts +7 -7
- package/src/observation/ObservationRadar.ts +10 -6
- package/src/observation/ObservationUtils.ts +3 -3
- package/src/observation/PropagatorPairs.ts +4 -4
- package/src/observation/RAE.ts +18 -19
- package/src/observation/RadecGeocentric.ts +19 -19
- package/src/observation/RadecTopocentric.ts +19 -19
- package/src/observation/index.ts +19 -18
- package/src/operations/BoxMuller.ts +2 -2
- package/src/operations/EulerAngles.ts +2 -2
- package/src/operations/Matrix.ts +67 -67
- package/src/operations/Quaternion.ts +7 -7
- package/src/operations/Random.ts +18 -18
- package/src/operations/RandomGaussianSource.ts +5 -5
- package/src/operations/Vector.ts +25 -25
- package/src/operations/Vector3D.ts +18 -18
- package/src/operations/operations.ts +19 -18
- package/src/optimize/ChebyshevCompressor.ts +7 -7
- package/src/optimize/DownhillSimplex.ts +2 -2
- package/src/optimize/GoldenSection.ts +4 -4
- package/src/optimize/PolynomialRegression.ts +2 -2
- package/src/optimize/PolynomicalRegressionResult.ts +2 -2
- package/src/optimize/SimpleLinearRegression.ts +2 -2
- package/src/optimize/SimplexEntry.ts +9 -9
- package/src/orbit_determination/BatchLeastSquaresOD.ts +11 -11
- package/src/orbit_determination/BatchLeastSquaresResult.ts +2 -2
- package/src/orbit_determination/GibbsIOD.ts +2 -2
- package/src/orbit_determination/GoodingIOD.ts +3 -3
- package/src/orbit_determination/HerrickGibbsIOD.ts +2 -2
- package/src/orbit_determination/LambertIOD.ts +2 -2
- package/src/orbit_determination/ModifiedGoodingIOD.ts +5 -5
- package/src/propagator/DormandPrince54Propagator.ts +10 -10
- package/src/propagator/KeplerPropagator.ts +32 -32
- package/src/propagator/Propagator.ts +3 -3
- package/src/propagator/RkCheckpoint.ts +2 -2
- package/src/propagator/RkResult.ts +2 -2
- package/src/propagator/RungeKutta4Propagator.ts +4 -4
- package/src/propagator/RungeKutta89Propagator.ts +6 -6
- package/src/propagator/RungeKuttaAdaptive.ts +6 -6
- package/src/propagator/Sgp4Propagator.ts +15 -15
- package/src/sgp4/index.ts +19 -18
- package/src/sgp4/sgp4.LICENSE.md +2 -2
- package/src/sgp4/sgp4.ts +22 -25
- package/src/smoothing/ExponentialSmoothing.ts +2 -2
- package/src/time/Epoch.ts +18 -18
- package/src/time/EpochGPS.ts +21 -21
- package/src/time/EpochTAI.ts +18 -18
- package/src/time/EpochTDB.ts +18 -18
- package/src/time/EpochTT.ts +18 -18
- package/src/time/EpochUTC.ts +20 -20
- package/src/time/EpochWindow.ts +18 -18
- package/src/time/TimeStamped.ts +18 -22
- package/src/time/index.ts +0 -23
- package/src/transforms/TransformCache.ts +18 -18
- package/src/transforms/conversions.ts +18 -18
- package/src/types/types.ts +2 -2
- package/src/utils/create-covariance-from-tle.ts +75 -0
- package/src/utils/functions.ts +3 -3
- package/src/utils/index.ts +1 -0
- package/src/utils/jacobian.ts +6 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { EpochUTC, Seconds, Vector3D } from '../main.js';
|
|
19
18
|
import { StateInterpolator } from '../interpolator/StateInterpolator.js';
|
|
19
|
+
import { EpochUTC, Seconds, Vector3D } from '../main.js';
|
|
20
20
|
import { ChebyshevCoefficients } from './../interpolator/ChebyshevCoefficients.js';
|
|
21
21
|
import { ChebyshevInterpolator } from './../interpolator/ChebyshevInterpolator.js';
|
|
22
22
|
|
|
23
23
|
// / Ephemeris compressor.
|
|
24
24
|
export class ChebyshevCompressor {
|
|
25
25
|
// / Create a new [ChebyshevCompressor] object from an [Interpolator].
|
|
26
|
-
constructor(private
|
|
26
|
+
constructor(private readonly interpolator_: StateInterpolator) {
|
|
27
27
|
// Do nothing.
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -41,7 +41,7 @@ export class ChebyshevCompressor {
|
|
|
41
41
|
for (let i = 0; i < n; i++) {
|
|
42
42
|
const x = ChebyshevCompressor._cosPi((i + h) / n);
|
|
43
43
|
const seconds = x * (h * (b - a)) + h * (b + a) as Seconds;
|
|
44
|
-
const state = this.
|
|
44
|
+
const state = this.interpolator_.interpolate(new EpochUTC(seconds))!;
|
|
45
45
|
const fx = state.position.x;
|
|
46
46
|
const fy = state.position.y;
|
|
47
47
|
const fz = state.position.z;
|
|
@@ -78,8 +78,8 @@ export class ChebyshevCompressor {
|
|
|
78
78
|
* @returns A new [ChebyshevInterpolator] object.
|
|
79
79
|
*/
|
|
80
80
|
compress(cpr = 21): ChebyshevInterpolator {
|
|
81
|
-
const { start, end } = this.
|
|
82
|
-
const period = this.
|
|
81
|
+
const { start, end } = this.interpolator_.window();
|
|
82
|
+
const period = this.interpolator_.interpolate(start)!.period;
|
|
83
83
|
const coefficients: ChebyshevCoefficients[] = [];
|
|
84
84
|
let current = start;
|
|
85
85
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -21,7 +21,7 @@ import { DifferentiableFunction } from '../main.js';
|
|
|
21
21
|
export class GoldenSection {
|
|
22
22
|
private static readonly _grInv: number = 1.0 / (0.5 * (Math.sqrt(5) + 1));
|
|
23
23
|
|
|
24
|
-
private static
|
|
24
|
+
private static check_(fc: number, fd: number, solveMax: boolean): boolean {
|
|
25
25
|
return solveMax ? fc > fd : fc < fd;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -57,7 +57,7 @@ export class GoldenSection {
|
|
|
57
57
|
let d = a + (b - a) * GoldenSection._grInv;
|
|
58
58
|
|
|
59
59
|
while (Math.abs(b - a) > tolerance) {
|
|
60
|
-
if (GoldenSection.
|
|
60
|
+
if (GoldenSection.check_(f(c), f(d), solveMax)) {
|
|
61
61
|
b = d;
|
|
62
62
|
} else {
|
|
63
63
|
a = c;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -25,15 +25,15 @@ export type CostFunction = (points: Float64Array) => number;
|
|
|
25
25
|
|
|
26
26
|
export class SimplexEntry {
|
|
27
27
|
score: number;
|
|
28
|
-
private
|
|
28
|
+
private readonly x_: Vector;
|
|
29
29
|
|
|
30
|
-
constructor(private
|
|
31
|
-
this.
|
|
32
|
-
this.score = this.
|
|
30
|
+
constructor(private readonly f_: CostFunction, public points: Float64Array) {
|
|
31
|
+
this.x_ = new Vector(points);
|
|
32
|
+
this.score = this.f_(points);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
getPoints(): Float64Array {
|
|
36
|
-
return this.
|
|
36
|
+
return this.x_.toArray();
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
getScore(): number {
|
|
@@ -41,10 +41,10 @@ export class SimplexEntry {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
modify(n: number, xa: SimplexEntry, xb: SimplexEntry): SimplexEntry {
|
|
44
|
-
return new SimplexEntry(this.
|
|
44
|
+
return new SimplexEntry(this.f_, this.x_.add(xa.x_.subtract(xb.x_).scale(n)).toArray());
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
distance(se: SimplexEntry): number {
|
|
48
|
-
return this.
|
|
48
|
+
return this.x_.distance(se.x_);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -30,13 +30,13 @@ import { BatchLeastSquaresResult } from './BatchLeastSquaresResult.js';
|
|
|
30
30
|
*/
|
|
31
31
|
export class BatchLeastSquaresOD {
|
|
32
32
|
/** Propagator pair cache, for generating observation Jacobians. */
|
|
33
|
-
private propPairs_: PropagatorPairs;
|
|
33
|
+
private readonly propPairs_: PropagatorPairs;
|
|
34
34
|
/** Nominal state propagator. */
|
|
35
35
|
private propagator_: Propagator;
|
|
36
36
|
/** State estimate during solve. */
|
|
37
|
-
private nominal_: J2000;
|
|
37
|
+
private readonly nominal_: J2000;
|
|
38
38
|
/** Solve start epoch. */
|
|
39
|
-
private start_: EpochUTC;
|
|
39
|
+
private readonly start_: EpochUTC;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Create a new [BatchLeastSquaresOD] object from a list of [Observation]
|
|
@@ -51,12 +51,12 @@ export class BatchLeastSquaresOD {
|
|
|
51
51
|
* @returns [BatchLeastSquaresOD] object.
|
|
52
52
|
*/
|
|
53
53
|
constructor(
|
|
54
|
-
private observations_: Observation[],
|
|
55
|
-
private apriori_: J2000,
|
|
56
|
-
private forceModel_?: ForceModel,
|
|
57
|
-
private posStep_: number = 1e-5,
|
|
58
|
-
private velStep_: number = 1e-5,
|
|
59
|
-
private fastDerivatives_: boolean = false,
|
|
54
|
+
private readonly observations_: Observation[],
|
|
55
|
+
private readonly apriori_: J2000,
|
|
56
|
+
private readonly forceModel_?: ForceModel,
|
|
57
|
+
private readonly posStep_: number = 1e-5,
|
|
58
|
+
private readonly velStep_: number = 1e-5,
|
|
59
|
+
private readonly fastDerivatives_: boolean = false,
|
|
60
60
|
) {
|
|
61
61
|
this.observations_.sort((a, b) => a.epoch.posix - b.epoch.posix);
|
|
62
62
|
this.start_ = this.observations_[0].epoch;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { Earth, J2000, Kilometers, KilometersPerSecond, Seconds, TAU, Vector3D } from '../main.js';
|
|
19
18
|
import { ForceModel } from '../force/ForceModel.js';
|
|
19
|
+
import { Earth, J2000, Kilometers, KilometersPerSecond, Seconds, TAU, Vector3D } from '../main.js';
|
|
20
20
|
import { RungeKutta89Propagator } from '../propagator/RungeKutta89Propagator.js';
|
|
21
21
|
import { ObservationOptical } from './../observation/ObservationOptical.js';
|
|
22
22
|
import { GibbsIOD } from './GibbsIOD.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { Earth, EpochUTC, J2000, Kilometers, KilometersPerSecond, RadecTopocentric, Vector3D } from '../main.js';
|
|
19
18
|
import { ForceModel } from '../force/ForceModel.js';
|
|
19
|
+
import { Earth, EpochUTC, J2000, Kilometers, KilometersPerSecond, RadecTopocentric, Vector3D } from '../main.js';
|
|
20
20
|
import { RungeKutta89Propagator } from '../propagator/RungeKutta89Propagator.js';
|
|
21
21
|
import { ObservationOptical } from './../observation/ObservationOptical.js';
|
|
22
22
|
import { DownhillSimplex } from './../optimize/DownhillSimplex.js';
|
|
@@ -38,8 +38,8 @@ type SolveOptions = {
|
|
|
38
38
|
* Used for orbit determination from multiple optical observations.
|
|
39
39
|
*/
|
|
40
40
|
export class ModifiedGoodingIOD {
|
|
41
|
-
private observations_: ObservationOptical[];
|
|
42
|
-
private mu_: number;
|
|
41
|
+
private readonly observations_: ObservationOptical[];
|
|
42
|
+
private readonly mu_: number;
|
|
43
43
|
|
|
44
44
|
constructor(observations: ObservationOptical[], mu: number = Earth.mu) {
|
|
45
45
|
this.observations_ = observations;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
import { RungeKuttaAdaptive } from './RungeKuttaAdaptive.js';
|
|
20
20
|
|
|
21
21
|
export class DormandPrince54Propagator extends RungeKuttaAdaptive {
|
|
22
|
-
private
|
|
22
|
+
private readonly a_: Float64Array = Float64Array.from([0.0, 1.0 / 5.0, 3.0 / 10.0, 4.0 / 5.0, 8.0 / 9.0, 1.0, 1.0]);
|
|
23
23
|
|
|
24
|
-
private
|
|
24
|
+
private readonly b_: Float64Array[] = [
|
|
25
25
|
new Float64Array(),
|
|
26
26
|
Float64Array.from([1.0 / 5.0]),
|
|
27
27
|
Float64Array.from([3.0 / 40.0, 9.0 / 40.0]),
|
|
@@ -31,7 +31,7 @@ export class DormandPrince54Propagator extends RungeKuttaAdaptive {
|
|
|
31
31
|
Float64Array.from([35.0 / 384.0, 0.0, 500.0 / 1113.0, 125.0 / 192.0, -2187.0 / 6784.0, 11.0 / 84.0]),
|
|
32
32
|
];
|
|
33
33
|
|
|
34
|
-
private
|
|
34
|
+
private readonly ch_: Float64Array = Float64Array.from([
|
|
35
35
|
35.0 / 384.0,
|
|
36
36
|
0.0,
|
|
37
37
|
500.0 / 1113.0,
|
|
@@ -41,7 +41,7 @@ export class DormandPrince54Propagator extends RungeKuttaAdaptive {
|
|
|
41
41
|
0.0,
|
|
42
42
|
]);
|
|
43
43
|
|
|
44
|
-
private
|
|
44
|
+
private readonly c_: Float64Array = Float64Array.from([
|
|
45
45
|
5179.0 / 57600.0,
|
|
46
46
|
0.0,
|
|
47
47
|
7571.0 / 16695.0,
|
|
@@ -52,19 +52,19 @@ export class DormandPrince54Propagator extends RungeKuttaAdaptive {
|
|
|
52
52
|
]);
|
|
53
53
|
|
|
54
54
|
get a(): Float64Array {
|
|
55
|
-
return this.
|
|
55
|
+
return this.a_;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
get b(): Float64Array[] {
|
|
59
|
-
return this.
|
|
59
|
+
return this.b_;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
get ch(): Float64Array {
|
|
63
|
-
return this.
|
|
63
|
+
return this.ch_;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
get c(): Float64Array {
|
|
67
|
-
return this.
|
|
67
|
+
return this.c_;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
get order(): number {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -15,47 +15,47 @@
|
|
|
15
15
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { ClassicalElements, EpochUTC, J2000, Seconds } from '../main.js';
|
|
19
18
|
import { Thrust } from '../force/Thrust.js';
|
|
20
19
|
import { VerletBlendInterpolator } from '../interpolator/VerletBlendInterpolator.js';
|
|
20
|
+
import { ClassicalElements, EpochUTC, J2000, Seconds } from '../main.js';
|
|
21
21
|
import { Propagator } from './Propagator.js';
|
|
22
22
|
|
|
23
23
|
// / Kepler analytical two-body propagator.
|
|
24
24
|
export class KeplerPropagator extends Propagator {
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
private
|
|
28
|
-
private
|
|
25
|
+
private readonly initElements_: ClassicalElements;
|
|
26
|
+
private elements_: ClassicalElements;
|
|
27
|
+
private cacheState_: J2000;
|
|
28
|
+
private checkpoints_: J2000[];
|
|
29
29
|
|
|
30
30
|
constructor(initElements: ClassicalElements) {
|
|
31
31
|
super();
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
32
|
+
this.initElements_ = initElements;
|
|
33
|
+
this.elements_ = initElements;
|
|
34
|
+
this.cacheState_ = J2000.fromClassicalElements(initElements);
|
|
35
|
+
this.checkpoints_ = [];
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
get state(): J2000 {
|
|
39
|
-
return this.
|
|
39
|
+
return this.cacheState_;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
propagate(epoch: EpochUTC): J2000 {
|
|
43
|
-
this.
|
|
43
|
+
this.cacheState_ = J2000.fromClassicalElements(this.elements_.propagate(epoch));
|
|
44
44
|
|
|
45
|
-
return this.
|
|
45
|
+
return this.cacheState_;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
reset(): void {
|
|
49
|
-
this.
|
|
50
|
-
this.
|
|
49
|
+
this.elements_ = this.initElements_;
|
|
50
|
+
this.cacheState_ = J2000.fromClassicalElements(this.elements_);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
54
54
|
maneuver(maneuver: Thrust, interval = 60): J2000[] {
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
55
|
+
this.cacheState_ = maneuver.apply(this.propagate(maneuver.center));
|
|
56
|
+
this.elements_ = this.cacheState_.toClassicalElements();
|
|
57
57
|
|
|
58
|
-
return [this.
|
|
58
|
+
return [this.cacheState_];
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
ephemerisManeuver(start: EpochUTC, finish: EpochUTC, maneuvers: Thrust[], interval = 60.0): VerletBlendInterpolator {
|
|
@@ -66,37 +66,37 @@ export class KeplerPropagator extends Propagator {
|
|
|
66
66
|
ephemeris.push(this.propagate(start));
|
|
67
67
|
}
|
|
68
68
|
for (const mvr of tMvr) {
|
|
69
|
-
while (this.
|
|
70
|
-
const step = Math.min(mvr.center.difference(this.
|
|
69
|
+
while (this.cacheState_.epoch < mvr.center) {
|
|
70
|
+
const step = Math.min(mvr.center.difference(this.cacheState_.epoch), interval) as Seconds;
|
|
71
71
|
|
|
72
|
-
this.propagate(this.
|
|
73
|
-
if (this.
|
|
74
|
-
ephemeris.push(this.
|
|
72
|
+
this.propagate(this.cacheState_.epoch.roll(step));
|
|
73
|
+
if (this.cacheState_.epoch.posix !== mvr.center.posix) {
|
|
74
|
+
ephemeris.push(this.cacheState_);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
ephemeris.push(...this.maneuver(mvr, interval));
|
|
78
78
|
}
|
|
79
|
-
while (this.
|
|
80
|
-
const step = Math.min(finish.difference(this.
|
|
79
|
+
while (this.cacheState_.epoch < finish) {
|
|
80
|
+
const step = Math.min(finish.difference(this.cacheState_.epoch), interval) as Seconds;
|
|
81
81
|
|
|
82
|
-
this.propagate(this.
|
|
83
|
-
ephemeris.push(this.
|
|
82
|
+
this.propagate(this.cacheState_.epoch.roll(step));
|
|
83
|
+
ephemeris.push(this.cacheState_);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
return new VerletBlendInterpolator(ephemeris);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
checkpoint(): number {
|
|
90
|
-
this.
|
|
90
|
+
this.checkpoints_.push(this.cacheState_);
|
|
91
91
|
|
|
92
|
-
return this.
|
|
92
|
+
return this.checkpoints_.length - 1;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
clearCheckpoints(): void {
|
|
96
|
-
this.
|
|
96
|
+
this.checkpoints_ = [];
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
restore(index: number): void {
|
|
100
|
-
this.
|
|
100
|
+
this.cacheState_ = this.checkpoints_[index];
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { EpochUTC, J2000, Seconds } from '../main.js';
|
|
19
18
|
import { Thrust } from '../force/Thrust.js';
|
|
20
19
|
import { VerletBlendInterpolator } from '../interpolator/VerletBlendInterpolator.js';
|
|
20
|
+
import { EpochUTC, J2000, Seconds } from '../main.js';
|
|
21
21
|
import { GoldenSection } from './../optimize/GoldenSection.js';
|
|
22
22
|
|
|
23
23
|
// Propagator base class.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { EpochUTC, J2000, Kilometers, KilometersPerSecond, Seconds, Vector, Vector3D } from '../main.js';
|
|
19
18
|
import { ForceModel } from '../force/ForceModel.js';
|
|
20
19
|
import { Thrust } from '../force/Thrust.js';
|
|
21
20
|
import { VerletBlendInterpolator } from '../interpolator/VerletBlendInterpolator.js';
|
|
21
|
+
import { EpochUTC, J2000, Kilometers, KilometersPerSecond, Seconds, Vector, Vector3D } from '../main.js';
|
|
22
22
|
import { Propagator } from './Propagator.js';
|
|
23
23
|
|
|
24
24
|
// / Runge-Kutta 4 fixed numerical propagator.
|
|
@@ -33,7 +33,7 @@ export class RungeKutta4Propagator extends Propagator {
|
|
|
33
33
|
* @param checkpoints_ Cached state vector checkpoints.
|
|
34
34
|
*/
|
|
35
35
|
constructor(
|
|
36
|
-
private initState_: J2000,
|
|
36
|
+
private readonly initState_: J2000,
|
|
37
37
|
private forceModel_: ForceModel = new ForceModel().setGravity(),
|
|
38
38
|
private stepSize_: number = 15.0,
|
|
39
39
|
private cacheState_: J2000 = initState_,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -21,12 +21,12 @@ import { RungeKuttaAdaptive } from './RungeKuttaAdaptive.js';
|
|
|
21
21
|
|
|
22
22
|
// / Runge-Kutta 8(9) adaptive numerical propagator.
|
|
23
23
|
export class RungeKutta89Propagator extends RungeKuttaAdaptive {
|
|
24
|
-
private a_ = Float64Array.from([
|
|
24
|
+
private readonly a_ = Float64Array.from([
|
|
25
25
|
0.0, 0.3462e-1, 0.9702435063878044594828361677100617517633e-1, 0.1455365259581706689224254251565092627645, 0.561,
|
|
26
26
|
0.2290079115904850126662751771814700052182, 0.5449920884095149873337248228185299947818, 0.645, 0.48375, 0.6757e-1,
|
|
27
27
|
0.25, 0.6590650618730998549405331618649220295334, 0.8206, 0.9012, 1.0, 1.0,
|
|
28
28
|
]);
|
|
29
|
-
private b_ = [
|
|
29
|
+
private readonly b_ = [
|
|
30
30
|
new Float64Array(0),
|
|
31
31
|
Float64Array.from([0.3462e-1]),
|
|
32
32
|
Float64Array.from([-0.389335438857287327017042687229284478532e-1, 0.1359578945245091786499878854939346230295]),
|
|
@@ -95,14 +95,14 @@ export class RungeKutta89Propagator extends RungeKuttaAdaptive {
|
|
|
95
95
|
1.264756521695642578827783499806516664686, 0.0, 0.0,
|
|
96
96
|
]),
|
|
97
97
|
];
|
|
98
|
-
private ch_ = Float64Array.from([
|
|
98
|
+
private readonly ch_ = Float64Array.from([
|
|
99
99
|
0.1996996514886773085518508418098868756464e-1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
|
100
100
|
2.191499304949330054530747099310837524864, 0.8857071848208438030833722031786358862953e-1,
|
|
101
101
|
0.1140560234865965622484956605091432032674, 0.2533163805345107065564577734569651977347,
|
|
102
102
|
-2.056564386240941011158999594595981300493, 0.340809679901311993516009489422454381283, 0.0, 0.0,
|
|
103
103
|
0.4834231373823958314376726739772871714902e-1,
|
|
104
104
|
]);
|
|
105
|
-
private c_ = Float64Array.from([
|
|
105
|
+
private readonly c_ = Float64Array.from([
|
|
106
106
|
0.1461197685842315252051541915018784713459e-1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
|
107
107
|
-0.391521186233133908941022826728824203081, 0.2310932500289506415909675644868993669908,
|
|
108
108
|
0.1274766769992852382560589467488989175618, 0.2246434176204157731566981937082069688984,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author
|
|
2
|
+
* @author Theodore Kruczek
|
|
3
3
|
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c)
|
|
4
|
+
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
5
|
*
|
|
6
6
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
7
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { EpochUTC, J2000, Kilometers, KilometersPerSecond, Seconds, Vector, Vector3D } from '../main.js';
|
|
19
18
|
import { ForceModel } from '../force/ForceModel.js';
|
|
20
19
|
import { Thrust } from '../force/Thrust.js';
|
|
20
|
+
import { EpochUTC, J2000, Kilometers, KilometersPerSecond, Seconds, Vector, Vector3D } from '../main.js';
|
|
21
21
|
import { VerletBlendInterpolator } from './../interpolator/VerletBlendInterpolator.js';
|
|
22
22
|
import { Propagator } from './Propagator.js';
|
|
23
23
|
import { RkCheckpoint } from './RkCheckpoint.js';
|
|
@@ -33,9 +33,9 @@ export abstract class RungeKuttaAdaptive extends Propagator {
|
|
|
33
33
|
* @param tolerance_ Minimum allowable local error tolerance.
|
|
34
34
|
*/
|
|
35
35
|
constructor(
|
|
36
|
-
private initState_: J2000,
|
|
36
|
+
private readonly initState_: J2000,
|
|
37
37
|
private forceModel_: ForceModel = new ForceModel().setGravity(),
|
|
38
|
-
private tolerance_: number = 1e-9,
|
|
38
|
+
private readonly tolerance_: number = 1e-9,
|
|
39
39
|
) {
|
|
40
40
|
super();
|
|
41
41
|
this._cacheState = this.initState_;
|
|
@@ -84,7 +84,7 @@ export abstract class RungeKuttaAdaptive extends Propagator {
|
|
|
84
84
|
|
|
85
85
|
private kfn_(
|
|
86
86
|
epoch: EpochUTC,
|
|
87
|
-
rv: Vector<Kilometers|KilometersPerSecond>,
|
|
87
|
+
rv: Vector<Kilometers | KilometersPerSecond>,
|
|
88
88
|
hArg: Seconds,
|
|
89
89
|
kArg: Vector<Kilometers>,
|
|
90
90
|
step: Seconds,
|