ootk 5.1.1 → 6.0.0-rc.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.
- package/.claude/PROMPT.md +13 -0
- package/.claude/hooks/post-tool-use.ts +33 -0
- package/.claude/hooks/user-prompt-submit.ts +138 -0
- package/.claude/settings.local.json +13 -0
- package/.claude/skill-rules.json +11 -0
- package/.claude/skills/ootk-dev/SKILL.md +16 -0
- package/ADVANCED_FEATURES_GUIDE.md +1025 -0
- package/README.md +18 -0
- package/dist/body/Celestial.d.ts +1 -1
- package/dist/body/Celestial.js +1 -1
- package/dist/body/Celestial.js.map +1 -1
- package/dist/body/Earth.d.ts +3 -3
- package/dist/body/Earth.js +1 -1
- package/dist/body/Earth.js.map +1 -1
- package/dist/body/Moon.d.ts +3 -3
- package/dist/body/Moon.js +7 -7
- package/dist/body/Moon.js.map +1 -1
- package/dist/body/NutationAngles.d.ts +1 -1
- package/dist/body/PrecessionAngles.d.ts +1 -1
- package/dist/body/Sun.d.ts +1 -1
- package/dist/body/Sun.js +2 -2
- package/dist/body/Sun.js.map +1 -1
- package/dist/body/index.d.ts +4 -4
- package/dist/body/index.js +4 -4
- package/dist/body/index.js.map +1 -1
- package/dist/conjunction/ConjunctionAssessment.d.ts +156 -0
- package/dist/conjunction/ConjunctionAssessment.js +281 -0
- package/dist/conjunction/ConjunctionAssessment.js.map +1 -0
- package/dist/conjunction/ConjunctionEvent.d.ts +104 -0
- package/dist/conjunction/ConjunctionEvent.js +156 -0
- package/dist/conjunction/ConjunctionEvent.js.map +1 -0
- package/dist/conjunction/ProbabilityOfCollision.d.ts +102 -0
- package/dist/conjunction/ProbabilityOfCollision.js +240 -0
- package/dist/conjunction/ProbabilityOfCollision.js.map +1 -0
- package/dist/conjunction/index.d.ts +19 -0
- package/dist/conjunction/index.js +20 -0
- package/dist/conjunction/index.js.map +1 -0
- package/dist/coordinate/ClassicalElements.d.ts +6 -6
- package/dist/coordinate/ClassicalElements.js +6 -6
- package/dist/coordinate/ClassicalElements.js.map +1 -1
- package/dist/coordinate/EquinoctialElements.d.ts +4 -4
- package/dist/coordinate/EquinoctialElements.js +3 -3
- package/dist/coordinate/EquinoctialElements.js.map +1 -1
- package/dist/coordinate/FormatTle.d.ts +1 -1
- package/dist/coordinate/FormatTle.js +1 -1
- package/dist/coordinate/FormatTle.js.map +1 -1
- package/dist/coordinate/Geodetic.d.ts +3 -3
- package/dist/coordinate/Geodetic.js +6 -6
- package/dist/coordinate/Geodetic.js.map +1 -1
- package/dist/coordinate/Hill.d.ts +3 -3
- package/dist/coordinate/Hill.js +2 -2
- package/dist/coordinate/Hill.js.map +1 -1
- package/dist/coordinate/ITRF.d.ts +4 -4
- package/dist/coordinate/ITRF.js +4 -4
- package/dist/coordinate/ITRF.js.map +1 -1
- package/dist/coordinate/J2000.d.ts +4 -4
- package/dist/coordinate/J2000.js +4 -4
- package/dist/coordinate/J2000.js.map +1 -1
- package/dist/coordinate/RIC.d.ts +3 -3
- package/dist/coordinate/RIC.js +2 -2
- package/dist/coordinate/RIC.js.map +1 -1
- package/dist/coordinate/RelativeState.d.ts +4 -4
- package/dist/coordinate/RelativeState.js +1 -1
- package/dist/coordinate/RelativeState.js.map +1 -1
- package/dist/coordinate/StateVector.d.ts +1 -1
- package/dist/coordinate/StateVector.js +1 -1
- package/dist/coordinate/StateVector.js.map +1 -1
- package/dist/coordinate/TEME.d.ts +3 -3
- package/dist/coordinate/TEME.js +3 -3
- package/dist/coordinate/TEME.js.map +1 -1
- package/dist/coordinate/Tle.d.ts +4 -4
- package/dist/coordinate/Tle.js +8 -8
- package/dist/coordinate/Tle.js.map +1 -1
- package/dist/coordinate/index.d.ts +12 -12
- package/dist/coordinate/index.js +12 -12
- package/dist/coordinate/index.js.map +1 -1
- package/dist/covariance/CovarianceSample.d.ts +4 -4
- package/dist/covariance/CovarianceSample.js +4 -4
- package/dist/covariance/CovarianceSample.js.map +1 -1
- package/dist/covariance/StateCovariance.d.ts +1 -1
- package/dist/covariance/StateCovariance.js +1 -1
- package/dist/covariance/StateCovariance.js.map +1 -1
- package/dist/covariance/index.d.ts +2 -2
- package/dist/covariance/index.js +2 -2
- package/dist/covariance/index.js.map +1 -1
- package/dist/data/DataHandler.d.ts +3 -3
- package/dist/data/DataHandler.js +4 -4
- package/dist/data/DataHandler.js.map +1 -1
- package/dist/data/values/Egm96Data.js +2 -2
- package/dist/data/values/Egm96Data.js.map +1 -1
- package/dist/data/values/HpAtmosphereData.d.ts +1 -1
- package/dist/data/values/HpAtmosphereData.js +2 -2
- package/dist/data/values/HpAtmosphereData.js.map +1 -1
- package/dist/data/values/HpAtmosphereResult.d.ts +1 -1
- package/dist/data/values/Iau1980Data.js +1 -1
- package/dist/data/values/Iau1980Data.js.map +1 -1
- package/dist/data/values/LeapSecondData.d.ts +1 -1
- package/dist/data/values/LeapSecondData.js +1 -1
- package/dist/data/values/LeapSecondData.js.map +1 -1
- package/dist/data/values/egm96.d.ts +1 -1
- package/dist/data/values/hpAtmosphere.d.ts +1 -1
- package/dist/data/values/iau1980.d.ts +1 -1
- package/dist/enums/index.d.ts +7 -7
- package/dist/enums/index.js +7 -7
- package/dist/enums/index.js.map +1 -1
- package/dist/fetch/horizons-constants.d.ts +43 -0
- package/dist/fetch/horizons-constants.js +50 -0
- package/dist/fetch/horizons-constants.js.map +1 -0
- package/dist/fetch/horizons-interfaces.d.ts +37 -0
- package/dist/fetch/horizons-interfaces.js +2 -0
- package/dist/fetch/horizons-interfaces.js.map +1 -0
- package/dist/fetch/horizons.d.ts +86 -0
- package/dist/fetch/horizons.js +237 -0
- package/dist/fetch/horizons.js.map +1 -0
- package/dist/force/AtmosphericDrag.d.ts +2 -2
- package/dist/force/AtmosphericDrag.js +1 -1
- package/dist/force/AtmosphericDrag.js.map +1 -1
- package/dist/force/EarthGravity.d.ts +2 -2
- package/dist/force/EarthGravity.js +1 -1
- package/dist/force/EarthGravity.js.map +1 -1
- package/dist/force/Force.d.ts +2 -2
- package/dist/force/Force.js +0 -9
- package/dist/force/Force.js.map +1 -1
- package/dist/force/ForceModel.d.ts +2 -2
- package/dist/force/ForceModel.js +6 -6
- package/dist/force/ForceModel.js.map +1 -1
- package/dist/force/Gravity.d.ts +2 -2
- package/dist/force/Gravity.js +1 -1
- package/dist/force/Gravity.js.map +1 -1
- package/dist/force/SolarRadiationPressure.d.ts +2 -2
- package/dist/force/SolarRadiationPressure.js +3 -3
- package/dist/force/SolarRadiationPressure.js.map +1 -1
- package/dist/force/ThirdBodyGravity.d.ts +2 -2
- package/dist/force/ThirdBodyGravity.js +1 -1
- package/dist/force/ThirdBodyGravity.js.map +1 -1
- package/dist/force/Thrust.d.ts +2 -2
- package/dist/force/Thrust.js +1 -1
- package/dist/force/Thrust.js.map +1 -1
- package/dist/force/index.d.ts +1 -1
- package/dist/force/index.js +1 -1
- package/dist/force/index.js.map +1 -1
- package/dist/interfaces/BaseObjectParams.d.ts +1 -1
- package/dist/interfaces/ClassicalElementsParams.d.ts +1 -1
- package/dist/interfaces/EquinoctialElementsParams.d.ts +1 -1
- package/dist/interfaces/GroundPositionParams.d.ts +1 -1
- package/dist/interfaces/RfSensorParams.d.ts +2 -2
- package/dist/interfaces/SatelliteParams.d.ts +2 -2
- package/dist/interfaces/SensorParams.d.ts +2 -2
- package/dist/interfaces/StarObjectParams.d.ts +1 -1
- package/dist/interfaces/TimeVariables.d.ts +1 -1
- package/dist/interfaces/index.d.ts +9 -9
- package/dist/interpolator/ChebyshevCoefficients.d.ts +1 -1
- package/dist/interpolator/ChebyshevCoefficients.js +1 -1
- package/dist/interpolator/ChebyshevCoefficients.js.map +1 -1
- package/dist/interpolator/ChebyshevInterpolator.d.ts +3 -3
- package/dist/interpolator/ChebyshevInterpolator.js +2 -2
- package/dist/interpolator/ChebyshevInterpolator.js.map +1 -1
- package/dist/interpolator/CubicSpline.d.ts +1 -1
- package/dist/interpolator/CubicSplineInterpolator.d.ts +3 -3
- package/dist/interpolator/CubicSplineInterpolator.js +3 -3
- package/dist/interpolator/CubicSplineInterpolator.js.map +1 -1
- package/dist/interpolator/FieldInterpolator.d.ts +2 -2
- package/dist/interpolator/FieldInterpolator.js +1 -11
- package/dist/interpolator/FieldInterpolator.js.map +1 -1
- package/dist/interpolator/Interpolator.d.ts +1 -1
- package/dist/interpolator/Interpolator.js +1 -1
- package/dist/interpolator/Interpolator.js.map +1 -1
- package/dist/interpolator/LagrangeInterpolator.d.ts +2 -2
- package/dist/interpolator/LagrangeInterpolator.js +2 -2
- package/dist/interpolator/LagrangeInterpolator.js.map +1 -1
- package/dist/interpolator/StateInterpolator.d.ts +3 -3
- package/dist/interpolator/StateInterpolator.js +1 -9
- package/dist/interpolator/StateInterpolator.js.map +1 -1
- package/dist/interpolator/VerletBlendInterpolator.d.ts +4 -4
- package/dist/interpolator/VerletBlendInterpolator.js +4 -4
- package/dist/interpolator/VerletBlendInterpolator.js.map +1 -1
- package/dist/main.d.ts +19 -19
- package/dist/main.js +20 -19
- package/dist/main.js.map +1 -1
- package/dist/maneuver/TwoBurnOrbitTransfer.d.ts +2 -2
- package/dist/maneuver/TwoBurnOrbitTransfer.js +2 -2
- package/dist/maneuver/TwoBurnOrbitTransfer.js.map +1 -1
- package/dist/maneuver/Waypoint.d.ts +4 -4
- package/dist/maneuver/Waypoint.js +6 -6
- package/dist/maneuver/Waypoint.js.map +1 -1
- package/dist/objects/BaseObject.d.ts +2 -2
- package/dist/objects/BaseObject.js +1 -1
- package/dist/objects/BaseObject.js.map +1 -1
- package/dist/objects/DetailedSatellite.d.ts +3 -3
- package/dist/objects/DetailedSatellite.js +3 -3
- package/dist/objects/DetailedSatellite.js.map +1 -1
- package/dist/objects/DetailedSensor.d.ts +4 -4
- package/dist/objects/DetailedSensor.js +1 -1
- package/dist/objects/DetailedSensor.js.map +1 -1
- package/dist/objects/GroundObject.d.ts +3 -3
- package/dist/objects/GroundObject.js +2 -2
- package/dist/objects/GroundObject.js.map +1 -1
- package/dist/objects/LandObject.d.ts +2 -2
- package/dist/objects/LandObject.js +1 -1
- package/dist/objects/LandObject.js.map +1 -1
- package/dist/objects/Marker.d.ts +1 -1
- package/dist/objects/Marker.js +1 -1
- package/dist/objects/Marker.js.map +1 -1
- package/dist/objects/RfSensor.d.ts +2 -2
- package/dist/objects/RfSensor.js +2 -2
- package/dist/objects/RfSensor.js.map +1 -1
- package/dist/objects/Satellite.d.ts +11 -11
- package/dist/objects/Satellite.js +11 -11
- package/dist/objects/Satellite.js.map +1 -1
- package/dist/objects/Sensor.d.ts +5 -5
- package/dist/objects/Sensor.js +4 -4
- package/dist/objects/Sensor.js.map +1 -1
- package/dist/objects/Star.d.ts +2 -2
- package/dist/objects/Star.js +2 -2
- package/dist/objects/Star.js.map +1 -1
- package/dist/objects/index.d.ts +10 -10
- package/dist/objects/index.js +10 -10
- package/dist/objects/index.js.map +1 -1
- package/dist/observation/Observation.d.ts +10 -10
- package/dist/observation/Observation.js +0 -51
- package/dist/observation/Observation.js.map +1 -1
- package/dist/observation/ObservationOptical.d.ts +5 -5
- package/dist/observation/ObservationOptical.js +3 -3
- package/dist/observation/ObservationOptical.js.map +1 -1
- package/dist/observation/ObservationRadar.d.ts +5 -5
- package/dist/observation/ObservationRadar.js +3 -3
- package/dist/observation/ObservationRadar.js.map +1 -1
- package/dist/observation/ObservationUtils.d.ts +1 -1
- package/dist/observation/ObservationUtils.js +1 -1
- package/dist/observation/ObservationUtils.js.map +1 -1
- package/dist/observation/PropagatorPairs.d.ts +1 -1
- package/dist/observation/RAE.d.ts +5 -5
- package/dist/observation/RAE.js +5 -5
- package/dist/observation/RAE.js.map +1 -1
- package/dist/observation/RadecGeocentric.d.ts +5 -5
- package/dist/observation/RadecGeocentric.js +4 -4
- package/dist/observation/RadecGeocentric.js.map +1 -1
- package/dist/observation/RadecTopocentric.d.ts +5 -5
- package/dist/observation/RadecTopocentric.js +8 -6
- package/dist/observation/RadecTopocentric.js.map +1 -1
- package/dist/observation/index.d.ts +4 -4
- package/dist/observation/index.js +4 -4
- package/dist/observation/index.js.map +1 -1
- package/dist/operations/BoxMuller.d.ts +1 -1
- package/dist/operations/BoxMuller.js +1 -1
- package/dist/operations/BoxMuller.js.map +1 -1
- package/dist/operations/EulerAngles.d.ts +1 -1
- package/dist/operations/EulerAngles.js +1 -1
- package/dist/operations/EulerAngles.js.map +1 -1
- package/dist/operations/Matrix.d.ts +1 -1
- package/dist/operations/Matrix.js +1 -1
- package/dist/operations/Matrix.js.map +1 -1
- package/dist/operations/Quaternion.d.ts +1 -1
- package/dist/operations/Quaternion.js +1 -1
- package/dist/operations/Quaternion.js.map +1 -1
- package/dist/operations/RandomGaussianSource.d.ts +1 -1
- package/dist/operations/RandomGaussianSource.js +2 -2
- package/dist/operations/RandomGaussianSource.js.map +1 -1
- package/dist/operations/Vector.d.ts +1 -1
- package/dist/operations/Vector.js +1 -1
- package/dist/operations/Vector.js.map +1 -1
- package/dist/operations/Vector3D.d.ts +4 -3
- package/dist/operations/Vector3D.js +4 -3
- package/dist/operations/Vector3D.js.map +1 -1
- package/dist/operations/index.d.ts +4 -4
- package/dist/operations/index.js +4 -4
- package/dist/operations/index.js.map +1 -1
- package/dist/operations/operations.d.ts +4 -4
- package/dist/operations/operations.js +4 -4
- package/dist/operations/operations.js.map +1 -1
- package/dist/optimize/ChebyshevCompressor.d.ts +2 -2
- package/dist/optimize/ChebyshevCompressor.js +3 -3
- package/dist/optimize/ChebyshevCompressor.js.map +1 -1
- package/dist/optimize/DownhillSimplex.d.ts +1 -1
- package/dist/optimize/DownhillSimplex.js +1 -1
- package/dist/optimize/DownhillSimplex.js.map +1 -1
- package/dist/optimize/GoldenSection.d.ts +1 -1
- package/dist/optimize/PolynomialRegression.d.ts +1 -1
- package/dist/optimize/PolynomialRegression.js +3 -3
- package/dist/optimize/PolynomialRegression.js.map +1 -1
- package/dist/optimize/SimplexEntry.js +1 -1
- package/dist/optimize/SimplexEntry.js.map +1 -1
- package/dist/orbit_determination/BatchLeastSquaresOD.d.ts +4 -4
- package/dist/orbit_determination/BatchLeastSquaresOD.js +7 -7
- package/dist/orbit_determination/BatchLeastSquaresOD.js.map +1 -1
- package/dist/orbit_determination/BatchLeastSquaresResult.d.ts +2 -2
- package/dist/orbit_determination/GaussIOD.d.ts +98 -0
- package/dist/orbit_determination/GaussIOD.js +291 -0
- package/dist/orbit_determination/GaussIOD.js.map +1 -0
- package/dist/orbit_determination/GibbsIOD.d.ts +1 -1
- package/dist/orbit_determination/GibbsIOD.js +3 -3
- package/dist/orbit_determination/GibbsIOD.js.map +1 -1
- package/dist/orbit_determination/GoodingIOD.d.ts +57 -7
- package/dist/orbit_determination/GoodingIOD.js +224 -34
- package/dist/orbit_determination/GoodingIOD.js.map +1 -1
- package/dist/orbit_determination/HerrickGibbsIOD.d.ts +1 -1
- package/dist/orbit_determination/HerrickGibbsIOD.js +1 -1
- package/dist/orbit_determination/HerrickGibbsIOD.js.map +1 -1
- package/dist/orbit_determination/LambertIOD.d.ts +1 -1
- package/dist/orbit_determination/LambertIOD.js +1 -1
- package/dist/orbit_determination/LambertIOD.js.map +1 -1
- package/dist/orbit_determination/ModifiedGoodingIOD.d.ts +2 -2
- package/dist/orbit_determination/ModifiedGoodingIOD.js +7 -7
- package/dist/orbit_determination/ModifiedGoodingIOD.js.map +1 -1
- package/dist/orbit_determination/index.d.ts +7 -7
- package/dist/orbit_determination/index.js +7 -7
- package/dist/orbit_determination/index.js.map +1 -1
- package/dist/propagator/DormandPrince54Propagator.d.ts +1 -1
- package/dist/propagator/DormandPrince54Propagator.js +1 -1
- package/dist/propagator/DormandPrince54Propagator.js.map +1 -1
- package/dist/propagator/KeplerPropagator.d.ts +5 -5
- package/dist/propagator/KeplerPropagator.js +5 -6
- package/dist/propagator/KeplerPropagator.js.map +1 -1
- package/dist/propagator/Propagator.d.ts +4 -4
- package/dist/propagator/Propagator.js +4 -4
- package/dist/propagator/Propagator.js.map +1 -1
- package/dist/propagator/RkCheckpoint.d.ts +1 -1
- package/dist/propagator/RkResult.d.ts +1 -1
- package/dist/propagator/RungeKutta4Propagator.d.ts +5 -5
- package/dist/propagator/RungeKutta4Propagator.js +4 -4
- package/dist/propagator/RungeKutta4Propagator.js.map +1 -1
- package/dist/propagator/RungeKutta89Propagator.d.ts +1 -1
- package/dist/propagator/RungeKutta89Propagator.js +1 -1
- package/dist/propagator/RungeKutta89Propagator.js.map +1 -1
- package/dist/propagator/RungeKuttaAdaptive.d.ts +5 -5
- package/dist/propagator/RungeKuttaAdaptive.js +51 -8
- package/dist/propagator/RungeKuttaAdaptive.js.map +1 -1
- package/dist/propagator/Sgp4Propagator.d.ts +6 -6
- package/dist/propagator/Sgp4Propagator.js +3 -3
- package/dist/propagator/Sgp4Propagator.js.map +1 -1
- package/dist/propagator/index.d.ts +3 -3
- package/dist/propagator/index.js +3 -3
- package/dist/propagator/index.js.map +1 -1
- package/dist/sgp4/index.d.ts +1 -1
- package/dist/sgp4/index.js +1 -1
- package/dist/sgp4/index.js.map +1 -1
- package/dist/sgp4/sgp4.d.ts +2 -2
- package/dist/sgp4/sgp4.js +4 -4
- package/dist/sgp4/sgp4.js.map +1 -1
- package/dist/smoothing/ExponentialSmoothing.d.ts +1 -1
- package/dist/time/Epoch.d.ts +1 -1
- package/dist/time/Epoch.js +1 -1
- package/dist/time/Epoch.js.map +1 -1
- package/dist/time/EpochGPS.d.ts +2 -2
- package/dist/time/EpochGPS.js +2 -2
- package/dist/time/EpochGPS.js.map +1 -1
- package/dist/time/EpochTAI.d.ts +1 -1
- package/dist/time/EpochTAI.js +1 -1
- package/dist/time/EpochTAI.js.map +1 -1
- package/dist/time/EpochTDB.d.ts +1 -1
- package/dist/time/EpochTDB.js +1 -1
- package/dist/time/EpochTDB.js.map +1 -1
- package/dist/time/EpochTT.d.ts +1 -1
- package/dist/time/EpochTT.js +1 -1
- package/dist/time/EpochTT.js.map +1 -1
- package/dist/time/EpochUTC.d.ts +6 -6
- package/dist/time/EpochUTC.js +8 -8
- package/dist/time/EpochUTC.js.map +1 -1
- package/dist/time/EpochWindow.d.ts +1 -1
- package/dist/time/TimeStamped.d.ts +1 -1
- package/dist/time/index.d.ts +8 -8
- package/dist/time/index.js +8 -8
- package/dist/time/index.js.map +1 -1
- package/dist/transforms/conversions.d.ts +1 -1
- package/dist/transforms/conversions.js +1 -1
- package/dist/transforms/conversions.js.map +1 -1
- package/dist/transforms/index.d.ts +2 -2
- package/dist/transforms/index.js +2 -2
- package/dist/transforms/index.js.map +1 -1
- package/dist/transforms/transforms.d.ts +1 -1
- package/dist/transforms/transforms.js +1 -1
- package/dist/transforms/transforms.js.map +1 -1
- package/dist/types/types.d.ts +8 -3
- package/dist/types/types.js +6 -1
- package/dist/types/types.js.map +1 -1
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +1 -1
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/create-covariance-from-tle.d.ts +1 -1
- package/dist/utils/create-covariance-from-tle.js +1 -1
- package/dist/utils/create-covariance-from-tle.js.map +1 -1
- package/dist/utils/functions.d.ts +4 -4
- package/dist/utils/functions.js +9 -4
- package/dist/utils/functions.js.map +1 -1
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.js +5 -5
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/jacobian.d.ts +2 -2
- package/dist/utils/jacobian.js +1 -1
- package/dist/utils/jacobian.js.map +1 -1
- package/dist/utils/linearDistance.d.ts +1 -1
- package/docs/README.md +132 -0
- package/docs/getting-started.md +792 -0
- package/docs/lambert-satellite-integration-guide.md +766 -0
- package/docs/user-guide.md +1935 -0
- package/jest.config.mjs +28 -0
- package/package.json +4 -4
- package/src/body/Celestial.ts +1 -1
- package/src/body/Earth.ts +3 -3
- package/src/body/Moon.ts +7 -7
- package/src/body/NutationAngles.ts +1 -1
- package/src/body/PrecessionAngles.ts +1 -1
- package/src/body/Sun.ts +3 -3
- package/src/body/index.ts +4 -4
- package/src/conjunction/ConjunctionAssessment.ts +417 -0
- package/src/conjunction/ConjunctionEvent.ts +149 -0
- package/src/conjunction/ProbabilityOfCollision.ts +300 -0
- package/src/conjunction/index.ts +24 -0
- package/src/coordinate/ClassicalElements.ts +9 -9
- package/src/coordinate/EquinoctialElements.ts +6 -6
- package/src/coordinate/FormatTle.ts +1 -1
- package/src/coordinate/Geodetic.ts +7 -7
- package/src/coordinate/Hill.ts +3 -3
- package/src/coordinate/ITRF.ts +5 -5
- package/src/coordinate/J2000.ts +6 -6
- package/src/coordinate/RIC.ts +3 -3
- package/src/coordinate/RelativeState.ts +4 -4
- package/src/coordinate/StateVector.ts +1 -1
- package/src/coordinate/TEME.ts +5 -5
- package/src/coordinate/Tle.ts +8 -8
- package/src/coordinate/index.ts +13 -12
- package/src/covariance/CovarianceSample.ts +5 -5
- package/src/covariance/StateCovariance.ts +1 -1
- package/src/covariance/index.ts +3 -2
- package/src/data/DataHandler.ts +5 -5
- package/src/data/values/Egm96Data.ts +2 -2
- package/src/data/values/HpAtmosphereData.ts +2 -2
- package/src/data/values/HpAtmosphereResult.ts +1 -1
- package/src/data/values/Iau1980Data.ts +1 -1
- package/src/data/values/LeapSecondData.ts +1 -1
- package/src/data/values/egm96.ts +1 -1
- package/src/data/values/hpAtmosphere.ts +1 -1
- package/src/data/values/iau1980.ts +1 -1
- package/src/enums/index.ts +8 -7
- package/src/fetch/horizons-constants.ts +53 -0
- package/src/fetch/horizons-interfaces.ts +38 -0
- package/src/fetch/horizons.ts +300 -0
- package/src/force/AtmosphericDrag.ts +2 -2
- package/src/force/EarthGravity.ts +2 -2
- package/src/force/Force.ts +2 -4
- package/src/force/ForceModel.ts +8 -8
- package/src/force/Gravity.ts +2 -2
- package/src/force/SolarRadiationPressure.ts +3 -3
- package/src/force/ThirdBodyGravity.ts +2 -2
- package/src/force/Thrust.ts +2 -2
- package/src/force/index.ts +2 -1
- package/src/interfaces/BaseObjectParams.ts +1 -1
- package/src/interfaces/ClassicalElementsParams.ts +1 -1
- package/src/interfaces/EquinoctialElementsParams.ts +1 -1
- package/src/interfaces/GroundPositionParams.ts +1 -1
- package/src/interfaces/RfSensorParams.ts +2 -2
- package/src/interfaces/SatelliteParams.ts +2 -2
- package/src/interfaces/SensorParams.ts +3 -3
- package/src/interfaces/StarObjectParams.ts +1 -1
- package/src/interfaces/TimeVariables.ts +1 -1
- package/src/interfaces/index.ts +10 -9
- package/src/interpolator/ChebyshevCoefficients.ts +1 -1
- package/src/interpolator/ChebyshevInterpolator.ts +3 -3
- package/src/interpolator/CubicSpline.ts +1 -1
- package/src/interpolator/CubicSplineInterpolator.ts +3 -3
- package/src/interpolator/FieldInterpolator.ts +2 -4
- package/src/interpolator/Interpolator.ts +1 -1
- package/src/interpolator/LagrangeInterpolator.ts +2 -2
- package/src/interpolator/StateInterpolator.ts +3 -5
- package/src/interpolator/VerletBlendInterpolator.ts +4 -4
- package/src/main.ts +21 -19
- package/src/maneuver/TwoBurnOrbitTransfer.ts +2 -2
- package/src/maneuver/Waypoint.ts +7 -7
- package/src/objects/BaseObject.ts +2 -2
- package/src/objects/DetailedSatellite.ts +3 -3
- package/src/objects/DetailedSensor.ts +4 -4
- package/src/objects/GroundObject.ts +3 -3
- package/src/objects/LandObject.ts +2 -2
- package/src/objects/Marker.ts +1 -1
- package/src/objects/RfSensor.ts +2 -2
- package/src/objects/Satellite.ts +18 -18
- package/src/objects/Sensor.ts +6 -6
- package/src/objects/Star.ts +2 -2
- package/src/objects/index.ts +11 -10
- package/src/observation/Observation.ts +10 -22
- package/src/observation/ObservationOptical.ts +6 -6
- package/src/observation/ObservationRadar.ts +6 -6
- package/src/observation/ObservationUtils.ts +1 -1
- package/src/observation/PropagatorPairs.ts +1 -1
- package/src/observation/RAE.ts +8 -8
- package/src/observation/RadecGeocentric.ts +8 -8
- package/src/observation/RadecTopocentric.ts +12 -9
- package/src/observation/index.ts +4 -4
- package/src/operations/BoxMuller.ts +1 -1
- package/src/operations/EulerAngles.ts +1 -1
- package/src/operations/Matrix.ts +1 -1
- package/src/operations/Quaternion.ts +1 -1
- package/src/operations/RandomGaussianSource.ts +2 -2
- package/src/operations/Vector.ts +1 -1
- package/src/operations/Vector3D.ts +5 -3
- package/src/operations/index.ts +5 -4
- package/src/operations/operations.ts +4 -4
- package/src/optimize/ChebyshevCompressor.ts +4 -4
- package/src/optimize/DownhillSimplex.ts +1 -1
- package/src/optimize/GoldenSection.ts +1 -1
- package/src/optimize/PolynomialRegression.ts +3 -3
- package/src/optimize/SimplexEntry.ts +1 -1
- package/src/orbit_determination/BatchLeastSquaresOD.ts +9 -9
- package/src/orbit_determination/BatchLeastSquaresResult.ts +2 -2
- package/src/orbit_determination/GaussIOD.ts +393 -0
- package/src/orbit_determination/GibbsIOD.ts +3 -3
- package/src/orbit_determination/GoodingIOD.ts +457 -159
- package/src/orbit_determination/HerrickGibbsIOD.ts +1 -1
- package/src/orbit_determination/LambertIOD.ts +1 -1
- package/src/orbit_determination/ModifiedGoodingIOD.ts +32 -21
- package/src/orbit_determination/index.ts +8 -7
- package/src/propagator/DormandPrince54Propagator.ts +1 -1
- package/src/propagator/KeplerPropagator.ts +6 -7
- package/src/propagator/Propagator.ts +5 -5
- package/src/propagator/RkCheckpoint.ts +1 -1
- package/src/propagator/RkResult.ts +1 -1
- package/src/propagator/RungeKutta4Propagator.ts +5 -5
- package/src/propagator/RungeKutta89Propagator.ts +1 -1
- package/src/propagator/RungeKuttaAdaptive.ts +60 -10
- package/src/propagator/Sgp4Propagator.ts +6 -6
- package/src/propagator/index.ts +4 -3
- package/src/sgp4/index.ts +1 -1
- package/src/sgp4/sgp4.ts +5 -5
- package/src/smoothing/ExponentialSmoothing.ts +1 -1
- package/src/time/Epoch.ts +2 -2
- package/src/time/EpochGPS.ts +4 -4
- package/src/time/EpochTAI.ts +1 -1
- package/src/time/EpochTDB.ts +1 -1
- package/src/time/EpochTT.ts +1 -1
- package/src/time/EpochUTC.ts +9 -9
- package/src/time/EpochWindow.ts +1 -1
- package/src/time/TimeStamped.ts +1 -1
- package/src/time/index.ts +9 -8
- package/src/transforms/conversions.ts +1 -1
- package/src/transforms/index.ts +3 -2
- package/src/transforms/transforms.ts +4 -4
- package/src/types/types.ts +8 -3
- package/src/utils/constants.ts +2 -2
- package/src/utils/create-covariance-from-tle.ts +1 -1
- package/src/utils/functions.ts +10 -5
- package/src/utils/index.ts +6 -5
- package/src/utils/jacobian.ts +2 -2
- package/src/utils/linearDistance.ts +1 -1
package/dist/data/DataHandler.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { egm96Data } from './values/Egm96Data
|
|
24
|
-
import { hpAtmosphereData } from './values/HpAtmosphereData
|
|
25
|
-
import { iau1980Data } from './values/Iau1980Data
|
|
26
|
-
import { leapSecondData } from './values/LeapSecondData
|
|
23
|
+
import { egm96Data } from './values/Egm96Data';
|
|
24
|
+
import { hpAtmosphereData } from './values/HpAtmosphereData';
|
|
25
|
+
import { iau1980Data } from './values/Iau1980Data';
|
|
26
|
+
import { leapSecondData } from './values/LeapSecondData';
|
|
27
27
|
/**
|
|
28
28
|
* Astrodynamic data management singleton.
|
|
29
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataHandler.js","sourceRoot":"","sources":["../../src/data/DataHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,SAAS,EAAc,MAAM,
|
|
1
|
+
{"version":3,"file":"DataHandler.js","sourceRoot":"","sources":["../../src/data/DataHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,SAAS,EAAc,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAgB,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,OAAO,WAAW;IACd,MAAM,CAAU,SAAS,GAAG,IAAI,WAAW,EAAE,CAAC;IAEtD;QACE,yBAAyB;IAC3B,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,WAAW;QAChB,OAAO,WAAW,CAAC,SAAS,CAAC;IAC/B,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,CAAS,EAAE,CAAS;QACjC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,gBAAgB,CAAC,GAAW;QAC1B,OAAO,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,EAAU;QACvB,OAAO,cAAc,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,MAAc;QAC5B,OAAO,gBAAgB,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC"}
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { factorial } from '../../utils/functions
|
|
24
|
-
import { egm96 } from './egm96
|
|
23
|
+
import { factorial } from '../../utils/functions';
|
|
24
|
+
import { egm96 } from './egm96';
|
|
25
25
|
// / Container for EGM-96 data.
|
|
26
26
|
export class Egm96Data {
|
|
27
27
|
coeffs_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Egm96Data.js","sourceRoot":"","sources":["../../../src/data/values/Egm96Data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Egm96Data.js","sourceRoot":"","sources":["../../../src/data/values/Egm96Data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKhC,+BAA+B;AAC/B,MAAM,OAAO,SAAS;IACH,OAAO,CAAe;IAEvC,qCAAqC;IACrC,YAAY,MAAoB;QAC9B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAkB;QAChC,MAAM,MAAM,GAAiB,EAAE,CAAC;QAEhC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACrB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;YAC3B,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1B,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAC3B,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YAC/C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAC9B,MAAM,aAAa,GAAG,GAAG,GAAG,IAAI,CAAC;YACjC,MAAM,aAAa,GAAG,GAAG,GAAG,IAAI,CAAC;YAEjC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC;QACpD,CAAC;QAED,OAAO,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IAED,4EAA4E;IAC5E,SAAS,CAAC,CAAS,EAAE,CAAS;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED,4DAA4D;IACpD,MAAM,CAAC,MAAM,CAAC,CAAS,EAAE,CAAS;QACxC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;CACF;AAED,yCAAyC;AACzC,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { HpAtmosphereResult } from './HpAtmosphereResult
|
|
23
|
+
import { HpAtmosphereResult } from './HpAtmosphereResult';
|
|
24
24
|
export type HpAtmosphereEntry = [number, number, number];
|
|
25
25
|
export declare class HpAtmosphereData {
|
|
26
26
|
private readonly table_;
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { hpAtmosphere } from './hpAtmosphere
|
|
24
|
-
import { HpAtmosphereResult } from './HpAtmosphereResult
|
|
23
|
+
import { hpAtmosphere } from './hpAtmosphere';
|
|
24
|
+
import { HpAtmosphereResult } from './HpAtmosphereResult';
|
|
25
25
|
// / Container for Harris-Priester atmosphere data.
|
|
26
26
|
export class HpAtmosphereData {
|
|
27
27
|
table_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HpAtmosphereData.js","sourceRoot":"","sources":["../../../src/data/values/HpAtmosphereData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"HpAtmosphereData.js","sourceRoot":"","sources":["../../../src/data/values/HpAtmosphereData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK1D,mDAAmD;AACnD,MAAM,OAAO,gBAAgB;IACV,MAAM,CAAsB;IAC5B,KAAK,CAAS;IACd,KAAK,CAAS;IAE/B,YAAY,KAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,WAAW,EAAE,CAAC;YAC/D,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;QAC/D,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,IAAgC;QAC9C,MAAM,MAAM,GAAwB,EAAE,CAAC;QAEvC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACrB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YAE1B,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QAC/B,CAAC;QAED,OAAO,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,aAAa,CAAC,MAAc;QAC1B,IAAI,MAAM,GAAG,IAAI,CAAC,KAAK,IAAI,MAAM,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;YAC/C,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,KAAK,GAAG,CAAC,CAAC;QAEd,OAAO,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9E,KAAK,EAAE,CAAC;QACV,CAAC;QAED,OAAO,IAAI,kBAAkB,CAC3B,MAAM,EACN,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EACpB,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CACzB,CAAC;IACJ,CAAC;CACF;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { HpAtmosphereEntry } from './HpAtmosphereData
|
|
23
|
+
import { HpAtmosphereEntry } from './HpAtmosphereData';
|
|
24
24
|
export declare class HpAtmosphereResult {
|
|
25
25
|
height: number;
|
|
26
26
|
hp0: HpAtmosphereEntry;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { iau1980 } from './iau1980
|
|
23
|
+
import { iau1980 } from './iau1980';
|
|
24
24
|
// / Container for IAU-1980 data.
|
|
25
25
|
export class Iau1980Data {
|
|
26
26
|
coeffs_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Iau1980Data.js","sourceRoot":"","sources":["../../../src/data/values/Iau1980Data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Iau1980Data.js","sourceRoot":"","sources":["../../../src/data/values/Iau1980Data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,iCAAiC;AACjC,MAAM,OAAO,WAAW;IACL,OAAO,CAAiB;IAEzC,uCAAuC;IACvC,YAAY,MAAsB;QAChC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,MAA2B;QAC3C,MAAM,MAAM,GAAmB,EAAE,CAAC;QAElC,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;YACvB,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC;YAE/C,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QACpD,CAAC;QAED,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,sDAAsD;IACtD,SAAS,CAAC,GAAW;QACnB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;CACF;AAED,6BAA6B;AAC7B,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { LeapSecond } from './LeapSecond
|
|
23
|
+
import { LeapSecond } from './LeapSecond';
|
|
24
24
|
declare class LeapSecondData {
|
|
25
25
|
private readonly offsets_;
|
|
26
26
|
private readonly jdFirst_;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { LeapSecond } from './LeapSecond
|
|
23
|
+
import { LeapSecond } from './LeapSecond';
|
|
24
24
|
// / Leap second value tuples.
|
|
25
25
|
const leapSeconds = [
|
|
26
26
|
[2441317.5, 10],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeapSecondData.js","sourceRoot":"","sources":["../../../src/data/values/LeapSecondData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LeapSecondData.js","sourceRoot":"","sources":["../../../src/data/values/LeapSecondData.ts"],"names":[],"mappings":"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"}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { Egm96Entry } from './Egm96Data
|
|
23
|
+
import { Egm96Entry } from './Egm96Data';
|
|
24
24
|
export declare const egm96: Egm96Entry[];
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { HpAtmosphereEntry } from './HpAtmosphereData
|
|
23
|
+
import { HpAtmosphereEntry } from './HpAtmosphereData';
|
|
24
24
|
export declare const hpAtmosphere: HpAtmosphereEntry[];
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
22
|
*/
|
|
23
|
-
import { Iau1980Entry } from './Iau1980Data
|
|
23
|
+
import { Iau1980Entry } from './Iau1980Data';
|
|
24
24
|
export declare const iau1980: Iau1980Entry[];
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
1
|
+
export { AngularDiameterMethod } from './AngularDiameterMethod';
|
|
2
|
+
export { AngularDistanceMethod } from './AngularDistanceMethod';
|
|
3
|
+
export { CatalogSource } from './CatalogSource';
|
|
4
|
+
export { CommLink } from './CommLink';
|
|
5
|
+
export { OrbitRegime } from './OrbitRegime';
|
|
6
|
+
export { PassType } from './PassType';
|
|
7
|
+
export { Sgp4OpsMode } from './Sgp4OpsMode';
|
package/dist/enums/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
1
|
+
export { AngularDiameterMethod } from './AngularDiameterMethod';
|
|
2
|
+
export { AngularDistanceMethod } from './AngularDistanceMethod';
|
|
3
|
+
export { CatalogSource } from './CatalogSource';
|
|
4
|
+
export { CommLink } from './CommLink';
|
|
5
|
+
export { OrbitRegime } from './OrbitRegime';
|
|
6
|
+
export { PassType } from './PassType';
|
|
7
|
+
export { Sgp4OpsMode } from './Sgp4OpsMode';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/enums/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common celestial object identifiers for the Horizons system
|
|
3
|
+
*/
|
|
4
|
+
export declare enum CELESTIAL_OBJECTS {
|
|
5
|
+
Mercury = "199",
|
|
6
|
+
Venus = "299",
|
|
7
|
+
Earth = "399",
|
|
8
|
+
Mars = "499",
|
|
9
|
+
Jupiter = "599",
|
|
10
|
+
Saturn = "699",
|
|
11
|
+
Uranus = "799",
|
|
12
|
+
Neptune = "899",
|
|
13
|
+
Pluto = "999",
|
|
14
|
+
Ceres = "1",
|
|
15
|
+
Eris = "136199",
|
|
16
|
+
Makemake = "136472",
|
|
17
|
+
Haumea = "136108",
|
|
18
|
+
Moon = "301",
|
|
19
|
+
Phobos = "401",
|
|
20
|
+
Deimos = "402",
|
|
21
|
+
Io = "501",
|
|
22
|
+
Europa = "502",
|
|
23
|
+
Ganymede = "503",
|
|
24
|
+
Callisto = "504",
|
|
25
|
+
Titan = "606",
|
|
26
|
+
Enceladus = "602",
|
|
27
|
+
Sun = "10",
|
|
28
|
+
SolarSystemBarycenter = "0",
|
|
29
|
+
EarthMoonBarycenter = "3"
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Observer center codes
|
|
33
|
+
*/
|
|
34
|
+
export declare enum OBSERVER_CENTERS {
|
|
35
|
+
/** Geocentric (Earth center) */
|
|
36
|
+
Geocentric = "500@399",
|
|
37
|
+
/** Solar System Barycenter */
|
|
38
|
+
SolarSystemBarycenter = "500@0",
|
|
39
|
+
/** Heliocentric (Sun center) */
|
|
40
|
+
Heliocentric = "500@10",
|
|
41
|
+
/** Topocentric (requires custom coordinates) */
|
|
42
|
+
Topocentric = "500@399a"
|
|
43
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common celestial object identifiers for the Horizons system
|
|
3
|
+
*/
|
|
4
|
+
export var CELESTIAL_OBJECTS;
|
|
5
|
+
(function (CELESTIAL_OBJECTS) {
|
|
6
|
+
// Planets
|
|
7
|
+
CELESTIAL_OBJECTS["Mercury"] = "199";
|
|
8
|
+
CELESTIAL_OBJECTS["Venus"] = "299";
|
|
9
|
+
CELESTIAL_OBJECTS["Earth"] = "399";
|
|
10
|
+
CELESTIAL_OBJECTS["Mars"] = "499";
|
|
11
|
+
CELESTIAL_OBJECTS["Jupiter"] = "599";
|
|
12
|
+
CELESTIAL_OBJECTS["Saturn"] = "699";
|
|
13
|
+
CELESTIAL_OBJECTS["Uranus"] = "799";
|
|
14
|
+
CELESTIAL_OBJECTS["Neptune"] = "899";
|
|
15
|
+
// Dwarf Planets
|
|
16
|
+
CELESTIAL_OBJECTS["Pluto"] = "999";
|
|
17
|
+
CELESTIAL_OBJECTS["Ceres"] = "1";
|
|
18
|
+
CELESTIAL_OBJECTS["Eris"] = "136199";
|
|
19
|
+
CELESTIAL_OBJECTS["Makemake"] = "136472";
|
|
20
|
+
CELESTIAL_OBJECTS["Haumea"] = "136108";
|
|
21
|
+
// Moons
|
|
22
|
+
CELESTIAL_OBJECTS["Moon"] = "301";
|
|
23
|
+
CELESTIAL_OBJECTS["Phobos"] = "401";
|
|
24
|
+
CELESTIAL_OBJECTS["Deimos"] = "402";
|
|
25
|
+
CELESTIAL_OBJECTS["Io"] = "501";
|
|
26
|
+
CELESTIAL_OBJECTS["Europa"] = "502";
|
|
27
|
+
CELESTIAL_OBJECTS["Ganymede"] = "503";
|
|
28
|
+
CELESTIAL_OBJECTS["Callisto"] = "504";
|
|
29
|
+
CELESTIAL_OBJECTS["Titan"] = "606";
|
|
30
|
+
CELESTIAL_OBJECTS["Enceladus"] = "602";
|
|
31
|
+
// Sun and barycenters
|
|
32
|
+
CELESTIAL_OBJECTS["Sun"] = "10";
|
|
33
|
+
CELESTIAL_OBJECTS["SolarSystemBarycenter"] = "0";
|
|
34
|
+
CELESTIAL_OBJECTS["EarthMoonBarycenter"] = "3";
|
|
35
|
+
})(CELESTIAL_OBJECTS || (CELESTIAL_OBJECTS = {}));
|
|
36
|
+
/**
|
|
37
|
+
* Observer center codes
|
|
38
|
+
*/
|
|
39
|
+
export var OBSERVER_CENTERS;
|
|
40
|
+
(function (OBSERVER_CENTERS) {
|
|
41
|
+
/** Geocentric (Earth center) */
|
|
42
|
+
OBSERVER_CENTERS["Geocentric"] = "500@399";
|
|
43
|
+
/** Solar System Barycenter */
|
|
44
|
+
OBSERVER_CENTERS["SolarSystemBarycenter"] = "500@0";
|
|
45
|
+
/** Heliocentric (Sun center) */
|
|
46
|
+
OBSERVER_CENTERS["Heliocentric"] = "500@10";
|
|
47
|
+
/** Topocentric (requires custom coordinates) */
|
|
48
|
+
OBSERVER_CENTERS["Topocentric"] = "500@399a";
|
|
49
|
+
})(OBSERVER_CENTERS || (OBSERVER_CENTERS = {}));
|
|
50
|
+
//# sourceMappingURL=horizons-constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"horizons-constants.js","sourceRoot":"","sources":["../../src/fetch/horizons-constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAN,IAAY,iBAiCX;AAjCD,WAAY,iBAAiB;IAC3B,UAAU;IACV,oCAAe,CAAA;IACf,kCAAa,CAAA;IACb,kCAAa,CAAA;IACb,iCAAY,CAAA;IACZ,oCAAe,CAAA;IACf,mCAAc,CAAA;IACd,mCAAc,CAAA;IACd,oCAAe,CAAA;IAEf,gBAAgB;IAChB,kCAAa,CAAA;IACb,gCAAW,CAAA;IACX,oCAAe,CAAA;IACf,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IAEjB,QAAQ;IACR,iCAAY,CAAA;IACZ,mCAAc,CAAA;IACd,mCAAc,CAAA;IACd,+BAAU,CAAA;IACV,mCAAc,CAAA;IACd,qCAAgB,CAAA;IAChB,qCAAgB,CAAA;IAChB,kCAAa,CAAA;IACb,sCAAiB,CAAA;IAEjB,sBAAsB;IACtB,+BAAU,CAAA;IACV,gDAA2B,CAAA;IAC3B,8CAAyB,CAAA;AAC3B,CAAC,EAjCW,iBAAiB,KAAjB,iBAAiB,QAiC5B;AAED;;GAEG;AAEH,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,gCAAgC;IAChC,0CAAsB,CAAA;IACtB,8BAA8B;IAC9B,mDAA+B,CAAA;IAC/B,gCAAgC;IAChC,2CAAuB,CAAA;IACvB,gDAAgD;IAChD,4CAAwB,CAAA;AAC1B,CAAC,EATW,gBAAgB,KAAhB,gBAAgB,QAS3B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface HorizonsOptions {
|
|
2
|
+
/** Start date in YYYY-MM-DD format */
|
|
3
|
+
startDate: string;
|
|
4
|
+
/** Stop date in YYYY-MM-DD format */
|
|
5
|
+
stopDate: string;
|
|
6
|
+
/** Step size (e.g., '1 day', '1 hour', '30 minutes') */
|
|
7
|
+
stepSize?: string;
|
|
8
|
+
/** Observer center (default: geocentric) */
|
|
9
|
+
center?: string;
|
|
10
|
+
/** Reference system (default: ICRF) */
|
|
11
|
+
refSystem?: 'ICRF' | 'J2000';
|
|
12
|
+
/** Reference plane (default: FRAME) */
|
|
13
|
+
refPlane?: 'FRAME' | 'ECLIPTIC';
|
|
14
|
+
/** Output units (default: KM-S for km and seconds) */
|
|
15
|
+
outUnits?: 'KM-S' | 'AU-D' | 'KM-D';
|
|
16
|
+
/** Vector corrections (default: NONE) */
|
|
17
|
+
vecCorr?: 'NONE' | 'LT' | 'LT+S';
|
|
18
|
+
/** Include velocity data (default: true) */
|
|
19
|
+
includeVelocity?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface HorizonsResponse {
|
|
22
|
+
/** Raw API response */
|
|
23
|
+
raw: string;
|
|
24
|
+
/** Parsed vector data
|
|
25
|
+
*
|
|
26
|
+
* Each entry contains:
|
|
27
|
+
* - Julian Date (number)
|
|
28
|
+
* - Date string (YYYY-MMM-DD)
|
|
29
|
+
* - Position vector [x, y, z] in kilometers
|
|
30
|
+
* - (Optional) Velocity vector [vx, vy, vz] in kilometers per second
|
|
31
|
+
*/
|
|
32
|
+
vectors: [number, [number, number, number], [number, number, number]?][];
|
|
33
|
+
/** Object identifier used in the query */
|
|
34
|
+
objectId: string;
|
|
35
|
+
/** Object name */
|
|
36
|
+
objectName?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"horizons-interfaces.js","sourceRoot":"","sources":["../../src/fetch/horizons-interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NASA Horizons API Client
|
|
3
|
+
*
|
|
4
|
+
* Provides an easy-to-use interface for fetching ephemeris data from NASA's JPL Horizons system.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* const horizons = new HorizonsAPI();
|
|
9
|
+
* const data = await horizons.getObjectPosition('Makemake', {
|
|
10
|
+
* startDate: '2025-10-21',
|
|
11
|
+
* stopDate: '2025-11-20',
|
|
12
|
+
* stepSize: '1 day'
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import { CELESTIAL_OBJECTS } from "./horizons-constants";
|
|
17
|
+
import { HorizonsOptions, HorizonsResponse } from "./horizons-interfaces";
|
|
18
|
+
interface HorizonsUrlSearch {
|
|
19
|
+
format: string;
|
|
20
|
+
MAKE_EPHEM: string;
|
|
21
|
+
COMMAND: string;
|
|
22
|
+
EPHEM_TYPE: string;
|
|
23
|
+
CENTER: string;
|
|
24
|
+
START_TIME: string;
|
|
25
|
+
STOP_TIME: string;
|
|
26
|
+
STEP_SIZE: string;
|
|
27
|
+
VEC_TABLE: string;
|
|
28
|
+
REF_SYSTEM: string;
|
|
29
|
+
REF_PLANE: string;
|
|
30
|
+
VEC_CORR: string;
|
|
31
|
+
CAL_TYPE: string;
|
|
32
|
+
OUT_UNITS: string;
|
|
33
|
+
VEC_LABELS: string;
|
|
34
|
+
VEC_DELTA_T: string;
|
|
35
|
+
CSV_FORMAT: string;
|
|
36
|
+
OBJ_DATA: string;
|
|
37
|
+
}
|
|
38
|
+
export declare class HorizonsAPI {
|
|
39
|
+
private readonly baseUrl;
|
|
40
|
+
/**
|
|
41
|
+
* Get position and velocity vectors for a celestial object
|
|
42
|
+
*
|
|
43
|
+
* @param objectName - Name or ID of the celestial object (e.g., 'Makemake', 'Mars', '699')
|
|
44
|
+
* @param options - Query options including date range and parameters
|
|
45
|
+
* @returns Promise resolving to parsed Horizons data
|
|
46
|
+
*/
|
|
47
|
+
getObjectPosition(objectName: CELESTIAL_OBJECTS, options: HorizonsOptions): Promise<HorizonsResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Get position vectors for multiple objects at once
|
|
50
|
+
*
|
|
51
|
+
* @param objectNames - Array of object names or IDs
|
|
52
|
+
* @param options - Query options (same for all objects)
|
|
53
|
+
* @returns Promise resolving to array of Horizons responses
|
|
54
|
+
*/
|
|
55
|
+
getMultipleObjects(objectNames: CELESTIAL_OBJECTS[], options: HorizonsOptions): Promise<HorizonsResponse[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Get current position of an object (right now)
|
|
58
|
+
*
|
|
59
|
+
* @param objectName - Name or ID of the celestial object
|
|
60
|
+
* @param center - Observer center (default: geocentric)
|
|
61
|
+
* @returns Promise resolving to current position data
|
|
62
|
+
*/
|
|
63
|
+
getCurrentPosition(objectName: CELESTIAL_OBJECTS, center?: string): Promise<[number, [number, number, number], [number, number, number]?]>;
|
|
64
|
+
/**
|
|
65
|
+
* Build the full API URL with all parameters
|
|
66
|
+
*/
|
|
67
|
+
buildUrl(objectId: string, options: HorizonsOptions): string;
|
|
68
|
+
generateApiString(input: HorizonsUrlSearch): string;
|
|
69
|
+
/**
|
|
70
|
+
* Resolve object name to Horizons ID
|
|
71
|
+
*/
|
|
72
|
+
private resolveObjectId;
|
|
73
|
+
/**
|
|
74
|
+
* Get object name from ID
|
|
75
|
+
*/
|
|
76
|
+
private getObjectName;
|
|
77
|
+
/**
|
|
78
|
+
* Format date to YYYY-MM-DD
|
|
79
|
+
*/
|
|
80
|
+
private formatDate;
|
|
81
|
+
/**
|
|
82
|
+
* Parse vector data from the API response
|
|
83
|
+
*/
|
|
84
|
+
parseVectorData(rawData: string, includeVelocity?: boolean): [number, [number, number, number], [number, number, number]?][];
|
|
85
|
+
}
|
|
86
|
+
export default HorizonsAPI;
|