ootk 6.0.0-rc.4 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs +29551 -0
- package/dist/main.d.cts +16961 -0
- package/dist/main.d.ts +16940 -32
- package/dist/main.js +29243 -35
- package/package.json +38 -25
- package/.claude/PROMPT.md +0 -13
- package/.claude/hooks/post-tool-use.ts +0 -33
- package/.claude/hooks/user-prompt-submit.ts +0 -138
- package/.claude/settings.local.json +0 -21
- package/.claude/skill-rules.json +0 -11
- package/.claude/skills/ootk-dev/SKILL.md +0 -16
- package/ADVANCED_FEATURES_GUIDE.md +0 -1025
- package/CHANGELOG.md +0 -511
- package/CLAUDE.md +0 -67
- package/FUTURE-WORK.md +0 -325
- package/dist/body/CelestialBody.d.ts +0 -155
- package/dist/body/CelestialBody.js +0 -207
- package/dist/body/CelestialBody.js.map +0 -1
- package/dist/body/CelestialBodyType.d.ts +0 -41
- package/dist/body/CelestialBodyType.js +0 -55
- package/dist/body/CelestialBodyType.js.map +0 -1
- package/dist/body/Earth.d.ts +0 -68
- package/dist/body/Earth.js +0 -198
- package/dist/body/Earth.js.map +0 -1
- package/dist/body/EphemerisBody.d.ts +0 -153
- package/dist/body/EphemerisBody.js +0 -235
- package/dist/body/EphemerisBody.js.map +0 -1
- package/dist/body/MoonBody.d.ts +0 -200
- package/dist/body/MoonBody.js +0 -414
- package/dist/body/MoonBody.js.map +0 -1
- package/dist/body/NutationAngles.d.ts +0 -38
- package/dist/body/NutationAngles.js +0 -24
- package/dist/body/NutationAngles.js.map +0 -1
- package/dist/body/PlanetBody.d.ts +0 -130
- package/dist/body/PlanetBody.js +0 -293
- package/dist/body/PlanetBody.js.map +0 -1
- package/dist/body/PrecessionAngles.d.ts +0 -29
- package/dist/body/PrecessionAngles.js +0 -24
- package/dist/body/PrecessionAngles.js.map +0 -1
- package/dist/body/SolarSystem.d.ts +0 -124
- package/dist/body/SolarSystem.js +0 -218
- package/dist/body/SolarSystem.js.map +0 -1
- package/dist/body/SunBody.d.ts +0 -253
- package/dist/body/SunBody.js +0 -433
- package/dist/body/SunBody.js.map +0 -1
- package/dist/body/index.d.ts +0 -36
- package/dist/body/index.js +0 -39
- package/dist/body/index.js.map +0 -1
- package/dist/comm/Antenna.d.ts +0 -112
- package/dist/comm/Antenna.js +0 -173
- package/dist/comm/Antenna.js.map +0 -1
- package/dist/comm/Beacon.d.ts +0 -141
- package/dist/comm/Beacon.js +0 -268
- package/dist/comm/Beacon.js.map +0 -1
- package/dist/comm/CommTypes.d.ts +0 -181
- package/dist/comm/CommTypes.js +0 -115
- package/dist/comm/CommTypes.js.map +0 -1
- package/dist/comm/CommunicationDevice.d.ts +0 -115
- package/dist/comm/CommunicationDevice.js +0 -142
- package/dist/comm/CommunicationDevice.js.map +0 -1
- package/dist/comm/Receiver.d.ts +0 -139
- package/dist/comm/Receiver.js +0 -219
- package/dist/comm/Receiver.js.map +0 -1
- package/dist/comm/Transmitter.d.ts +0 -136
- package/dist/comm/Transmitter.js +0 -273
- package/dist/comm/Transmitter.js.map +0 -1
- package/dist/comm/Transponder.d.ts +0 -154
- package/dist/comm/Transponder.js +0 -281
- package/dist/comm/Transponder.js.map +0 -1
- package/dist/comm/index.d.ts +0 -30
- package/dist/comm/index.js +0 -26
- package/dist/comm/index.js.map +0 -1
- package/dist/conjunction/CatalogScreener.d.ts +0 -134
- package/dist/conjunction/CatalogScreener.js +0 -213
- package/dist/conjunction/CatalogScreener.js.map +0 -1
- package/dist/conjunction/ConjunctionAssessment.d.ts +0 -149
- package/dist/conjunction/ConjunctionAssessment.js +0 -288
- package/dist/conjunction/ConjunctionAssessment.js.map +0 -1
- package/dist/conjunction/ConjunctionEvent.d.ts +0 -110
- package/dist/conjunction/ConjunctionEvent.js +0 -154
- package/dist/conjunction/ConjunctionEvent.js.map +0 -1
- package/dist/conjunction/CovarianceRealism.d.ts +0 -189
- package/dist/conjunction/CovarianceRealism.js +0 -348
- package/dist/conjunction/CovarianceRealism.js.map +0 -1
- package/dist/conjunction/ProbabilityOfCollision.d.ts +0 -102
- package/dist/conjunction/ProbabilityOfCollision.js +0 -242
- package/dist/conjunction/ProbabilityOfCollision.js.map +0 -1
- package/dist/conjunction/ScreeningFilter.d.ts +0 -112
- package/dist/conjunction/ScreeningFilter.js +0 -160
- package/dist/conjunction/ScreeningFilter.js.map +0 -1
- package/dist/conjunction/index.d.ts +0 -22
- package/dist/conjunction/index.js +0 -23
- package/dist/conjunction/index.js.map +0 -1
- package/dist/constellation/ConstellationGenerator.d.ts +0 -137
- package/dist/constellation/ConstellationGenerator.js +0 -270
- package/dist/constellation/ConstellationGenerator.js.map +0 -1
- package/dist/constellation/index.d.ts +0 -17
- package/dist/constellation/index.js +0 -18
- package/dist/constellation/index.js.map +0 -1
- package/dist/coordinate/ClassicalElements.d.ts +0 -170
- package/dist/coordinate/ClassicalElements.js +0 -334
- package/dist/coordinate/ClassicalElements.js.map +0 -1
- package/dist/coordinate/EquinoctialElements.d.ts +0 -114
- package/dist/coordinate/EquinoctialElements.js +0 -172
- package/dist/coordinate/EquinoctialElements.js.map +0 -1
- package/dist/coordinate/FormatTle.d.ts +0 -95
- package/dist/coordinate/FormatTle.js +0 -188
- package/dist/coordinate/FormatTle.js.map +0 -1
- package/dist/coordinate/Geodetic.d.ts +0 -110
- package/dist/coordinate/Geodetic.js +0 -164
- package/dist/coordinate/Geodetic.js.map +0 -1
- package/dist/coordinate/Hill.d.ts +0 -49
- package/dist/coordinate/Hill.js +0 -222
- package/dist/coordinate/Hill.js.map +0 -1
- package/dist/coordinate/ITRF.d.ts +0 -75
- package/dist/coordinate/ITRF.js +0 -135
- package/dist/coordinate/ITRF.js.map +0 -1
- package/dist/coordinate/J2000.d.ts +0 -65
- package/dist/coordinate/J2000.js +0 -120
- package/dist/coordinate/J2000.js.map +0 -1
- package/dist/coordinate/RIC.d.ts +0 -64
- package/dist/coordinate/RIC.js +0 -79
- package/dist/coordinate/RIC.js.map +0 -1
- package/dist/coordinate/RelativeState.d.ts +0 -70
- package/dist/coordinate/RelativeState.js +0 -79
- package/dist/coordinate/RelativeState.js.map +0 -1
- package/dist/coordinate/StateVector.d.ts +0 -76
- package/dist/coordinate/StateVector.js +0 -97
- package/dist/coordinate/StateVector.js.map +0 -1
- package/dist/coordinate/TEME.d.ts +0 -57
- package/dist/coordinate/TEME.js +0 -89
- package/dist/coordinate/TEME.js.map +0 -1
- package/dist/coordinate/Tle.d.ts +0 -429
- package/dist/coordinate/Tle.js +0 -866
- package/dist/coordinate/Tle.js.map +0 -1
- package/dist/coordinate/index.d.ts +0 -12
- package/dist/coordinate/index.js +0 -13
- package/dist/coordinate/index.js.map +0 -1
- package/dist/coordinate/tle-format-data.d.ts +0 -41
- package/dist/coordinate/tle-format-data.js +0 -46
- package/dist/coordinate/tle-format-data.js.map +0 -1
- package/dist/covariance/CovarianceSample.d.ts +0 -46
- package/dist/covariance/CovarianceSample.js +0 -221
- package/dist/covariance/CovarianceSample.js.map +0 -1
- package/dist/covariance/StateCovariance.d.ts +0 -42
- package/dist/covariance/StateCovariance.js +0 -65
- package/dist/covariance/StateCovariance.js.map +0 -1
- package/dist/covariance/index.d.ts +0 -2
- package/dist/covariance/index.js +0 -3
- package/dist/covariance/index.js.map +0 -1
- package/dist/data/DataHandler.d.ts +0 -66
- package/dist/data/DataHandler.js +0 -80
- package/dist/data/DataHandler.js.map +0 -1
- package/dist/data/values/Egm96Data.d.ts +0 -37
- package/dist/data/values/Egm96Data.js +0 -63
- package/dist/data/values/Egm96Data.js.map +0 -1
- package/dist/data/values/HpAtmosphereData.d.ts +0 -33
- package/dist/data/values/HpAtmosphereData.js +0 -58
- package/dist/data/values/HpAtmosphereData.js.map +0 -1
- package/dist/data/values/HpAtmosphereResult.d.ts +0 -29
- package/dist/data/values/HpAtmosphereResult.js +0 -38
- package/dist/data/values/HpAtmosphereResult.js.map +0 -1
- package/dist/data/values/Iau1980Data.d.ts +0 -36
- package/dist/data/values/Iau1980Data.js +0 -52
- package/dist/data/values/Iau1980Data.js.map +0 -1
- package/dist/data/values/LeapSecond.d.ts +0 -27
- package/dist/data/values/LeapSecond.js +0 -35
- package/dist/data/values/LeapSecond.js.map +0 -1
- package/dist/data/values/LeapSecondData.d.ts +0 -41
- package/dist/data/values/LeapSecondData.js +0 -103
- package/dist/data/values/LeapSecondData.js.map +0 -1
- package/dist/data/values/egm96.d.ts +0 -24
- package/dist/data/values/egm96.js +0 -726
- package/dist/data/values/egm96.js.map +0 -1
- package/dist/data/values/hpAtmosphere.d.ts +0 -24
- package/dist/data/values/hpAtmosphere.js +0 -76
- package/dist/data/values/hpAtmosphere.js.map +0 -1
- package/dist/data/values/iau1980.d.ts +0 -24
- package/dist/data/values/iau1980.js +0 -30
- package/dist/data/values/iau1980.js.map +0 -1
- package/dist/enums/AngularDiameterMethod.d.ts +0 -27
- package/dist/enums/AngularDiameterMethod.js +0 -29
- package/dist/enums/AngularDiameterMethod.js.map +0 -1
- package/dist/enums/AngularDistanceMethod.d.ts +0 -27
- package/dist/enums/AngularDistanceMethod.js +0 -29
- package/dist/enums/AngularDistanceMethod.js.map +0 -1
- package/dist/enums/CatalogSource.d.ts +0 -10
- package/dist/enums/CatalogSource.js +0 -12
- package/dist/enums/CatalogSource.js.map +0 -1
- package/dist/enums/CommLink.d.ts +0 -7
- package/dist/enums/CommLink.js +0 -9
- package/dist/enums/CommLink.js.map +0 -1
- package/dist/enums/FovFrame.d.ts +0 -25
- package/dist/enums/FovFrame.js +0 -27
- package/dist/enums/FovFrame.js.map +0 -1
- package/dist/enums/FovShape.d.ts +0 -25
- package/dist/enums/FovShape.js +0 -27
- package/dist/enums/FovShape.js.map +0 -1
- package/dist/enums/OrbitRegime.d.ts +0 -30
- package/dist/enums/OrbitRegime.js +0 -32
- package/dist/enums/OrbitRegime.js.map +0 -1
- package/dist/enums/PassType.d.ts +0 -28
- package/dist/enums/PassType.js +0 -30
- package/dist/enums/PassType.js.map +0 -1
- package/dist/enums/SensorType.d.ts +0 -33
- package/dist/enums/SensorType.js +0 -35
- package/dist/enums/SensorType.js.map +0 -1
- package/dist/enums/Sgp4OpsMode.d.ts +0 -26
- package/dist/enums/Sgp4OpsMode.js +0 -28
- package/dist/enums/Sgp4OpsMode.js.map +0 -1
- package/dist/enums/index.d.ts +0 -10
- package/dist/enums/index.js +0 -11
- package/dist/enums/index.js.map +0 -1
- package/dist/errors/index.d.ts +0 -153
- package/dist/errors/index.js +0 -179
- package/dist/errors/index.js.map +0 -1
- package/dist/force/AtmosphericDrag.d.ts +0 -50
- package/dist/force/AtmosphericDrag.js +0 -92
- package/dist/force/AtmosphericDrag.js.map +0 -1
- package/dist/force/EarthGravity.d.ts +0 -53
- package/dist/force/EarthGravity.js +0 -142
- package/dist/force/EarthGravity.js.map +0 -1
- package/dist/force/Force.d.ts +0 -26
- package/dist/force/Force.js +0 -22
- package/dist/force/Force.js.map +0 -1
- package/dist/force/ForceModel.d.ts +0 -45
- package/dist/force/ForceModel.js +0 -83
- package/dist/force/ForceModel.js.map +0 -1
- package/dist/force/Gravity.d.ts +0 -38
- package/dist/force/Gravity.js +0 -47
- package/dist/force/Gravity.js.map +0 -1
- package/dist/force/SolarRadiationPressure.d.ts +0 -26
- package/dist/force/SolarRadiationPressure.js +0 -45
- package/dist/force/SolarRadiationPressure.js.map +0 -1
- package/dist/force/ThirdBodyGravity.d.ts +0 -26
- package/dist/force/ThirdBodyGravity.js +0 -59
- package/dist/force/ThirdBodyGravity.js.map +0 -1
- package/dist/force/Thrust.d.ts +0 -34
- package/dist/force/Thrust.js +0 -58
- package/dist/force/Thrust.js.map +0 -1
- package/dist/force/index.d.ts +0 -8
- package/dist/force/index.js +0 -9
- package/dist/force/index.js.map +0 -1
- package/dist/interfaces/BaseObjectParams.d.ts +0 -30
- package/dist/interfaces/BaseObjectParams.js +0 -24
- package/dist/interfaces/BaseObjectParams.js.map +0 -1
- package/dist/interfaces/ClassicalElementsParams.d.ts +0 -33
- package/dist/interfaces/ClassicalElementsParams.js +0 -24
- package/dist/interfaces/ClassicalElementsParams.js.map +0 -1
- package/dist/interfaces/EquinoctialElementsParams.d.ts +0 -35
- package/dist/interfaces/EquinoctialElementsParams.js +0 -24
- package/dist/interfaces/EquinoctialElementsParams.js.map +0 -1
- package/dist/interfaces/GroundPositionParams.d.ts +0 -28
- package/dist/interfaces/GroundPositionParams.js +0 -24
- package/dist/interfaces/GroundPositionParams.js.map +0 -1
- package/dist/interfaces/OmmFormat.d.ts +0 -62
- package/dist/interfaces/OmmFormat.js +0 -2
- package/dist/interfaces/OmmFormat.js.map +0 -1
- package/dist/interfaces/OptionsParams.d.ts +0 -3
- package/dist/interfaces/OptionsParams.js +0 -2
- package/dist/interfaces/OptionsParams.js.map +0 -1
- package/dist/interfaces/SatelliteParams.d.ts +0 -38
- package/dist/interfaces/SatelliteParams.js +0 -2
- package/dist/interfaces/SatelliteParams.js.map +0 -1
- package/dist/interfaces/StarObjectParams.d.ts +0 -10
- package/dist/interfaces/StarObjectParams.js +0 -2
- package/dist/interfaces/StarObjectParams.js.map +0 -1
- package/dist/interfaces/TimeVariables.d.ts +0 -6
- package/dist/interfaces/TimeVariables.js +0 -2
- package/dist/interfaces/TimeVariables.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -7
- package/dist/interfaces/index.js +0 -2
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interpolator/ChebyshevCoefficients.d.ts +0 -50
- package/dist/interpolator/ChebyshevCoefficients.js +0 -94
- package/dist/interpolator/ChebyshevCoefficients.js.map +0 -1
- package/dist/interpolator/ChebyshevInterpolator.d.ts +0 -38
- package/dist/interpolator/ChebyshevInterpolator.js +0 -71
- package/dist/interpolator/ChebyshevInterpolator.js.map +0 -1
- package/dist/interpolator/CubicSpline.d.ts +0 -35
- package/dist/interpolator/CubicSpline.js +0 -69
- package/dist/interpolator/CubicSpline.js.map +0 -1
- package/dist/interpolator/CubicSplineInterpolator.d.ts +0 -36
- package/dist/interpolator/CubicSplineInterpolator.js +0 -80
- package/dist/interpolator/CubicSplineInterpolator.js.map +0 -1
- package/dist/interpolator/FieldInterpolator.d.ts +0 -28
- package/dist/interpolator/FieldInterpolator.js +0 -24
- package/dist/interpolator/FieldInterpolator.js.map +0 -1
- package/dist/interpolator/Interpolator.d.ts +0 -22
- package/dist/interpolator/Interpolator.js +0 -47
- package/dist/interpolator/Interpolator.js.map +0 -1
- package/dist/interpolator/LagrangeInterpolator.d.ts +0 -40
- package/dist/interpolator/LagrangeInterpolator.js +0 -159
- package/dist/interpolator/LagrangeInterpolator.js.map +0 -1
- package/dist/interpolator/StateInterpolator.d.ts +0 -27
- package/dist/interpolator/StateInterpolator.js +0 -27
- package/dist/interpolator/StateInterpolator.js.map +0 -1
- package/dist/interpolator/VerletBlendInterpolator.d.ts +0 -43
- package/dist/interpolator/VerletBlendInterpolator.js +0 -118
- package/dist/interpolator/VerletBlendInterpolator.js.map +0 -1
- package/dist/interpolator/index.d.ts +0 -31
- package/dist/interpolator/index.js +0 -32
- package/dist/interpolator/index.js.map +0 -1
- package/dist/main.js.map +0 -1
- package/dist/maneuver/TwoBurnOrbitTransfer.d.ts +0 -41
- package/dist/maneuver/TwoBurnOrbitTransfer.js +0 -65
- package/dist/maneuver/TwoBurnOrbitTransfer.js.map +0 -1
- package/dist/maneuver/Waypoint.d.ts +0 -91
- package/dist/maneuver/Waypoint.js +0 -179
- package/dist/maneuver/Waypoint.js.map +0 -1
- package/dist/maneuver/index.d.ts +0 -24
- package/dist/maneuver/index.js +0 -25
- package/dist/maneuver/index.js.map +0 -1
- package/dist/objects/AccessCalculator.d.ts +0 -112
- package/dist/objects/AccessCalculator.js +0 -268
- package/dist/objects/AccessCalculator.js.map +0 -1
- package/dist/objects/AccessWindow.d.ts +0 -95
- package/dist/objects/AccessWindow.js +0 -69
- package/dist/objects/AccessWindow.js.map +0 -1
- package/dist/objects/BaseObject.d.ts +0 -119
- package/dist/objects/BaseObject.js +0 -203
- package/dist/objects/BaseObject.js.map +0 -1
- package/dist/objects/CenterBody.d.ts +0 -41
- package/dist/objects/CenterBody.js +0 -85
- package/dist/objects/CenterBody.js.map +0 -1
- package/dist/objects/DynamicGroundObject.d.ts +0 -309
- package/dist/objects/DynamicGroundObject.js +0 -758
- package/dist/objects/DynamicGroundObject.js.map +0 -1
- package/dist/objects/EphemerisSatellite.d.ts +0 -209
- package/dist/objects/EphemerisSatellite.js +0 -480
- package/dist/objects/EphemerisSatellite.js.map +0 -1
- package/dist/objects/GroundObject.d.ts +0 -124
- package/dist/objects/GroundObject.js +0 -192
- package/dist/objects/GroundObject.js.map +0 -1
- package/dist/objects/GroundStation.d.ts +0 -60
- package/dist/objects/GroundStation.js +0 -113
- package/dist/objects/GroundStation.js.map +0 -1
- package/dist/objects/History.d.ts +0 -101
- package/dist/objects/History.js +0 -180
- package/dist/objects/History.js.map +0 -1
- package/dist/objects/InterpolatorType.d.ts +0 -39
- package/dist/objects/InterpolatorType.js +0 -41
- package/dist/objects/InterpolatorType.js.map +0 -1
- package/dist/objects/LandObject.d.ts +0 -38
- package/dist/objects/LandObject.js +0 -48
- package/dist/objects/LandObject.js.map +0 -1
- package/dist/objects/Marker.d.ts +0 -24
- package/dist/objects/Marker.js +0 -30
- package/dist/objects/Marker.js.map +0 -1
- package/dist/objects/ObjectTypes.d.ts +0 -60
- package/dist/objects/ObjectTypes.js +0 -18
- package/dist/objects/ObjectTypes.js.map +0 -1
- package/dist/objects/Satellite.d.ts +0 -443
- package/dist/objects/Satellite.js +0 -843
- package/dist/objects/Satellite.js.map +0 -1
- package/dist/objects/SpaceObject.d.ts +0 -205
- package/dist/objects/SpaceObject.js +0 -149
- package/dist/objects/SpaceObject.js.map +0 -1
- package/dist/objects/Star.d.ts +0 -44
- package/dist/objects/Star.js +0 -95
- package/dist/objects/Star.js.map +0 -1
- package/dist/objects/VisualizationHelpers.d.ts +0 -148
- package/dist/objects/VisualizationHelpers.js +0 -218
- package/dist/objects/VisualizationHelpers.js.map +0 -1
- package/dist/objects/index.d.ts +0 -24
- package/dist/objects/index.js +0 -16
- package/dist/objects/index.js.map +0 -1
- package/dist/observation/Observation.d.ts +0 -89
- package/dist/observation/Observation.js +0 -51
- package/dist/observation/Observation.js.map +0 -1
- package/dist/observation/ObservationOptical.d.ts +0 -48
- package/dist/observation/ObservationOptical.js +0 -105
- package/dist/observation/ObservationOptical.js.map +0 -1
- package/dist/observation/ObservationRadar.d.ts +0 -46
- package/dist/observation/ObservationRadar.js +0 -96
- package/dist/observation/ObservationRadar.js.map +0 -1
- package/dist/observation/ObservationUtils.d.ts +0 -22
- package/dist/observation/ObservationUtils.js +0 -46
- package/dist/observation/ObservationUtils.js.map +0 -1
- package/dist/observation/PropagatorPairs.d.ts +0 -32
- package/dist/observation/PropagatorPairs.js +0 -43
- package/dist/observation/PropagatorPairs.js.map +0 -1
- package/dist/observation/RAE.d.ts +0 -111
- package/dist/observation/RAE.js +0 -214
- package/dist/observation/RAE.js.map +0 -1
- package/dist/observation/RadecGeocentric.d.ts +0 -111
- package/dist/observation/RadecGeocentric.js +0 -169
- package/dist/observation/RadecGeocentric.js.map +0 -1
- package/dist/observation/RadecTopocentric.d.ts +0 -123
- package/dist/observation/RadecTopocentric.js +0 -200
- package/dist/observation/RadecTopocentric.js.map +0 -1
- package/dist/observation/index.d.ts +0 -26
- package/dist/observation/index.js +0 -27
- package/dist/observation/index.js.map +0 -1
- package/dist/operations/BoxMuller.d.ts +0 -46
- package/dist/operations/BoxMuller.js +0 -77
- package/dist/operations/BoxMuller.js.map +0 -1
- package/dist/operations/EulerAngles.d.ts +0 -105
- package/dist/operations/EulerAngles.js +0 -161
- package/dist/operations/EulerAngles.js.map +0 -1
- package/dist/operations/Matrix.d.ts +0 -170
- package/dist/operations/Matrix.js +0 -405
- package/dist/operations/Matrix.js.map +0 -1
- package/dist/operations/Quaternion.d.ts +0 -56
- package/dist/operations/Quaternion.js +0 -167
- package/dist/operations/Quaternion.js.map +0 -1
- package/dist/operations/Random.d.ts +0 -40
- package/dist/operations/Random.js +0 -50
- package/dist/operations/Random.js.map +0 -1
- package/dist/operations/RandomGaussianSource.d.ts +0 -24
- package/dist/operations/RandomGaussianSource.js +0 -43
- package/dist/operations/RandomGaussianSource.js.map +0 -1
- package/dist/operations/Vector.d.ts +0 -262
- package/dist/operations/Vector.js +0 -415
- package/dist/operations/Vector.js.map +0 -1
- package/dist/operations/Vector3D.d.ts +0 -80
- package/dist/operations/Vector3D.js +0 -224
- package/dist/operations/Vector3D.js.map +0 -1
- package/dist/operations/index.d.ts +0 -4
- package/dist/operations/index.js +0 -5
- package/dist/operations/index.js.map +0 -1
- package/dist/operations/operations.d.ts +0 -26
- package/dist/operations/operations.js +0 -27
- package/dist/operations/operations.js.map +0 -1
- package/dist/optimize/ChebyshevCompressor.d.ts +0 -80
- package/dist/optimize/ChebyshevCompressor.js +0 -128
- package/dist/optimize/ChebyshevCompressor.js.map +0 -1
- package/dist/optimize/DownhillSimplex.d.ts +0 -98
- package/dist/optimize/DownhillSimplex.js +0 -216
- package/dist/optimize/DownhillSimplex.js.map +0 -1
- package/dist/optimize/GoldenSection.d.ts +0 -177
- package/dist/optimize/GoldenSection.js +0 -202
- package/dist/optimize/GoldenSection.js.map +0 -1
- package/dist/optimize/PolynomialRegression.d.ts +0 -151
- package/dist/optimize/PolynomialRegression.js +0 -184
- package/dist/optimize/PolynomialRegression.js.map +0 -1
- package/dist/optimize/SimpleLinearRegression.d.ts +0 -153
- package/dist/optimize/SimpleLinearRegression.js +0 -212
- package/dist/optimize/SimpleLinearRegression.js.map +0 -1
- package/dist/optimize/index.d.ts +0 -5
- package/dist/optimize/index.js +0 -6
- package/dist/optimize/index.js.map +0 -1
- package/dist/optimize/internal/PolynomicalRegressionResult.d.ts +0 -118
- package/dist/optimize/internal/PolynomicalRegressionResult.js +0 -123
- package/dist/optimize/internal/PolynomicalRegressionResult.js.map +0 -1
- package/dist/optimize/internal/SimplexEntry.d.ts +0 -150
- package/dist/optimize/internal/SimplexEntry.js +0 -147
- package/dist/optimize/internal/SimplexEntry.js.map +0 -1
- package/dist/orbit-design/RepeatGroundTrack.d.ts +0 -184
- package/dist/orbit-design/RepeatGroundTrack.js +0 -359
- package/dist/orbit-design/RepeatGroundTrack.js.map +0 -1
- package/dist/orbit-design/index.d.ts +0 -18
- package/dist/orbit-design/index.js +0 -18
- package/dist/orbit-design/index.js.map +0 -1
- package/dist/orbit-determination/BatchLeastSquaresOD.d.ts +0 -69
- package/dist/orbit-determination/BatchLeastSquaresOD.js +0 -143
- package/dist/orbit-determination/BatchLeastSquaresOD.js.map +0 -1
- package/dist/orbit-determination/BatchLeastSquaresResult.d.ts +0 -31
- package/dist/orbit-determination/BatchLeastSquaresResult.js +0 -36
- package/dist/orbit-determination/BatchLeastSquaresResult.js.map +0 -1
- package/dist/orbit-determination/GaussIOD.d.ts +0 -98
- package/dist/orbit-determination/GaussIOD.js +0 -294
- package/dist/orbit-determination/GaussIOD.js.map +0 -1
- package/dist/orbit-determination/GibbsIOD.d.ts +0 -38
- package/dist/orbit-determination/GibbsIOD.js +0 -77
- package/dist/orbit-determination/GibbsIOD.js.map +0 -1
- package/dist/orbit-determination/GoodingIOD.d.ts +0 -155
- package/dist/orbit-determination/GoodingIOD.js +0 -492
- package/dist/orbit-determination/GoodingIOD.js.map +0 -1
- package/dist/orbit-determination/HerrickGibbsIOD.d.ts +0 -33
- package/dist/orbit-determination/HerrickGibbsIOD.js +0 -50
- package/dist/orbit-determination/HerrickGibbsIOD.js.map +0 -1
- package/dist/orbit-determination/LambertIOD.d.ts +0 -59
- package/dist/orbit-determination/LambertIOD.js +0 -213
- package/dist/orbit-determination/LambertIOD.js.map +0 -1
- package/dist/orbit-determination/LevenbergMarquardtOD.d.ts +0 -72
- package/dist/orbit-determination/LevenbergMarquardtOD.js +0 -202
- package/dist/orbit-determination/LevenbergMarquardtOD.js.map +0 -1
- package/dist/orbit-determination/LevenbergMarquardtResult.d.ts +0 -36
- package/dist/orbit-determination/LevenbergMarquardtResult.js +0 -43
- package/dist/orbit-determination/LevenbergMarquardtResult.js.map +0 -1
- package/dist/orbit-determination/ModifiedGoodingIOD.d.ts +0 -41
- package/dist/orbit-determination/ModifiedGoodingIOD.js +0 -94
- package/dist/orbit-determination/ModifiedGoodingIOD.js.map +0 -1
- package/dist/orbit-determination/index.d.ts +0 -9
- package/dist/orbit-determination/index.js +0 -10
- package/dist/orbit-determination/index.js.map +0 -1
- package/dist/parsers/CdmExporter.d.ts +0 -85
- package/dist/parsers/CdmExporter.js +0 -235
- package/dist/parsers/CdmExporter.js.map +0 -1
- package/dist/parsers/CdmParser.d.ts +0 -97
- package/dist/parsers/CdmParser.js +0 -396
- package/dist/parsers/CdmParser.js.map +0 -1
- package/dist/parsers/CdmTypes.d.ts +0 -240
- package/dist/parsers/CdmTypes.js +0 -18
- package/dist/parsers/CdmTypes.js.map +0 -1
- package/dist/parsers/HorizonsParser.d.ts +0 -128
- package/dist/parsers/HorizonsParser.js +0 -320
- package/dist/parsers/HorizonsParser.js.map +0 -1
- package/dist/parsers/OemParser.d.ts +0 -56
- package/dist/parsers/OemParser.js +0 -235
- package/dist/parsers/OemParser.js.map +0 -1
- package/dist/parsers/OemTypes.d.ts +0 -100
- package/dist/parsers/OemTypes.js +0 -18
- package/dist/parsers/OemTypes.js.map +0 -1
- package/dist/parsers/index.d.ts +0 -23
- package/dist/parsers/index.js +0 -24
- package/dist/parsers/index.js.map +0 -1
- package/dist/propagator/DormandPrince54Propagator.d.ts +0 -28
- package/dist/propagator/DormandPrince54Propagator.js +0 -64
- package/dist/propagator/DormandPrince54Propagator.js.map +0 -1
- package/dist/propagator/KeplerPropagator.d.ts +0 -35
- package/dist/propagator/KeplerPropagator.js +0 -83
- package/dist/propagator/KeplerPropagator.js.map +0 -1
- package/dist/propagator/Propagator.d.ts +0 -34
- package/dist/propagator/Propagator.js +0 -162
- package/dist/propagator/Propagator.js.map +0 -1
- package/dist/propagator/RkCheckpoint.d.ts +0 -22
- package/dist/propagator/RkCheckpoint.js +0 -27
- package/dist/propagator/RkCheckpoint.js.map +0 -1
- package/dist/propagator/RkResult.d.ts +0 -23
- package/dist/propagator/RkResult.js +0 -30
- package/dist/propagator/RkResult.js.map +0 -1
- package/dist/propagator/RungeKutta4Propagator.d.ts +0 -50
- package/dist/propagator/RungeKutta4Propagator.js +0 -141
- package/dist/propagator/RungeKutta4Propagator.js.map +0 -1
- package/dist/propagator/RungeKutta89Propagator.d.ts +0 -28
- package/dist/propagator/RungeKutta89Propagator.js +0 -126
- package/dist/propagator/RungeKutta89Propagator.js.map +0 -1
- package/dist/propagator/RungeKuttaAdaptive.d.ts +0 -51
- package/dist/propagator/RungeKuttaAdaptive.js +0 -199
- package/dist/propagator/RungeKuttaAdaptive.js.map +0 -1
- package/dist/propagator/Sgp4Propagator.d.ts +0 -76
- package/dist/propagator/Sgp4Propagator.js +0 -96
- package/dist/propagator/Sgp4Propagator.js.map +0 -1
- package/dist/propagator/index.d.ts +0 -9
- package/dist/propagator/index.js +0 -10
- package/dist/propagator/index.js.map +0 -1
- package/dist/scheduling/ContactScheduler.d.ts +0 -248
- package/dist/scheduling/ContactScheduler.js +0 -503
- package/dist/scheduling/ContactScheduler.js.map +0 -1
- package/dist/scheduling/ScheduledContact.d.ts +0 -155
- package/dist/scheduling/ScheduledContact.js +0 -189
- package/dist/scheduling/ScheduledContact.js.map +0 -1
- package/dist/scheduling/index.d.ts +0 -5
- package/dist/scheduling/index.js +0 -4
- package/dist/scheduling/index.js.map +0 -1
- package/dist/sensor/FieldOfView.d.ts +0 -250
- package/dist/sensor/FieldOfView.js +0 -470
- package/dist/sensor/FieldOfView.js.map +0 -1
- package/dist/sensor/LaserRangingSensor.d.ts +0 -122
- package/dist/sensor/LaserRangingSensor.js +0 -174
- package/dist/sensor/LaserRangingSensor.js.map +0 -1
- package/dist/sensor/MechanicalRadar.d.ts +0 -86
- package/dist/sensor/MechanicalRadar.js +0 -130
- package/dist/sensor/MechanicalRadar.js.map +0 -1
- package/dist/sensor/OpticalSensor.d.ts +0 -111
- package/dist/sensor/OpticalSensor.js +0 -164
- package/dist/sensor/OpticalSensor.js.map +0 -1
- package/dist/sensor/PassiveRFSensor.d.ts +0 -115
- package/dist/sensor/PassiveRFSensor.js +0 -168
- package/dist/sensor/PassiveRFSensor.js.map +0 -1
- package/dist/sensor/PhasedArrayRadar.d.ts +0 -170
- package/dist/sensor/PhasedArrayRadar.js +0 -290
- package/dist/sensor/PhasedArrayRadar.js.map +0 -1
- package/dist/sensor/RadarSensor.d.ts +0 -94
- package/dist/sensor/RadarSensor.js +0 -106
- package/dist/sensor/RadarSensor.js.map +0 -1
- package/dist/sensor/Sensor.d.ts +0 -271
- package/dist/sensor/Sensor.js +0 -343
- package/dist/sensor/Sensor.js.map +0 -1
- package/dist/sensor/index.d.ts +0 -74
- package/dist/sensor/index.js +0 -70
- package/dist/sensor/index.js.map +0 -1
- package/dist/sgp4/index.d.ts +0 -25
- package/dist/sgp4/index.js +0 -25
- package/dist/sgp4/index.js.map +0 -1
- package/dist/sgp4/sgp4-error.d.ts +0 -22
- package/dist/sgp4/sgp4-error.js +0 -44
- package/dist/sgp4/sgp4-error.js.map +0 -1
- package/dist/sgp4/sgp4.d.ts +0 -99
- package/dist/sgp4/sgp4.js +0 -3170
- package/dist/sgp4/sgp4.js.map +0 -1
- package/dist/smoothing/ExponentialSmoothing.d.ts +0 -37
- package/dist/smoothing/ExponentialSmoothing.js +0 -75
- package/dist/smoothing/ExponentialSmoothing.js.map +0 -1
- package/dist/time/Epoch.d.ts +0 -81
- package/dist/time/Epoch.js +0 -146
- package/dist/time/Epoch.js.map +0 -1
- package/dist/time/EpochGPS.d.ts +0 -106
- package/dist/time/EpochGPS.js +0 -134
- package/dist/time/EpochGPS.js.map +0 -1
- package/dist/time/EpochTAI.d.ts +0 -62
- package/dist/time/EpochTAI.js +0 -63
- package/dist/time/EpochTAI.js.map +0 -1
- package/dist/time/EpochTDB.d.ts +0 -72
- package/dist/time/EpochTDB.js +0 -73
- package/dist/time/EpochTDB.js.map +0 -1
- package/dist/time/EpochTT.d.ts +0 -75
- package/dist/time/EpochTT.js +0 -76
- package/dist/time/EpochTT.js.map +0 -1
- package/dist/time/EpochUTC.d.ts +0 -123
- package/dist/time/EpochUTC.js +0 -200
- package/dist/time/EpochUTC.js.map +0 -1
- package/dist/time/EpochWindow.d.ts +0 -28
- package/dist/time/EpochWindow.js +0 -31
- package/dist/time/EpochWindow.js.map +0 -1
- package/dist/time/TimeStamped.d.ts +0 -61
- package/dist/time/TimeStamped.js +0 -73
- package/dist/time/TimeStamped.js.map +0 -1
- package/dist/time/index.d.ts +0 -8
- package/dist/time/index.js +0 -9
- package/dist/time/index.js.map +0 -1
- package/dist/transforms/TransformCache.d.ts +0 -27
- package/dist/transforms/TransformCache.js +0 -41
- package/dist/transforms/TransformCache.js.map +0 -1
- package/dist/transforms/conversions.d.ts +0 -63
- package/dist/transforms/conversions.js +0 -89
- package/dist/transforms/conversions.js.map +0 -1
- package/dist/transforms/index.d.ts +0 -2
- package/dist/transforms/index.js +0 -3
- package/dist/transforms/index.js.map +0 -1
- package/dist/transforms/transforms.d.ts +0 -241
- package/dist/transforms/transforms.js +0 -479
- package/dist/transforms/transforms.js.map +0 -1
- package/dist/types/types.d.ts +0 -757
- package/dist/types/types.js +0 -90
- package/dist/types/types.js.map +0 -1
- package/dist/utils/constants.d.ts +0 -80
- package/dist/utils/constants.js +0 -87
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/create-covariance-from-tle.d.ts +0 -18
- package/dist/utils/create-covariance-from-tle.js +0 -57
- package/dist/utils/create-covariance-from-tle.js.map +0 -1
- package/dist/utils/functions.d.ts +0 -236
- package/dist/utils/functions.js +0 -501
- package/dist/utils/functions.js.map +0 -1
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/index.js +0 -6
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/jacobian.d.ts +0 -17
- package/dist/utils/jacobian.js +0 -34
- package/dist/utils/jacobian.js.map +0 -1
- package/dist/utils/linearDistance.d.ts +0 -8
- package/dist/utils/linearDistance.js +0 -10
- package/dist/utils/linearDistance.js.map +0 -1
- package/docs/README.md +0 -151
- package/docs/getting-started.md +0 -792
- package/docs/lambert-satellite-integration-guide.md +0 -766
- package/docs/user-guide.md +0 -1935
- package/jest.config.mjs +0 -29
- package/src/body/CelestialBody.ts +0 -316
- package/src/body/CelestialBodyType.ts +0 -55
- package/src/body/Earth.ts +0 -260
- package/src/body/EphemerisBody.ts +0 -349
- package/src/body/MoonBody.ts +0 -552
- package/src/body/NutationAngles.ts +0 -40
- package/src/body/PlanetBody.ts +0 -354
- package/src/body/PrecessionAngles.ts +0 -31
- package/src/body/SolarSystem.ts +0 -276
- package/src/body/SunBody.ts +0 -538
- package/src/body/__tests__/Earth.test.ts +0 -135
- package/src/body/__tests__/EphemerisBody.test.ts +0 -323
- package/src/body/__tests__/MoonBody.test.ts +0 -198
- package/src/body/__tests__/PlanetBody.test.ts +0 -257
- package/src/body/__tests__/SolarSystem.test.ts +0 -237
- package/src/body/__tests__/SunBody.test.ts +0 -227
- package/src/body/__tests__/__snapshots__/Earth.test.ts.snap +0 -39
- package/src/body/index.ts +0 -64
- package/src/body/suncalc.LICENSE.md +0 -18
- package/src/comm/Antenna.ts +0 -213
- package/src/comm/Beacon.ts +0 -328
- package/src/comm/CommTypes.ts +0 -216
- package/src/comm/CommunicationDevice.ts +0 -199
- package/src/comm/Receiver.ts +0 -263
- package/src/comm/Transmitter.ts +0 -349
- package/src/comm/Transponder.ts +0 -360
- package/src/comm/__tests__/Antenna.test.ts +0 -155
- package/src/comm/__tests__/Beacon.test.ts +0 -333
- package/src/comm/__tests__/CommTypes.test.ts +0 -165
- package/src/comm/__tests__/Receiver.test.ts +0 -215
- package/src/comm/__tests__/Transmitter.test.ts +0 -164
- package/src/comm/__tests__/Transponder.test.ts +0 -181
- package/src/comm/index.ts +0 -60
- package/src/conjunction/CatalogScreener.ts +0 -322
- package/src/conjunction/ConjunctionAssessment.ts +0 -410
- package/src/conjunction/ConjunctionEvent.ts +0 -185
- package/src/conjunction/CovarianceRealism.ts +0 -472
- package/src/conjunction/ProbabilityOfCollision.ts +0 -302
- package/src/conjunction/ScreeningFilter.ts +0 -206
- package/src/conjunction/__tests__/CatalogScreener.test.ts +0 -280
- package/src/conjunction/__tests__/ConjunctionAssessment.basic.test.ts +0 -250
- package/src/conjunction/__tests__/ConjunctionAssessment.highfidelity.test.ts +0 -76
- package/src/conjunction/__tests__/CovarianceRealism.test.ts +0 -296
- package/src/conjunction/index.ts +0 -35
- package/src/constellation/ConstellationGenerator.ts +0 -377
- package/src/constellation/__tests__/ConstellationGenerator.test.ts +0 -446
- package/src/constellation/index.ts +0 -18
- package/src/coordinate/ClassicalElements.ts +0 -394
- package/src/coordinate/EquinoctialElements.ts +0 -189
- package/src/coordinate/FormatTle.ts +0 -219
- package/src/coordinate/Geodetic.ts +0 -191
- package/src/coordinate/Hill.ts +0 -326
- package/src/coordinate/ITRF.ts +0 -146
- package/src/coordinate/J2000.ts +0 -130
- package/src/coordinate/README.md +0 -788
- package/src/coordinate/RIC.ts +0 -87
- package/src/coordinate/RelativeState.ts +0 -101
- package/src/coordinate/StateVector.ts +0 -128
- package/src/coordinate/TEME.ts +0 -97
- package/src/coordinate/Tle.ts +0 -1025
- package/src/coordinate/__tests__/ClassicalElements.test.ts +0 -129
- package/src/coordinate/__tests__/EquinoctialElements.test.ts +0 -108
- package/src/coordinate/__tests__/FormatTle.test.ts +0 -92
- package/src/coordinate/__tests__/Geodetic.test.ts +0 -165
- package/src/coordinate/__tests__/Hill.test.ts +0 -195
- package/src/coordinate/__tests__/ITRF.test.ts +0 -231
- package/src/coordinate/__tests__/J2000.test.ts +0 -132
- package/src/coordinate/__tests__/RIC.test.ts +0 -107
- package/src/coordinate/__tests__/TEME.test.ts +0 -48
- package/src/coordinate/__tests__/Tle.test.ts +0 -185
- package/src/coordinate/__tests__/__snapshots__/ClassicalElements.test.ts.snap +0 -106
- package/src/coordinate/__tests__/__snapshots__/EquinoctialElements.test.ts.snap +0 -93
- package/src/coordinate/__tests__/__snapshots__/Geodetic.test.ts.snap +0 -54
- package/src/coordinate/__tests__/__snapshots__/ITRF.test.ts.snap +0 -321
- package/src/coordinate/__tests__/__snapshots__/J2000.test.ts.snap +0 -26
- package/src/coordinate/__tests__/__snapshots__/RIC.test.ts.snap +0 -79
- package/src/coordinate/__tests__/__snapshots__/TEME.test.ts.snap +0 -41
- package/src/coordinate/__tests__/__snapshots__/Tle.test.ts.snap +0 -180
- package/src/coordinate/index.ts +0 -13
- package/src/coordinate/tle-format-data.ts +0 -47
- package/src/covariance/CovarianceSample.ts +0 -292
- package/src/covariance/StateCovariance.ts +0 -69
- package/src/covariance/__tests__/CovarianceSample.test.ts +0 -143
- package/src/covariance/__tests__/StateCovariance.test.ts +0 -90
- package/src/covariance/index.ts +0 -3
- package/src/data/DataHandler.ts +0 -88
- package/src/data/values/Egm96Data.ts +0 -75
- package/src/data/values/HpAtmosphereData.ts +0 -76
- package/src/data/values/HpAtmosphereResult.ts +0 -41
- package/src/data/values/Iau1980Data.ts +0 -63
- package/src/data/values/LeapSecond.ts +0 -37
- package/src/data/values/LeapSecondData.ts +0 -113
- package/src/data/values/__tests__/Egm96Data.test.ts +0 -33
- package/src/data/values/__tests__/HpAtmosphereData.test.ts +0 -82
- package/src/data/values/__tests__/LeapSecondData.test.ts +0 -59
- package/src/data/values/egm96.ts +0 -728
- package/src/data/values/hpAtmosphere.ts +0 -79
- package/src/data/values/iau1980.ts +0 -32
- package/src/enums/AngularDiameterMethod.ts +0 -28
- package/src/enums/AngularDistanceMethod.ts +0 -28
- package/src/enums/CatalogSource.ts +0 -10
- package/src/enums/CommLink.ts +0 -7
- package/src/enums/FovFrame.ts +0 -26
- package/src/enums/FovShape.ts +0 -26
- package/src/enums/OrbitRegime.ts +0 -31
- package/src/enums/PassType.ts +0 -29
- package/src/enums/SensorType.ts +0 -34
- package/src/enums/Sgp4OpsMode.ts +0 -27
- package/src/enums/index.ts +0 -11
- package/src/errors/__tests__/errors.test.ts +0 -196
- package/src/errors/index.ts +0 -185
- package/src/fetch/horizons-constants.ts +0 -53
- package/src/fetch/horizons-interfaces.ts +0 -38
- package/src/fetch/horizons.ts +0 -300
- package/src/fetch/index.ts +0 -26
- package/src/force/AtmosphericDrag.ts +0 -120
- package/src/force/EarthGravity.ts +0 -182
- package/src/force/Force.ts +0 -31
- package/src/force/ForceModel.ts +0 -99
- package/src/force/Gravity.ts +0 -53
- package/src/force/README.md +0 -99
- package/src/force/SolarRadiationPressure.ts +0 -43
- package/src/force/ThirdBodyGravity.ts +0 -64
- package/src/force/Thrust.ts +0 -83
- package/src/force/__tests__/AtmosphericDrag.test.ts +0 -168
- package/src/force/__tests__/EarthGravity.test.ts +0 -115
- package/src/force/__tests__/ForceModel.test.ts +0 -188
- package/src/force/__tests__/Gravity.test.ts +0 -81
- package/src/force/__tests__/SolarRadiationPressure.test.ts +0 -115
- package/src/force/__tests__/ThirdBodyGravity.test.ts +0 -119
- package/src/force/__tests__/Thrust.test.ts +0 -132
- package/src/force/index.ts +0 -9
- package/src/interfaces/BaseObjectParams.ts +0 -32
- package/src/interfaces/ClassicalElementsParams.ts +0 -35
- package/src/interfaces/EquinoctialElementsParams.ts +0 -37
- package/src/interfaces/GroundPositionParams.ts +0 -30
- package/src/interfaces/OmmFormat.ts +0 -63
- package/src/interfaces/OptionsParams.ts +0 -3
- package/src/interfaces/SatelliteParams.ts +0 -57
- package/src/interfaces/StarObjectParams.ts +0 -11
- package/src/interfaces/TimeVariables.ts +0 -7
- package/src/interfaces/index.ts +0 -8
- package/src/interpolator/ChebyshevCoefficients.ts +0 -109
- package/src/interpolator/ChebyshevInterpolator.ts +0 -87
- package/src/interpolator/CubicSpline.ts +0 -72
- package/src/interpolator/CubicSplineInterpolator.ts +0 -90
- package/src/interpolator/FieldInterpolator.ts +0 -35
- package/src/interpolator/Interpolator.ts +0 -56
- package/src/interpolator/LagrangeInterpolator.ts +0 -192
- package/src/interpolator/StateInterpolator.ts +0 -37
- package/src/interpolator/VerletBlendInterpolator.ts +0 -146
- package/src/interpolator/__tests__/ChebyshevCoefficients.test.ts +0 -105
- package/src/interpolator/__tests__/ChebyshevInterpolator.test.ts +0 -81
- package/src/interpolator/__tests__/CubicSpline.test.ts +0 -80
- package/src/interpolator/__tests__/CubicSplineInterpolator.test.ts +0 -94
- package/src/interpolator/__tests__/FieldInterpolator.test.ts +0 -59
- package/src/interpolator/__tests__/Interpolator.test.ts +0 -131
- package/src/interpolator/__tests__/LagrangeInterpolator.test.ts +0 -121
- package/src/interpolator/__tests__/StateInterpolator.test.ts +0 -57
- package/src/interpolator/__tests__/VerletBlendInterpolator.test.ts +0 -116
- package/src/interpolator/index.ts +0 -32
- package/src/main.ts +0 -87
- package/src/maneuver/TwoBurnOrbitTransfer.ts +0 -79
- package/src/maneuver/Waypoint.ts +0 -267
- package/src/maneuver/__tests__/TwoBurnOrbitTransfer.test.ts +0 -90
- package/src/maneuver/__tests__/Waypoint.test.ts +0 -427
- package/src/maneuver/index.ts +0 -25
- package/src/objects/AccessCalculator.ts +0 -345
- package/src/objects/AccessWindow.ts +0 -129
- package/src/objects/BaseObject.ts +0 -242
- package/src/objects/CenterBody.ts +0 -88
- package/src/objects/DynamicGroundObject.ts +0 -975
- package/src/objects/EphemerisSatellite.ts +0 -629
- package/src/objects/GroundObject.ts +0 -246
- package/src/objects/GroundStation.ts +0 -130
- package/src/objects/History.ts +0 -228
- package/src/objects/InterpolatorType.ts +0 -42
- package/src/objects/LandObject.ts +0 -62
- package/src/objects/Marker.ts +0 -32
- package/src/objects/ObjectTypes.ts +0 -66
- package/src/objects/Satellite.ts +0 -1013
- package/src/objects/SpaceObject.ts +0 -304
- package/src/objects/Star.ts +0 -135
- package/src/objects/VisualizationHelpers.ts +0 -324
- package/src/objects/__tests__/AccessCalculator.test.ts +0 -499
- package/src/objects/__tests__/DynamicGroundObject.test.ts +0 -859
- package/src/objects/__tests__/EphemerisSatellite.test.ts +0 -589
- package/src/objects/__tests__/GroundStation.test.ts +0 -204
- package/src/objects/__tests__/Satellite.test.ts +0 -487
- package/src/objects/__tests__/SpaceObject.rae.test.ts +0 -156
- package/src/objects/__tests__/VisualizationHelpers.test.ts +0 -438
- package/src/objects/index.ts +0 -31
- package/src/observation/Observation.ts +0 -113
- package/src/observation/ObservationOptical.ts +0 -146
- package/src/observation/ObservationRadar.ts +0 -135
- package/src/observation/ObservationUtils.ts +0 -69
- package/src/observation/PropagatorPairs.ts +0 -45
- package/src/observation/RAE.ts +0 -261
- package/src/observation/RadecGeocentric.ts +0 -206
- package/src/observation/RadecTopocentric.ts +0 -247
- package/src/observation/__tests__/RAE.test.ts +0 -135
- package/src/observation/__tests__/RadecGeocentric.test.ts +0 -107
- package/src/observation/__tests__/RadecTopocentric.test.ts +0 -121
- package/src/observation/__tests__/__snapshots__/RAE.test.ts.snap +0 -91
- package/src/observation/__tests__/__snapshots__/RadecGeocentric.test.ts.snap +0 -71
- package/src/observation/__tests__/__snapshots__/RadecTopocentric.test.ts.snap +0 -71
- package/src/observation/index.ts +0 -28
- package/src/operations/BoxMuller.ts +0 -87
- package/src/operations/EulerAngles.ts +0 -183
- package/src/operations/Matrix.ts +0 -473
- package/src/operations/Quaternion.ts +0 -222
- package/src/operations/Random.ts +0 -54
- package/src/operations/RandomGaussianSource.ts +0 -51
- package/src/operations/Vector.ts +0 -484
- package/src/operations/Vector3D.ts +0 -272
- package/src/operations/__tests__/Matrix.test.ts +0 -277
- package/src/operations/__tests__/Random.test.ts +0 -24
- package/src/operations/__tests__/Vector.test.ts +0 -269
- package/src/operations/__tests__/Vector3D.test.ts +0 -100
- package/src/operations/__tests__/__snapshots__/Matrix.test.ts.snap +0 -161
- package/src/operations/__tests__/__snapshots__/Random.test.ts.snap +0 -7
- package/src/operations/__tests__/__snapshots__/Vector.test.ts.snap +0 -218
- package/src/operations/__tests__/__snapshots__/Vector3D.test.ts.snap +0 -138
- package/src/operations/index.ts +0 -5
- package/src/operations/operations.ts +0 -28
- package/src/optimize/ChebyshevCompressor.ts +0 -141
- package/src/optimize/DownhillSimplex.ts +0 -246
- package/src/optimize/GoldenSection.ts +0 -230
- package/src/optimize/PolynomialRegression.ts +0 -211
- package/src/optimize/README.md +0 -343
- package/src/optimize/SimpleLinearRegression.ts +0 -227
- package/src/optimize/__tests__/ChebyshevCompressor.test.ts +0 -40
- package/src/optimize/__tests__/DownhillSimplex.test.ts +0 -168
- package/src/optimize/__tests__/GoldenSection.test.ts +0 -21
- package/src/optimize/__tests__/PolynomialRegression.test.ts +0 -24
- package/src/optimize/__tests__/SimpleLinearRegression.test.ts +0 -31
- package/src/optimize/index.ts +0 -6
- package/src/optimize/internal/PolynomicalRegressionResult.ts +0 -126
- package/src/optimize/internal/SimplexEntry.ts +0 -169
- package/src/orbit-design/RepeatGroundTrack.ts +0 -516
- package/src/orbit-design/__tests__/RepeatGroundTrack.test.ts +0 -526
- package/src/orbit-design/index.ts +0 -23
- package/src/orbit-determination/BatchLeastSquaresOD.ts +0 -174
- package/src/orbit-determination/BatchLeastSquaresResult.ts +0 -33
- package/src/orbit-determination/GaussIOD.ts +0 -396
- package/src/orbit-determination/GibbsIOD.ts +0 -98
- package/src/orbit-determination/GoodingIOD.ts +0 -680
- package/src/orbit-determination/HerrickGibbsIOD.ts +0 -51
- package/src/orbit-determination/LambertIOD.ts +0 -260
- package/src/orbit-determination/LevenbergMarquardtOD.ts +0 -258
- package/src/orbit-determination/LevenbergMarquardtResult.ts +0 -42
- package/src/orbit-determination/ModifiedGoodingIOD.test.ts +0 -86
- package/src/orbit-determination/ModifiedGoodingIOD.ts +0 -145
- package/src/orbit-determination/README.md +0 -353
- package/src/orbit-determination/__tests__/BatchLeastSquaresOD.accuracy.test.ts +0 -320
- package/src/orbit-determination/__tests__/BatchLeastSquaresOD.observations.test.ts +0 -279
- package/src/orbit-determination/__tests__/BatchLeastSquaresOD.robustness.test.ts +0 -439
- package/src/orbit-determination/__tests__/GaussIOD.test.ts +0 -395
- package/src/orbit-determination/__tests__/GibbsIOD.test.ts +0 -423
- package/src/orbit-determination/__tests__/GoodingIOD.test.ts +0 -356
- package/src/orbit-determination/__tests__/HerrickGibbsIOD.test.ts +0 -501
- package/src/orbit-determination/__tests__/LambertIOD.test.ts +0 -643
- package/src/orbit-determination/__tests__/LevenbergMarquardtOD.test.ts +0 -1039
- package/src/orbit-determination/index.ts +0 -10
- package/src/parsers/CdmExporter.ts +0 -298
- package/src/parsers/CdmParser.ts +0 -474
- package/src/parsers/CdmTypes.ts +0 -259
- package/src/parsers/HorizonsParser.ts +0 -432
- package/src/parsers/OemParser.ts +0 -277
- package/src/parsers/OemTypes.ts +0 -111
- package/src/parsers/__tests__/CdmExporter.test.ts +0 -305
- package/src/parsers/__tests__/CdmParser.test.ts +0 -305
- package/src/parsers/__tests__/HorizonsParser.test.ts +0 -126
- package/src/parsers/__tests__/OemParser.test.ts +0 -398
- package/src/parsers/index.ts +0 -49
- package/src/propagator/DormandPrince54Propagator.ts +0 -73
- package/src/propagator/KeplerPropagator.ts +0 -101
- package/src/propagator/Propagator.ts +0 -253
- package/src/propagator/README.md +0 -241
- package/src/propagator/RkCheckpoint.ts +0 -25
- package/src/propagator/RkResult.ts +0 -26
- package/src/propagator/RungeKutta4Propagator.ts +0 -179
- package/src/propagator/RungeKutta89Propagator.ts +0 -132
- package/src/propagator/RungeKuttaAdaptive.ts +0 -282
- package/src/propagator/Sgp4Propagator.ts +0 -111
- package/src/propagator/__tests__/KeplerPropagator.test.ts +0 -250
- package/src/propagator/__tests__/Propagator.test.ts +0 -180
- package/src/propagator/__tests__/RungeKutta4Propagator.test.ts +0 -289
- package/src/propagator/__tests__/RungeKuttaAdaptive.test.ts +0 -244
- package/src/propagator/__tests__/Sgp4Propagator.test.ts +0 -144
- package/src/propagator/index.ts +0 -10
- package/src/scheduling/ContactScheduler.ts +0 -760
- package/src/scheduling/ScheduledContact.ts +0 -249
- package/src/scheduling/__tests__/ContactScheduler.test.ts +0 -389
- package/src/scheduling/__tests__/ScheduledContact.test.ts +0 -293
- package/src/scheduling/index.ts +0 -10
- package/src/sensor/FieldOfView.ts +0 -666
- package/src/sensor/LaserRangingSensor.ts +0 -210
- package/src/sensor/MechanicalRadar.ts +0 -156
- package/src/sensor/OpticalSensor.ts +0 -198
- package/src/sensor/PassiveRFSensor.ts +0 -205
- package/src/sensor/PhasedArrayRadar.ts +0 -352
- package/src/sensor/RadarSensor.ts +0 -150
- package/src/sensor/Sensor.ts +0 -487
- package/src/sensor/__tests__/Sensor.test.ts +0 -135
- package/src/sensor/index.ts +0 -81
- package/src/sensor/v2-docs/field-of-view-design-document.md +0 -466
- package/src/sgp4/index.ts +0 -27
- package/src/sgp4/sgp4-error.ts +0 -53
- package/src/sgp4/sgp4.LICENSE.md +0 -28
- package/src/sgp4/sgp4.ts +0 -3983
- package/src/smoothing/ExponentialSmoothing.ts +0 -83
- package/src/smoothing/__tests__/ExponentialSmoothing.test.ts +0 -108
- package/src/time/Epoch.ts +0 -165
- package/src/time/EpochGPS.ts +0 -141
- package/src/time/EpochTAI.ts +0 -63
- package/src/time/EpochTDB.ts +0 -73
- package/src/time/EpochTT.ts +0 -76
- package/src/time/EpochUTC.ts +0 -253
- package/src/time/EpochWindow.ts +0 -33
- package/src/time/README.md +0 -212
- package/src/time/TimeStamped.ts +0 -80
- package/src/time/__tests__/Epoch.test.ts +0 -250
- package/src/time/__tests__/EpochGPS.test.ts +0 -78
- package/src/time/__tests__/EpochUTC.test.ts +0 -149
- package/src/time/__tests__/EpochWindow.test.ts +0 -30
- package/src/time/__tests__/TimeStamped.test.ts +0 -62
- package/src/time/__tests__/__snapshots__/Epoch.test.ts.snap +0 -46
- package/src/time/__tests__/__snapshots__/EpochGPS.test.ts.snap +0 -13
- package/src/time/__tests__/__snapshots__/EpochUTC.test.ts.snap +0 -112
- package/src/time/__tests__/__snapshots__/TimeStamped.test.ts.snap +0 -10
- package/src/time/index.ts +0 -9
- package/src/transforms/TransformCache.ts +0 -46
- package/src/transforms/__tests__/__snapshots__/transforms.test.ts.snap +0 -16
- package/src/transforms/__tests__/__snapshots__/transforms2.test.ts.snap +0 -49
- package/src/transforms/__tests__/conversions.test.ts +0 -80
- package/src/transforms/__tests__/transforms.test.ts +0 -128
- package/src/transforms/__tests__/transforms2.test.ts +0 -275
- package/src/transforms/__tests__/transformsData.ts +0 -289
- package/src/transforms/conversions.ts +0 -99
- package/src/transforms/index.ts +0 -3
- package/src/transforms/transforms.ts +0 -614
- package/src/types/types.ts +0 -829
- package/src/utils/__tests__/__snapshots__/functions.test.ts.snap +0 -89
- package/src/utils/__tests__/__snapshots__/utils.test.ts.snap +0 -5
- package/src/utils/__tests__/create-covariance-from-tle.test.ts +0 -90
- package/src/utils/__tests__/functions.test.ts +0 -450
- package/src/utils/__tests__/jacobian.test.ts +0 -37
- package/src/utils/__tests__/linearDistance.test.ts +0 -44
- package/src/utils/__tests__/utils.test.ts +0 -164
- package/src/utils/constants.ts +0 -113
- package/src/utils/create-covariance-from-tle.ts +0 -75
- package/src/utils/functions.ts +0 -590
- package/src/utils/index.ts +0 -6
- package/src/utils/jacobian.ts +0 -42
- package/src/utils/linearDistance.ts +0 -11
- /package/{LICENSE.md → LICENSE.MD} +0 -0
|
@@ -1,359 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Theodore Kruczek
|
|
3
|
-
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
|
-
*
|
|
6
|
-
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
|
-
* terms of the GNU Affero General Public License as published by the Free Software
|
|
8
|
-
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
9
|
-
*
|
|
10
|
-
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
11
|
-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
12
|
-
* See the GNU Affero General Public License for more details.
|
|
13
|
-
*
|
|
14
|
-
* You should have received a copy of the GNU Affero General Public License along with
|
|
15
|
-
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
import { Earth } from '../body/Earth';
|
|
18
|
-
import { ClassicalElements } from '../coordinate/ClassicalElements';
|
|
19
|
-
import { ValidationError } from '../errors';
|
|
20
|
-
import { EpochUTC } from '../time/EpochUTC';
|
|
21
|
-
import { DEG2RAD, RAD2DEG, secondsPerDay, secondsPerSiderealDay, TAU } from '../utils/constants';
|
|
22
|
-
/**
|
|
23
|
-
* Sun-synchronous nodal precession rate in rad/s.
|
|
24
|
-
* Earth moves ~0.9856°/day around the Sun, so the RAAN must precess at this rate
|
|
25
|
-
* to maintain constant local solar time.
|
|
26
|
-
*/
|
|
27
|
-
const SUN_SYNC_PRECESSION_RAD_PER_SEC = (0.9856 * DEG2RAD) / secondsPerDay;
|
|
28
|
-
/**
|
|
29
|
-
* Static utility class for calculating repeat ground track (RGT) orbits.
|
|
30
|
-
*
|
|
31
|
-
* A repeat ground track orbit is one where the satellite's ground track repeats
|
|
32
|
-
* exactly after a specific number of orbital revolutions over a specific number
|
|
33
|
-
* of days. This is essential for Earth observation missions that require
|
|
34
|
-
* consistent revisit patterns.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* // Calculate Landsat-8 style orbit: 233 revs / 16 days
|
|
39
|
-
* const elements = RepeatGroundTrack.calculate(233, 16, 98.2 as Degrees);
|
|
40
|
-
* console.log(`Altitude: ${elements.semimajorAxis - Earth.radiusMean} km`);
|
|
41
|
-
*
|
|
42
|
-
* // Find RGT orbits near 700 km
|
|
43
|
-
* const orbits = RepeatGroundTrack.findNearest(
|
|
44
|
-
* 700 as Kilometers,
|
|
45
|
-
* 50 as Kilometers,
|
|
46
|
-
* { sunSynchronous: true }
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export class RepeatGroundTrack {
|
|
51
|
-
constructor() {
|
|
52
|
-
// Static-only class - disable constructor
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Calculate orbital elements for a repeat ground track orbit.
|
|
56
|
-
*
|
|
57
|
-
* The calculation accounts for J2 perturbation effects on the mean motion,
|
|
58
|
-
* which is critical for accurate altitude determination.
|
|
59
|
-
*
|
|
60
|
-
* @param revolutions - Number of orbital revolutions in repeat cycle (must be positive integer)
|
|
61
|
-
* @param days - Number of days in repeat cycle (must be positive integer)
|
|
62
|
-
* @param inclination - Orbital inclination in degrees (optional if sunSynchronous=true)
|
|
63
|
-
* @param options - Additional calculation options
|
|
64
|
-
* @returns Classical elements for the RGT orbit
|
|
65
|
-
* @throws ValidationError if parameters are invalid
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```typescript
|
|
69
|
-
* // Landsat-8 style orbit: 233 revs / 16 days, sun-synchronous
|
|
70
|
-
* const elements = RepeatGroundTrack.calculate(233, 16, 98.2 as Degrees);
|
|
71
|
-
* console.log(`Altitude: ${elements.semimajorAxis - Earth.radiusMean} km`);
|
|
72
|
-
* // Output: ~705 km
|
|
73
|
-
*
|
|
74
|
-
* // Sun-synchronous RGT (inclination auto-calculated)
|
|
75
|
-
* const ssoElements = RepeatGroundTrack.calculate(233, 16, undefined, {
|
|
76
|
-
* sunSynchronous: true
|
|
77
|
-
* });
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
static calculate(revolutions, days, inclination, options = {}) {
|
|
81
|
-
const { eccentricity = 0.0001, sunSynchronous = false, maxIterations = 50, tolerance = 0.001, epoch = new Date(), } = options;
|
|
82
|
-
// Validate parameters
|
|
83
|
-
RepeatGroundTrack.validateParams_(revolutions, days, inclination, sunSynchronous);
|
|
84
|
-
// Calculate revolutions per day
|
|
85
|
-
const revsPerDay = revolutions / days;
|
|
86
|
-
// Initial estimate of semi-major axis (without J2)
|
|
87
|
-
// n = revsPerDay * 2π / secondsPerSiderealDay (rad/s)
|
|
88
|
-
const nInitial = (revsPerDay * TAU) / secondsPerSiderealDay;
|
|
89
|
-
let sma = Math.pow(Earth.mu / (nInitial * nInitial), 1 / 3);
|
|
90
|
-
// Convert inclination to radians or calculate for sun-synchronous
|
|
91
|
-
let incRad;
|
|
92
|
-
if (sunSynchronous) {
|
|
93
|
-
// Calculate sun-synchronous inclination for initial SMA estimate
|
|
94
|
-
incRad = RepeatGroundTrack.calculateSunSyncInclination_(sma, eccentricity);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
incRad = (inclination * DEG2RAD);
|
|
98
|
-
}
|
|
99
|
-
// Iterative refinement with J2 perturbation
|
|
100
|
-
for (let iter = 0; iter < maxIterations; iter++) {
|
|
101
|
-
const prevSma = sma;
|
|
102
|
-
// If sun-synchronous, update inclination for current SMA
|
|
103
|
-
if (sunSynchronous) {
|
|
104
|
-
incRad = RepeatGroundTrack.calculateSunSyncInclination_(sma, eccentricity);
|
|
105
|
-
}
|
|
106
|
-
// Calculate J2 effect on mean motion
|
|
107
|
-
// The J2 perturbation modifies the effective mean motion
|
|
108
|
-
const p = sma * (1 - eccentricity * eccentricity); // semi-latus rectum
|
|
109
|
-
const cosI = Math.cos(incRad);
|
|
110
|
-
// J2 secular perturbation to mean motion (Brouwer theory)
|
|
111
|
-
// ṅ/n = 3/4 * J2 * (Re/p)² * √(1-e²) * (3cos²i - 1)
|
|
112
|
-
const j2Factor = (3 / 4) * Earth.j2 * Math.pow(Earth.radiusEquator / p, 2);
|
|
113
|
-
const meanMotionFactor = 1 + j2Factor * Math.sqrt(1 - eccentricity * eccentricity) * (3 * cosI * cosI - 1);
|
|
114
|
-
// J2 effect on nodal precession
|
|
115
|
-
// Ω̇ = -3/2 * J2 * (Re/p)² * n * cos(i)
|
|
116
|
-
const nodalFactor = (-3 / 2) * Earth.j2 * Math.pow(Earth.radiusEquator / p, 2) * cosI;
|
|
117
|
-
// The nodal period (time between successive equator crossings at same longitude)
|
|
118
|
-
// depends on both the orbital period and the RAAN precession
|
|
119
|
-
// For repeat ground track: R * T_nodal = D * T_earth
|
|
120
|
-
// where T_nodal includes corrections for ω̇ and Ω̇
|
|
121
|
-
// Effective mean motion for ground track repeat
|
|
122
|
-
const nKeplerian = Math.sqrt(Earth.mu / (sma * sma * sma));
|
|
123
|
-
const nEffective = nKeplerian * meanMotionFactor;
|
|
124
|
-
// Required mean motion for R revs in D nodal days
|
|
125
|
-
// Account for Earth's rotation relative to the orbit
|
|
126
|
-
const earthRotationRate = TAU / secondsPerSiderealDay;
|
|
127
|
-
const nodalPrecessionRate = nEffective * nodalFactor;
|
|
128
|
-
// The nodal day is the time for Earth to rotate 360° relative to the orbit's ascending node
|
|
129
|
-
const nodalDaySeconds = TAU / (earthRotationRate - nodalPrecessionRate);
|
|
130
|
-
// Required mean motion
|
|
131
|
-
const nRequired = (revolutions * TAU) / (days * nodalDaySeconds);
|
|
132
|
-
// Update semi-major axis
|
|
133
|
-
sma = Math.pow(Earth.mu / (nRequired / meanMotionFactor) ** 2, 1 / 3);
|
|
134
|
-
// Check convergence
|
|
135
|
-
if (Math.abs(sma - prevSma) < tolerance) {
|
|
136
|
-
break;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
// Final inclination calculation for sun-synchronous
|
|
140
|
-
if (sunSynchronous) {
|
|
141
|
-
incRad = RepeatGroundTrack.calculateSunSyncInclination_(sma, eccentricity);
|
|
142
|
-
}
|
|
143
|
-
// Build ClassicalElements
|
|
144
|
-
return new ClassicalElements({
|
|
145
|
-
epoch: EpochUTC.fromDateTime(epoch),
|
|
146
|
-
semimajorAxis: sma,
|
|
147
|
-
eccentricity,
|
|
148
|
-
inclination: incRad,
|
|
149
|
-
rightAscension: 0,
|
|
150
|
-
argPerigee: 0,
|
|
151
|
-
trueAnomaly: 0,
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Find repeat ground track orbits near a target altitude.
|
|
156
|
-
*
|
|
157
|
-
* Searches through possible R/D combinations to find RGT orbits within
|
|
158
|
-
* the specified altitude range, sorted by proximity to the target.
|
|
159
|
-
*
|
|
160
|
-
* @param targetAltitude - Desired orbital altitude in km
|
|
161
|
-
* @param maxDeviation - Maximum altitude deviation to search in km
|
|
162
|
-
* @param options - Search options including inclination constraints
|
|
163
|
-
* @returns Array of nearby RGT orbits sorted by altitude proximity
|
|
164
|
-
*
|
|
165
|
-
* @example
|
|
166
|
-
* ```typescript
|
|
167
|
-
* // Find sun-synchronous RGT orbits near 700 km within ±50 km
|
|
168
|
-
* const orbits = RepeatGroundTrack.findNearest(
|
|
169
|
-
* 700 as Kilometers,
|
|
170
|
-
* 50 as Kilometers,
|
|
171
|
-
* { sunSynchronous: true }
|
|
172
|
-
* );
|
|
173
|
-
*
|
|
174
|
-
* for (const orbit of orbits) {
|
|
175
|
-
* console.log(`${orbit.revolutions}/${orbit.days}: ${orbit.altitude.toFixed(1)} km`);
|
|
176
|
-
* }
|
|
177
|
-
* ```
|
|
178
|
-
*/
|
|
179
|
-
static findNearest(targetAltitude, maxDeviation, options = {}) {
|
|
180
|
-
const { inclination, sunSynchronous = false, maxDays = 30, maxResults = 10, eccentricity = 0.0001, epoch = new Date(), } = options;
|
|
181
|
-
// Validate
|
|
182
|
-
if (targetAltitude <= 0) {
|
|
183
|
-
throw new ValidationError('Target altitude must be positive', 'targetAltitude', targetAltitude);
|
|
184
|
-
}
|
|
185
|
-
if (maxDeviation <= 0) {
|
|
186
|
-
throw new ValidationError('Max deviation must be positive', 'maxDeviation', maxDeviation);
|
|
187
|
-
}
|
|
188
|
-
if (!sunSynchronous && inclination === undefined) {
|
|
189
|
-
throw new ValidationError('Inclination must be provided unless sunSynchronous=true', 'inclination', undefined);
|
|
190
|
-
}
|
|
191
|
-
const minAlt = (targetAltitude - maxDeviation);
|
|
192
|
-
const maxAlt = (targetAltitude + maxDeviation);
|
|
193
|
-
// Generate candidate R/D pairs
|
|
194
|
-
const candidates = RepeatGroundTrack.findRgtCandidates_(minAlt, maxAlt, maxDays);
|
|
195
|
-
// Calculate each candidate and filter by altitude
|
|
196
|
-
const results = [];
|
|
197
|
-
for (const { revs, days } of candidates) {
|
|
198
|
-
try {
|
|
199
|
-
const elements = RepeatGroundTrack.calculate(revs, days, inclination, {
|
|
200
|
-
eccentricity,
|
|
201
|
-
sunSynchronous,
|
|
202
|
-
epoch,
|
|
203
|
-
});
|
|
204
|
-
const altitude = (elements.semimajorAxis - Earth.radiusMean);
|
|
205
|
-
if (altitude >= minAlt && altitude <= maxAlt) {
|
|
206
|
-
// Calculate nodal precession rate in deg/day
|
|
207
|
-
const nodalPrecessionRate = elements.nodalPrecessionRate * secondsPerDay * RAD2DEG;
|
|
208
|
-
// Check if it's sun-synchronous (precession ≈ 0.9856 deg/day)
|
|
209
|
-
// Use looser tolerance (0.1 deg/day) to account for J2 modeling differences
|
|
210
|
-
const isSunSynchronous = Math.abs(Math.abs(nodalPrecessionRate) - 0.9856) < 0.1;
|
|
211
|
-
// Ground track spacing at equator
|
|
212
|
-
// The sub-satellite tracks are spaced by Earth circumference / revolutions per repeat
|
|
213
|
-
const earthCircumference = 2 * Math.PI * Earth.radiusEquator;
|
|
214
|
-
const groundTrackSpacing = (earthCircumference / revs);
|
|
215
|
-
results.push({
|
|
216
|
-
elements,
|
|
217
|
-
revolutions: revs,
|
|
218
|
-
days,
|
|
219
|
-
altitude,
|
|
220
|
-
isSunSynchronous,
|
|
221
|
-
nodalPrecessionRate,
|
|
222
|
-
groundTrackSpacing,
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
catch {
|
|
227
|
-
// Skip invalid combinations
|
|
228
|
-
continue;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
// Sort by proximity to target altitude
|
|
232
|
-
results.sort((a, b) => Math.abs(a.altitude - targetAltitude) - Math.abs(b.altitude - targetAltitude));
|
|
233
|
-
// Return top results
|
|
234
|
-
return results.slice(0, maxResults);
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Calculate the sun-synchronous inclination for a given altitude.
|
|
238
|
-
*
|
|
239
|
-
* For a sun-synchronous orbit, the nodal precession rate must equal
|
|
240
|
-
* Earth's orbital motion around the Sun (~0.9856°/day).
|
|
241
|
-
*
|
|
242
|
-
* @param altitude - Orbital altitude in km
|
|
243
|
-
* @param eccentricity - Orbital eccentricity (default: 0.0001)
|
|
244
|
-
* @returns Inclination in degrees for sun-synchronous orbit
|
|
245
|
-
* @throws ValidationError if no sun-synchronous solution exists at this altitude
|
|
246
|
-
*
|
|
247
|
-
* @example
|
|
248
|
-
* ```typescript
|
|
249
|
-
* // Calculate SSO inclination for 700 km altitude
|
|
250
|
-
* const inc = RepeatGroundTrack.sunSynchronousInclination(700 as Kilometers);
|
|
251
|
-
* console.log(`Sun-synchronous inclination: ${inc.toFixed(2)}°`);
|
|
252
|
-
* // Output: ~98.2°
|
|
253
|
-
* ```
|
|
254
|
-
*/
|
|
255
|
-
static sunSynchronousInclination(altitude, eccentricity = 0.0001) {
|
|
256
|
-
if (altitude <= 0) {
|
|
257
|
-
throw new ValidationError('Altitude must be positive', 'altitude', altitude);
|
|
258
|
-
}
|
|
259
|
-
if (altitude < 160) {
|
|
260
|
-
throw new ValidationError('Altitude must be at least 160 km (above dense atmosphere)', 'altitude', altitude);
|
|
261
|
-
}
|
|
262
|
-
const sma = (altitude + Earth.radiusMean);
|
|
263
|
-
const incRad = RepeatGroundTrack.calculateSunSyncInclination_(sma, eccentricity);
|
|
264
|
-
return (incRad * RAD2DEG);
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Validates calculation parameters.
|
|
268
|
-
*/
|
|
269
|
-
static validateParams_(revolutions, days, inclination, sunSynchronous) {
|
|
270
|
-
if (!Number.isInteger(revolutions) || revolutions < 1) {
|
|
271
|
-
throw new ValidationError('Revolutions must be a positive integer', 'revolutions', revolutions);
|
|
272
|
-
}
|
|
273
|
-
if (!Number.isInteger(days) || days < 1) {
|
|
274
|
-
throw new ValidationError('Days must be a positive integer', 'days', days);
|
|
275
|
-
}
|
|
276
|
-
if (revolutions <= days) {
|
|
277
|
-
throw new ValidationError(`Revolutions (${revolutions}) must be greater than days (${days}) for a valid LEO/MEO orbit`, 'revolutions', revolutions);
|
|
278
|
-
}
|
|
279
|
-
if (!sunSynchronous && inclination === undefined) {
|
|
280
|
-
throw new ValidationError('Inclination must be provided unless sunSynchronous=true', 'inclination', undefined);
|
|
281
|
-
}
|
|
282
|
-
if (inclination !== undefined) {
|
|
283
|
-
if (inclination < 0 || inclination > 180) {
|
|
284
|
-
throw new ValidationError('Inclination must be between 0 and 180 degrees', 'inclination', inclination);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* Calculate sun-synchronous inclination for a given semi-major axis.
|
|
290
|
-
* @param sma - Semi-major axis in km
|
|
291
|
-
* @param eccentricity - Orbital eccentricity
|
|
292
|
-
* @returns Inclination in radians
|
|
293
|
-
*/
|
|
294
|
-
static calculateSunSyncInclination_(sma, eccentricity) {
|
|
295
|
-
// For sun-synchronous orbit:
|
|
296
|
-
// Ω̇ = -3/2 * J2 * (Re/a)² * n * cos(i) / (1-e²)² = +0.9856°/day
|
|
297
|
-
// Note: The precession is eastward (positive in the direction of Earth's motion)
|
|
298
|
-
// but the formula gives negative for prograde orbits
|
|
299
|
-
const n = Math.sqrt(Earth.mu / (sma * sma * sma)); // mean motion rad/s
|
|
300
|
-
const p = sma * (1 - eccentricity * eccentricity); // semi-latus rectum
|
|
301
|
-
// Required precession rate (positive eastward)
|
|
302
|
-
const requiredPrecession = SUN_SYNC_PRECESSION_RAD_PER_SEC;
|
|
303
|
-
// From Ω̇ = -3/2 * J2 * (Re/p)² * n * cos(i)
|
|
304
|
-
// cos(i) = Ω̇ / (-3/2 * J2 * (Re/p)² * n)
|
|
305
|
-
const factor = (-3 / 2) * Earth.j2 * Math.pow(Earth.radiusEquator / p, 2) * n;
|
|
306
|
-
const cosI = requiredPrecession / factor;
|
|
307
|
-
// Check if solution exists
|
|
308
|
-
if (cosI < -1 || cosI > 1) {
|
|
309
|
-
throw new ValidationError(`No sun-synchronous orbit exists at altitude ${(sma - Earth.radiusMean).toFixed(0)} km`, 'altitude', sma - Earth.radiusMean);
|
|
310
|
-
}
|
|
311
|
-
return Math.acos(cosI);
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Generate candidate R/D pairs for a given altitude range.
|
|
315
|
-
* @param minAlt - Minimum altitude in km
|
|
316
|
-
* @param maxAlt - Maximum altitude in km
|
|
317
|
-
* @param maxDays - Maximum repeat cycle length in days
|
|
318
|
-
* @returns Array of {revs, days} candidates
|
|
319
|
-
*/
|
|
320
|
-
static findRgtCandidates_(minAlt, maxAlt, maxDays) {
|
|
321
|
-
const candidates = [];
|
|
322
|
-
// Calculate approximate revs/day range from altitude
|
|
323
|
-
const minSma = (minAlt + Earth.radiusMean);
|
|
324
|
-
const maxSma = (maxAlt + Earth.radiusMean);
|
|
325
|
-
// Period = 2π * sqrt(a³/μ) seconds
|
|
326
|
-
const minPeriod = TAU * Math.sqrt((minSma * minSma * minSma) / Earth.mu);
|
|
327
|
-
const maxPeriod = TAU * Math.sqrt((maxSma * maxSma * maxSma) / Earth.mu);
|
|
328
|
-
// Revs per day (higher altitude = fewer revs)
|
|
329
|
-
const minRevsPerDay = secondsPerSiderealDay / maxPeriod;
|
|
330
|
-
const maxRevsPerDay = secondsPerSiderealDay / minPeriod;
|
|
331
|
-
// Generate all valid R/D combinations
|
|
332
|
-
for (let d = 1; d <= maxDays; d++) {
|
|
333
|
-
const minRevs = Math.floor(d * minRevsPerDay);
|
|
334
|
-
const maxRevs = Math.ceil(d * maxRevsPerDay);
|
|
335
|
-
for (let r = minRevs; r <= maxRevs; r++) {
|
|
336
|
-
if (r > d) {
|
|
337
|
-
// Only add unique reduced fractions to avoid duplicates
|
|
338
|
-
const gcd = RepeatGroundTrack.gcd_(r, d);
|
|
339
|
-
if (gcd === 1) {
|
|
340
|
-
candidates.push({ revs: r, days: d });
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
return candidates;
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* Calculate greatest common divisor.
|
|
349
|
-
*/
|
|
350
|
-
static gcd_(a, b) {
|
|
351
|
-
while (b !== 0) {
|
|
352
|
-
const t = b;
|
|
353
|
-
b = a % b;
|
|
354
|
-
a = t;
|
|
355
|
-
}
|
|
356
|
-
return a;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
//# sourceMappingURL=RepeatGroundTrack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepeatGroundTrack.js","sourceRoot":"","sources":["../../src/orbit-design/RepeatGroundTrack.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAEjG;;;;GAIG;AACH,MAAM,+BAA+B,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,aAAa,CAAC;AAkD3E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,OAAO,iBAAiB;IAC5B;QACE,0CAA0C;IAC5C,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,SAAS,CACd,WAAmB,EACnB,IAAY,EACZ,WAAqB,EACrB,UAAoC,EAAE;QAEtC,MAAM,EACJ,YAAY,GAAG,MAAM,EACrB,cAAc,GAAG,KAAK,EACtB,aAAa,GAAG,EAAE,EAClB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kruczek Labs LLC
|
|
5
|
-
*
|
|
6
|
-
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
|
-
* terms of the GNU Affero General Public License as published by the Free Software
|
|
8
|
-
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
9
|
-
*
|
|
10
|
-
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
11
|
-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
12
|
-
* See the GNU Affero General Public License for more details.
|
|
13
|
-
*
|
|
14
|
-
* You should have received a copy of the GNU Affero General Public License along with
|
|
15
|
-
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
export { RepeatGroundTrack } from './RepeatGroundTrack';
|
|
18
|
-
export type { FindNearestOptions, RepeatGroundTrackOptions, RepeatOrbitResult, } from './RepeatGroundTrack';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Theodore Kruczek
|
|
3
|
-
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
|
-
*
|
|
6
|
-
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
|
-
* terms of the GNU Affero General Public License as published by the Free Software
|
|
8
|
-
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
9
|
-
*
|
|
10
|
-
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
11
|
-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
12
|
-
* See the GNU Affero General Public License for more details.
|
|
13
|
-
*
|
|
14
|
-
* You should have received a copy of the GNU Affero General Public License along with
|
|
15
|
-
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
export { RepeatGroundTrack } from './RepeatGroundTrack';
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/orbit-design/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Theodore Kruczek
|
|
3
|
-
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
|
-
*
|
|
6
|
-
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
|
-
* terms of the GNU Affero General Public License as published by the Free Software
|
|
8
|
-
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
9
|
-
*
|
|
10
|
-
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
11
|
-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
12
|
-
* See the GNU Affero General Public License for more details.
|
|
13
|
-
*
|
|
14
|
-
* You should have received a copy of the GNU Affero General Public License along with
|
|
15
|
-
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
import { ForceModel } from '../force/ForceModel';
|
|
18
|
-
import { J2000 } from '../main';
|
|
19
|
-
import { Observation } from '../observation/Observation';
|
|
20
|
-
import { BatchLeastSquaresResult } from './BatchLeastSquaresResult';
|
|
21
|
-
/**
|
|
22
|
-
* Batch least squares orbit determination.
|
|
23
|
-
*/
|
|
24
|
-
export declare class BatchLeastSquaresOD {
|
|
25
|
-
private readonly observations_;
|
|
26
|
-
private readonly apriori_;
|
|
27
|
-
private readonly forceModel_?;
|
|
28
|
-
private readonly posStep_;
|
|
29
|
-
private readonly velStep_;
|
|
30
|
-
private readonly fastDerivatives_;
|
|
31
|
-
/** Propagator pair cache, for generating observation Jacobians. */
|
|
32
|
-
private readonly propPairs_;
|
|
33
|
-
/** Nominal state propagator. */
|
|
34
|
-
private propagator_;
|
|
35
|
-
/** State estimate during solve. */
|
|
36
|
-
private readonly nominal_;
|
|
37
|
-
/** Solve start epoch. */
|
|
38
|
-
private readonly start_;
|
|
39
|
-
/**
|
|
40
|
-
* Create a new [BatchLeastSquaresOD] object from a list of [Observation]
|
|
41
|
-
* objects, an [apriori] state estimate, and an optional
|
|
42
|
-
* spacecraft [forceModel].
|
|
43
|
-
* @param observations_ List of observations.
|
|
44
|
-
* @param apriori_ Apriori state estimate.
|
|
45
|
-
* @param forceModel_ Spacecraft force model.
|
|
46
|
-
* @param posStep_ Position step size.
|
|
47
|
-
* @param velStep_ Velocity step size.
|
|
48
|
-
* @param fastDerivatives_ Use fast derivatives.
|
|
49
|
-
* @returns [BatchLeastSquaresOD] object.
|
|
50
|
-
*/
|
|
51
|
-
constructor(observations_: Observation[], apriori_: J2000, forceModel_?: ForceModel | undefined, posStep_?: number, velStep_?: number, fastDerivatives_?: boolean);
|
|
52
|
-
private buildPropagator_;
|
|
53
|
-
private static stateToX0_;
|
|
54
|
-
private setPropagatorPairs_;
|
|
55
|
-
/**
|
|
56
|
-
* Attempt to solve a state estimate with the given root-mean-squared delta
|
|
57
|
-
* [tolerance].
|
|
58
|
-
* @param root0 Root initial guess.
|
|
59
|
-
* @param root0.tolerance Root-mean-squared delta tolerance.
|
|
60
|
-
* @param root0.maxIter Maximum number of iterations.
|
|
61
|
-
* @param root0.printIter Print iterations.
|
|
62
|
-
* @returns [BatchLeastSquaresResult] object.
|
|
63
|
-
*/
|
|
64
|
-
solve({ tolerance, maxIter, printIter, }?: {
|
|
65
|
-
tolerance?: number;
|
|
66
|
-
maxIter?: number;
|
|
67
|
-
printIter?: boolean;
|
|
68
|
-
}): BatchLeastSquaresResult;
|
|
69
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Theodore Kruczek
|
|
3
|
-
* @license AGPL-3.0-or-later
|
|
4
|
-
* @copyright (c) 2025 Kruczek Labs LLC
|
|
5
|
-
*
|
|
6
|
-
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
7
|
-
* terms of the GNU Affero General Public License as published by the Free Software
|
|
8
|
-
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
9
|
-
*
|
|
10
|
-
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
11
|
-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
12
|
-
* See the GNU Affero General Public License for more details.
|
|
13
|
-
*
|
|
14
|
-
* You should have received a copy of the GNU Affero General Public License along with
|
|
15
|
-
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
import { CovarianceFrame, StateCovariance } from '../covariance/StateCovariance';
|
|
18
|
-
import { ForceModel } from '../force/ForceModel';
|
|
19
|
-
import { concat, J2000, Matrix, Vector, Vector3D } from '../main';
|
|
20
|
-
import { PropagatorPairs } from '../observation/PropagatorPairs';
|
|
21
|
-
import { KeplerPropagator } from '../propagator/KeplerPropagator';
|
|
22
|
-
import { RungeKutta89Propagator } from '../propagator/RungeKutta89Propagator';
|
|
23
|
-
import { BatchLeastSquaresResult } from './BatchLeastSquaresResult';
|
|
24
|
-
/**
|
|
25
|
-
* Batch least squares orbit determination.
|
|
26
|
-
*/
|
|
27
|
-
export class BatchLeastSquaresOD {
|
|
28
|
-
observations_;
|
|
29
|
-
apriori_;
|
|
30
|
-
forceModel_;
|
|
31
|
-
posStep_;
|
|
32
|
-
velStep_;
|
|
33
|
-
fastDerivatives_;
|
|
34
|
-
/** Propagator pair cache, for generating observation Jacobians. */
|
|
35
|
-
propPairs_;
|
|
36
|
-
/** Nominal state propagator. */
|
|
37
|
-
propagator_;
|
|
38
|
-
/** State estimate during solve. */
|
|
39
|
-
nominal_;
|
|
40
|
-
/** Solve start epoch. */
|
|
41
|
-
start_;
|
|
42
|
-
/**
|
|
43
|
-
* Create a new [BatchLeastSquaresOD] object from a list of [Observation]
|
|
44
|
-
* objects, an [apriori] state estimate, and an optional
|
|
45
|
-
* spacecraft [forceModel].
|
|
46
|
-
* @param observations_ List of observations.
|
|
47
|
-
* @param apriori_ Apriori state estimate.
|
|
48
|
-
* @param forceModel_ Spacecraft force model.
|
|
49
|
-
* @param posStep_ Position step size.
|
|
50
|
-
* @param velStep_ Velocity step size.
|
|
51
|
-
* @param fastDerivatives_ Use fast derivatives.
|
|
52
|
-
* @returns [BatchLeastSquaresOD] object.
|
|
53
|
-
*/
|
|
54
|
-
constructor(observations_, apriori_, forceModel_, posStep_ = 1e-5, velStep_ = 1e-5, fastDerivatives_ = false) {
|
|
55
|
-
this.observations_ = observations_;
|
|
56
|
-
this.apriori_ = apriori_;
|
|
57
|
-
this.forceModel_ = forceModel_;
|
|
58
|
-
this.posStep_ = posStep_;
|
|
59
|
-
this.velStep_ = velStep_;
|
|
60
|
-
this.fastDerivatives_ = fastDerivatives_;
|
|
61
|
-
this.observations_.sort((a, b) => a.epoch.posix - b.epoch.posix);
|
|
62
|
-
this.start_ = this.observations_[0].epoch;
|
|
63
|
-
this.propPairs_ = new PropagatorPairs(this.posStep_, this.velStep_);
|
|
64
|
-
this.forceModel_ ??= new ForceModel().setGravity();
|
|
65
|
-
this.propagator_ = new RungeKutta89Propagator(this.apriori_, this.forceModel_);
|
|
66
|
-
this.nominal_ = this.propagator_.propagate(this.start_);
|
|
67
|
-
}
|
|
68
|
-
buildPropagator_(x0, simple) {
|
|
69
|
-
const state = new J2000(this.nominal_.epoch, new Vector3D(x0[0], x0[1], x0[2]), new Vector3D(x0[3], x0[4], x0[5]));
|
|
70
|
-
if (simple) {
|
|
71
|
-
return new KeplerPropagator(state.toClassicalElements());
|
|
72
|
-
}
|
|
73
|
-
return new RungeKutta89Propagator(state, this.forceModel_);
|
|
74
|
-
}
|
|
75
|
-
static stateToX0_(state) {
|
|
76
|
-
return concat(state.position.toArray(), state.velocity.toArray());
|
|
77
|
-
}
|
|
78
|
-
setPropagatorPairs_(x0) {
|
|
79
|
-
const pl = this.buildPropagator_(x0, this.fastDerivatives_);
|
|
80
|
-
for (let i = 0; i < 6; i++) {
|
|
81
|
-
const step = this.propPairs_.step(i);
|
|
82
|
-
const xh = x0.slice();
|
|
83
|
-
xh[i] += step;
|
|
84
|
-
const ph = this.buildPropagator_(xh, this.fastDerivatives_);
|
|
85
|
-
this.propPairs_.set(i, ph, pl);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Attempt to solve a state estimate with the given root-mean-squared delta
|
|
90
|
-
* [tolerance].
|
|
91
|
-
* @param root0 Root initial guess.
|
|
92
|
-
* @param root0.tolerance Root-mean-squared delta tolerance.
|
|
93
|
-
* @param root0.maxIter Maximum number of iterations.
|
|
94
|
-
* @param root0.printIter Print iterations.
|
|
95
|
-
* @returns [BatchLeastSquaresResult] object.
|
|
96
|
-
*/
|
|
97
|
-
solve({ tolerance = 1e-3, maxIter = 250, printIter = false, } = {}) {
|
|
98
|
-
let breakFlag = false;
|
|
99
|
-
const xNom = BatchLeastSquaresOD.stateToX0_(this.nominal_);
|
|
100
|
-
let weightedRms = Infinity;
|
|
101
|
-
const atwaMatInit = Matrix.zero(6, 6);
|
|
102
|
-
const atwbMatInit = Matrix.zero(6, 1);
|
|
103
|
-
let atwaMat = atwaMatInit;
|
|
104
|
-
for (let iter = 0; iter < maxIter; iter++) {
|
|
105
|
-
atwaMat = atwaMatInit;
|
|
106
|
-
let atwbMat = atwbMatInit;
|
|
107
|
-
this.propagator_ = this.buildPropagator_(xNom, false);
|
|
108
|
-
this.setPropagatorPairs_(xNom);
|
|
109
|
-
let rmsTotal = 0.0;
|
|
110
|
-
let measCount = 0;
|
|
111
|
-
for (const ob of this.observations_) {
|
|
112
|
-
const noise = ob.noise;
|
|
113
|
-
const aMat = ob.jacobian(this.propPairs_);
|
|
114
|
-
const aMatTN = aMat.transpose().multiply(noise);
|
|
115
|
-
const bMat = ob.residual(this.propagator_);
|
|
116
|
-
atwaMat = atwaMat.add(aMatTN.multiply(aMat));
|
|
117
|
-
atwbMat = atwbMat.add(aMatTN.multiply(bMat));
|
|
118
|
-
rmsTotal += bMat.transpose().multiply(noise).multiply(bMat).elements[0][0];
|
|
119
|
-
measCount += noise.rows;
|
|
120
|
-
}
|
|
121
|
-
const newWeightedRms = Math.sqrt(rmsTotal / measCount);
|
|
122
|
-
if (printIter) {
|
|
123
|
-
// eslint-disable-next-line no-console
|
|
124
|
-
console.log(`${iter + 1}: rms=${newWeightedRms} x=${new Vector(xNom)}`);
|
|
125
|
-
}
|
|
126
|
-
if (Math.abs((weightedRms - newWeightedRms) / weightedRms) <= tolerance) {
|
|
127
|
-
breakFlag = true;
|
|
128
|
-
}
|
|
129
|
-
weightedRms = newWeightedRms;
|
|
130
|
-
const dX = atwaMat.inverse().multiply(atwbMat);
|
|
131
|
-
for (let i = 0; i < 6; i++) {
|
|
132
|
-
xNom[i] += dX.elements[i][0];
|
|
133
|
-
}
|
|
134
|
-
if (breakFlag) {
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
const p = atwaMat.inverse();
|
|
139
|
-
const covariance = new StateCovariance(p, CovarianceFrame.ECI);
|
|
140
|
-
return new BatchLeastSquaresResult(this.buildPropagator_(xNom, false).propagate(this.start_), covariance, weightedRms);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
//# sourceMappingURL=BatchLeastSquaresOD.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BatchLeastSquaresOD.js","sourceRoot":"","sources":["../../src/orbit-determination/BatchLeastSquaresOD.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,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