ootk 3.0.0 → 4.0.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/.eslintrc.json +10 -10
- package/CHANGELOG.md +122 -0
- package/README.md +27 -40
- package/lib/coordinate/Hill.d.ts +50 -0
- package/lib/coordinate/Hill.js +214 -0
- package/lib/coordinate/Hill.js.map +1 -0
- package/lib/coordinate/index.d.ts +1 -0
- package/lib/coordinate/index.js +2 -0
- package/lib/coordinate/index.js.map +1 -0
- package/lib/covariance/CovarianceSample.d.ts +44 -0
- package/lib/covariance/CovarianceSample.js +146 -0
- package/lib/covariance/CovarianceSample.js.map +1 -0
- package/lib/covariance/StateCovariance.d.ts +41 -0
- package/lib/covariance/StateCovariance.js +62 -0
- package/lib/covariance/StateCovariance.js.map +1 -0
- package/lib/force/AtmosphericDrag.d.ts +32 -0
- package/lib/force/AtmosphericDrag.js +66 -0
- package/lib/force/AtmosphericDrag.js.map +1 -0
- package/lib/force/EarthGravity.d.ts +28 -0
- package/lib/force/EarthGravity.js +115 -0
- package/lib/force/EarthGravity.js.map +1 -0
- package/{dist/ootk.d.ts → lib/force/Force.d.ts} +10 -10
- package/lib/force/Force.js +30 -0
- package/lib/force/Force.js.map +1 -0
- package/lib/force/ForceModel.d.ts +38 -0
- package/lib/force/ForceModel.js +71 -0
- package/lib/force/ForceModel.js.map +1 -0
- package/lib/force/Gravity.d.ts +41 -0
- package/lib/force/Gravity.js +48 -0
- package/lib/force/Gravity.js.map +1 -0
- package/lib/force/SolarRadiationPressure.d.ts +27 -0
- package/lib/force/SolarRadiationPressure.js +42 -0
- package/lib/force/SolarRadiationPressure.js.map +1 -0
- package/lib/force/ThirdBodyGravity.d.ts +27 -0
- package/lib/force/ThirdBodyGravity.js +56 -0
- package/lib/force/ThirdBodyGravity.js.map +1 -0
- package/lib/force/Thrust.d.ts +35 -0
- package/lib/force/Thrust.js +53 -0
- package/lib/force/Thrust.js.map +1 -0
- package/lib/interpolator/ChebyshevCoefficients.d.ts +54 -0
- package/lib/interpolator/ChebyshevCoefficients.js +90 -0
- package/lib/interpolator/ChebyshevCoefficients.js.map +1 -0
- package/lib/interpolator/ChebyshevInterpolator.d.ts +39 -0
- package/lib/interpolator/ChebyshevInterpolator.js +71 -0
- package/lib/interpolator/ChebyshevInterpolator.js.map +1 -0
- package/lib/interpolator/CubicSpline.d.ts +36 -0
- package/lib/interpolator/CubicSpline.js +64 -0
- package/lib/interpolator/CubicSpline.js.map +1 -0
- package/lib/interpolator/CubicSplineInterpolator.d.ts +37 -0
- package/lib/interpolator/CubicSplineInterpolator.js +78 -0
- package/lib/interpolator/CubicSplineInterpolator.js.map +1 -0
- package/lib/interpolator/FieldInterpolator.d.ts +26 -0
- package/lib/interpolator/FieldInterpolator.js +31 -0
- package/lib/interpolator/FieldInterpolator.js.map +1 -0
- package/lib/interpolator/Interpolator.d.ts +23 -0
- package/lib/interpolator/Interpolator.js +48 -0
- package/lib/interpolator/Interpolator.js.map +1 -0
- package/lib/interpolator/LagrangeInterpolator.d.ts +42 -0
- package/lib/interpolator/LagrangeInterpolator.js +156 -0
- package/lib/interpolator/LagrangeInterpolator.js.map +1 -0
- package/lib/interpolator/StateInterpolator.d.ts +29 -0
- package/lib/interpolator/StateInterpolator.js +37 -0
- package/lib/interpolator/StateInterpolator.js.map +1 -0
- package/lib/interpolator/VerletBlendInterpolator.d.ts +44 -0
- package/lib/interpolator/VerletBlendInterpolator.js +115 -0
- package/lib/interpolator/VerletBlendInterpolator.js.map +1 -0
- package/lib/maneuver/TwoBurnOrbitTransfer.d.ts +43 -0
- package/lib/maneuver/TwoBurnOrbitTransfer.js +62 -0
- package/lib/maneuver/TwoBurnOrbitTransfer.js.map +1 -0
- package/lib/maneuver/Waypoint.d.ts +66 -0
- package/lib/maneuver/Waypoint.js +152 -0
- package/lib/maneuver/Waypoint.js.map +1 -0
- package/lib/objects/DetailedSatellite.d.ts +94 -0
- package/lib/objects/DetailedSatellite.js +140 -0
- package/lib/objects/DetailedSatellite.js.map +1 -0
- package/lib/objects/DetailedSensor.d.ts +43 -0
- package/lib/objects/DetailedSensor.js +45 -0
- package/lib/objects/DetailedSensor.js.map +1 -0
- package/{dist/objects/space-object.d.ts → lib/objects/LandObject.d.ts} +19 -21
- package/lib/objects/LandObject.js +28 -0
- package/lib/objects/LandObject.js.map +1 -0
- package/lib/objects/Marker.d.ts +21 -0
- package/lib/objects/Marker.js +25 -0
- package/lib/objects/Marker.js.map +1 -0
- package/lib/objects/index.d.ts +5 -4
- package/lib/objects/index.js +5 -4
- package/lib/objects/index.js.map +1 -1
- package/lib/observation/Observation.d.ts +51 -0
- package/lib/observation/Observation.js +71 -0
- package/lib/observation/Observation.js.map +1 -0
- package/lib/observation/ObservationOptical.d.ts +47 -0
- package/lib/observation/ObservationOptical.js +101 -0
- package/lib/observation/ObservationOptical.js.map +1 -0
- package/lib/observation/ObservationRadar.d.ts +43 -0
- package/lib/observation/ObservationRadar.js +90 -0
- package/lib/observation/ObservationRadar.js.map +1 -0
- package/lib/observation/ObservationUtils.d.ts +21 -0
- package/lib/observation/ObservationUtils.js +33 -0
- package/lib/observation/ObservationUtils.js.map +1 -0
- package/lib/observation/PropagatorPairs.d.ts +31 -0
- package/lib/observation/PropagatorPairs.js +40 -0
- package/lib/observation/PropagatorPairs.js.map +1 -0
- package/lib/ootk.d.ts +10 -8
- package/lib/ootk.js +10 -8
- package/lib/ootk.js.map +1 -1
- package/lib/operations/BoxMuller.d.ts +41 -0
- package/lib/operations/BoxMuller.js +66 -0
- package/lib/operations/BoxMuller.js.map +1 -0
- package/lib/operations/EulerAngles.d.ts +50 -0
- package/lib/operations/EulerAngles.js +111 -0
- package/lib/operations/EulerAngles.js.map +1 -0
- package/lib/operations/Quaternion.d.ts +57 -0
- package/lib/operations/Quaternion.js +164 -0
- package/lib/operations/Quaternion.js.map +1 -0
- package/lib/operations/RandomGaussianSource.d.ts +25 -0
- package/lib/operations/RandomGaussianSource.js +43 -0
- package/lib/operations/RandomGaussianSource.js.map +1 -0
- package/lib/operations/index.d.ts +4 -0
- package/lib/operations/index.js +5 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/optimize/ChebyshevCompressor.d.ts +31 -0
- package/lib/optimize/ChebyshevCompressor.js +80 -0
- package/lib/optimize/ChebyshevCompressor.js.map +1 -0
- package/lib/optimize/DownhillSimplex.d.ts +50 -0
- package/lib/optimize/DownhillSimplex.js +168 -0
- package/lib/optimize/DownhillSimplex.js.map +1 -0
- package/lib/optimize/GoldenSection.d.ts +33 -0
- package/lib/optimize/GoldenSection.js +49 -0
- package/lib/optimize/GoldenSection.js.map +1 -0
- package/lib/optimize/PolynomialRegression.d.ts +37 -0
- package/lib/optimize/PolynomialRegression.js +66 -0
- package/lib/optimize/PolynomialRegression.js.map +1 -0
- package/lib/optimize/PolynomicalRegressionResult.d.ts +28 -0
- package/lib/optimize/PolynomicalRegressionResult.js +32 -0
- package/lib/optimize/PolynomicalRegressionResult.js.map +1 -0
- package/lib/optimize/SimpleLinearRegression.d.ts +41 -0
- package/lib/optimize/SimpleLinearRegression.js +107 -0
- package/lib/optimize/SimpleLinearRegression.js.map +1 -0
- package/lib/optimize/SimplexEntry.d.ts +33 -0
- package/lib/optimize/SimplexEntry.js +39 -0
- package/lib/optimize/SimplexEntry.js.map +1 -0
- package/lib/orbit_determination/BatchLeastSquaresOD.d.ts +54 -0
- package/lib/orbit_determination/BatchLeastSquaresOD.js +118 -0
- package/lib/orbit_determination/BatchLeastSquaresOD.js.map +1 -0
- package/lib/orbit_determination/BatchLeastSquaresResult.d.ts +29 -0
- package/lib/orbit_determination/BatchLeastSquaresResult.js +31 -0
- package/lib/orbit_determination/BatchLeastSquaresResult.js.map +1 -0
- package/lib/orbit_determination/GibbsIOD.d.ts +33 -0
- package/lib/orbit_determination/GibbsIOD.js +70 -0
- package/lib/orbit_determination/GibbsIOD.js.map +1 -0
- package/lib/orbit_determination/GoodingIOD.d.ts +52 -0
- package/lib/orbit_determination/GoodingIOD.js +244 -0
- package/lib/orbit_determination/GoodingIOD.js.map +1 -0
- package/lib/{objects/space-object.d.ts → orbit_determination/HerrickGibbsIOD.d.ts} +17 -22
- package/lib/orbit_determination/HerrickGibbsIOD.js +49 -0
- package/lib/orbit_determination/HerrickGibbsIOD.js.map +1 -0
- package/lib/orbit_determination/LambertIOD.d.ts +46 -0
- package/lib/orbit_determination/LambertIOD.js +199 -0
- package/lib/orbit_determination/LambertIOD.js.map +1 -0
- package/lib/orbit_determination/ModifiedGoodingIOD.d.ts +41 -0
- package/lib/orbit_determination/ModifiedGoodingIOD.js +82 -0
- package/lib/orbit_determination/ModifiedGoodingIOD.js.map +1 -0
- package/lib/propagator/DormandPrince54Propagator.d.ts +29 -0
- package/lib/propagator/DormandPrince54Propagator.js +68 -0
- package/lib/propagator/DormandPrince54Propagator.js.map +1 -0
- package/lib/propagator/KeplerPropagator.d.ts +36 -0
- package/lib/propagator/KeplerPropagator.js +81 -0
- package/lib/propagator/KeplerPropagator.js.map +1 -0
- package/lib/propagator/Propagator.d.ts +35 -0
- package/lib/propagator/Propagator.js +163 -0
- package/lib/propagator/Propagator.js.map +1 -0
- package/lib/propagator/RkCheckpoint.d.ts +23 -0
- package/lib/propagator/RkCheckpoint.js +26 -0
- package/lib/propagator/RkCheckpoint.js.map +1 -0
- package/lib/propagator/RkResult.d.ts +24 -0
- package/lib/propagator/RkResult.js +28 -0
- package/lib/propagator/RkResult.js.map +1 -0
- package/lib/propagator/RungeKutta4Propagator.d.ts +46 -0
- package/lib/propagator/RungeKutta4Propagator.js +132 -0
- package/lib/propagator/RungeKutta4Propagator.js.map +1 -0
- package/lib/propagator/RungeKutta89Propagator.d.ts +29 -0
- package/lib/propagator/RungeKutta89Propagator.js +130 -0
- package/lib/propagator/RungeKutta89Propagator.js.map +1 -0
- package/lib/propagator/RungeKuttaAdaptive.d.ts +52 -0
- package/lib/propagator/RungeKuttaAdaptive.js +152 -0
- package/lib/propagator/RungeKuttaAdaptive.js.map +1 -0
- package/lib/propagator/Sgp4Propagator.d.ts +35 -0
- package/lib/propagator/Sgp4Propagator.js +55 -0
- package/lib/propagator/Sgp4Propagator.js.map +1 -0
- package/lib/smoothing/ExponentialSmoothing.d.ts +24 -0
- package/lib/smoothing/ExponentialSmoothing.js +82 -0
- package/lib/smoothing/ExponentialSmoothing.js.map +1 -0
- package/lib/types/types.d.ts +65 -584
- package/lib/types/types.js +21 -33
- package/lib/types/types.js.map +1 -1
- package/package.json +16 -14
- package/.prettierrc +0 -17
- package/babel.config.js +0 -16
- package/codecov.yml +0 -21
- package/dist/objects/base-object.d.ts +0 -40
- package/dist/objects/detailed-sat.d.ts +0 -66
- package/dist/objects/index.d.ts +0 -4
- package/dist/objects/sat.d.ts +0 -92
- package/dist/objects/sensor.d.ts +0 -93
- package/dist/objects/star.d.ts +0 -46
- package/dist/ootk.js +0 -2
- package/dist/ootk.js.LICENSE.txt +0 -77
- package/dist/sgp4/sgp4.d.ts +0 -82
- package/dist/tle/tle-format-data.d.ts +0 -6
- package/dist/tle/tle.d.ts +0 -375
- package/dist/transforms/transforms.d.ts +0 -94
- package/dist/types/types.d.ts +0 -605
- package/dist/utils/constants.d.ts +0 -34
- package/dist/utils/moon-math.d.ts +0 -113
- package/dist/utils/sun-math.d.ts +0 -230
- package/dist/utils/utils.d.ts +0 -39
- package/lib/objects/base-object.d.ts +0 -40
- package/lib/objects/base-object.js +0 -79
- package/lib/objects/base-object.js.map +0 -1
- package/lib/objects/detailed-sat.d.ts +0 -66
- package/lib/objects/detailed-sat.js +0 -149
- package/lib/objects/detailed-sat.js.map +0 -1
- package/lib/objects/sat.d.ts +0 -92
- package/lib/objects/sat.js +0 -188
- package/lib/objects/sat.js.map +0 -1
- package/lib/objects/sensor.d.ts +0 -93
- package/lib/objects/sensor.js +0 -273
- package/lib/objects/sensor.js.map +0 -1
- package/lib/objects/space-object.js +0 -60
- package/lib/objects/space-object.js.map +0 -1
- package/lib/objects/star.d.ts +0 -46
- package/lib/objects/star.js +0 -91
- package/lib/objects/star.js.map +0 -1
- package/lib/sgp4/sgp4.d.ts +0 -82
- package/lib/sgp4/sgp4.js +0 -3262
- package/lib/sgp4/sgp4.js.map +0 -1
- package/lib/tle/tle-format-data.d.ts +0 -6
- package/lib/tle/tle-format-data.js +0 -10
- package/lib/tle/tle-format-data.js.map +0 -1
- package/lib/tle/tle.d.ts +0 -375
- package/lib/tle/tle.js +0 -611
- package/lib/tle/tle.js.map +0 -1
- package/lib/transforms/transforms.d.ts +0 -94
- package/lib/transforms/transforms.js +0 -308
- package/lib/transforms/transforms.js.map +0 -1
- package/lib/utils/constants.d.ts +0 -34
- package/lib/utils/constants.js +0 -35
- package/lib/utils/constants.js.map +0 -1
- package/lib/utils/moon-math.d.ts +0 -113
- package/lib/utils/moon-math.js +0 -387
- package/lib/utils/moon-math.js.map +0 -1
- package/lib/utils/sun-math.d.ts +0 -230
- package/lib/utils/sun-math.js +0 -422
- package/lib/utils/sun-math.js.map +0 -1
- package/lib/utils/utils.d.ts +0 -39
- package/lib/utils/utils.js +0 -102
- package/lib/utils/utils.js.map +0 -1
- package/sandbox.html +0 -8
- package/tsconfig.base.json +0 -31
- package/tsconfig.build.json +0 -14
- /package/{LICENSE.MD → LICENSE.md} +0 -0
package/lib/objects/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { EpochUTC, J2000, Matrix, Vector, Vector3D } from 'ootk-core';
|
|
19
|
+
import { Propagator } from '../propagator/Propagator';
|
|
20
|
+
import { RandomGaussianSource } from './../operations/RandomGaussianSource';
|
|
21
|
+
import { PropagatorPairs } from './PropagatorPairs';
|
|
22
|
+
export declare abstract class Observation {
|
|
23
|
+
abstract get epoch(): EpochUTC;
|
|
24
|
+
abstract get site(): J2000;
|
|
25
|
+
abstract get noise(): Matrix;
|
|
26
|
+
/**
|
|
27
|
+
* Return range-normalized cross line-of-sight residual for the observation
|
|
28
|
+
* when compared against a nominal state propagator.
|
|
29
|
+
*/
|
|
30
|
+
clos(propagator: Propagator): number;
|
|
31
|
+
/**
|
|
32
|
+
* Return relative state residual for the observation when compared against
|
|
33
|
+
* a nominal state propagator.
|
|
34
|
+
*/
|
|
35
|
+
ricDiff(propagator: Propagator): Vector3D;
|
|
36
|
+
toVector(): Vector;
|
|
37
|
+
jacobian(propPairs: PropagatorPairs): Matrix;
|
|
38
|
+
residual(propagator: Propagator): Matrix;
|
|
39
|
+
noiseCovariance(): Matrix;
|
|
40
|
+
_noiseSample(sigma: number): Matrix;
|
|
41
|
+
/**
|
|
42
|
+
* Randomly sample this observation in vector form within the
|
|
43
|
+
* observation noise.
|
|
44
|
+
*/
|
|
45
|
+
sampleVector(random: RandomGaussianSource, sigma: number): Vector;
|
|
46
|
+
/**
|
|
47
|
+
* Randomly sample this observation within the observation noise, scaled to
|
|
48
|
+
* the provided [sigma] value.
|
|
49
|
+
*/
|
|
50
|
+
sample(random: RandomGaussianSource, sigma?: number): Observation;
|
|
51
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
// / Base class for observation types.
|
|
19
|
+
export class Observation {
|
|
20
|
+
/**
|
|
21
|
+
* Return range-normalized cross line-of-sight residual for the observation
|
|
22
|
+
* when compared against a nominal state propagator.
|
|
23
|
+
*/
|
|
24
|
+
clos(propagator) {
|
|
25
|
+
throw new Error('Not implemented');
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Return relative state residual for the observation when compared against
|
|
29
|
+
* a nominal state propagator.
|
|
30
|
+
*/
|
|
31
|
+
ricDiff(propagator) {
|
|
32
|
+
throw new Error('Not implemented');
|
|
33
|
+
}
|
|
34
|
+
// / Convert this observation to vector form.
|
|
35
|
+
toVector() {
|
|
36
|
+
throw new Error('Not implemented');
|
|
37
|
+
}
|
|
38
|
+
// / Compute the state derivative matrix for this observation.
|
|
39
|
+
jacobian(propPairs) {
|
|
40
|
+
throw new Error('Not implemented');
|
|
41
|
+
}
|
|
42
|
+
// / Compute the state residual matrix for this observation.
|
|
43
|
+
residual(propagator) {
|
|
44
|
+
throw new Error('Not implemented');
|
|
45
|
+
}
|
|
46
|
+
// / Convert this observation's noise matrix into a covariance matrix.
|
|
47
|
+
noiseCovariance() {
|
|
48
|
+
return this.noise.reciprocal();
|
|
49
|
+
}
|
|
50
|
+
_noiseSample(sigma) {
|
|
51
|
+
return this.noiseCovariance().scale(sigma).cholesky();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Randomly sample this observation in vector form within the
|
|
55
|
+
* observation noise.
|
|
56
|
+
*/
|
|
57
|
+
sampleVector(random, sigma) {
|
|
58
|
+
const chol = this._noiseSample(sigma);
|
|
59
|
+
const gauss = random.gaussVector(this.noise.columns);
|
|
60
|
+
const meas = this.toVector();
|
|
61
|
+
return meas.add(chol.multiplyVector(gauss));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Randomly sample this observation within the observation noise, scaled to
|
|
65
|
+
* the provided [sigma] value.
|
|
66
|
+
*/
|
|
67
|
+
sample(random, sigma = 1.0) {
|
|
68
|
+
throw new Error('Not implemented');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=Observation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Observation.js","sourceRoot":"","sources":["../../src/observation/Observation.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MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { EpochUTC, J2000, Matrix, RadecTopocentric, Vector, Vector3D } from 'ootk-core';
|
|
19
|
+
import { RandomGaussianSource } from '../operations/RandomGaussianSource';
|
|
20
|
+
import { Propagator } from '../propagator/Propagator';
|
|
21
|
+
import { Observation } from './Observation';
|
|
22
|
+
import { PropagatorPairs } from './PropagatorPairs';
|
|
23
|
+
export declare class ObservationOptical extends Observation {
|
|
24
|
+
private _site;
|
|
25
|
+
observation: RadecTopocentric;
|
|
26
|
+
private _noise;
|
|
27
|
+
constructor(_site: J2000, observation: RadecTopocentric, _noise?: Matrix);
|
|
28
|
+
get site(): J2000;
|
|
29
|
+
get noise(): Matrix;
|
|
30
|
+
/**
|
|
31
|
+
* Default noise matrix _(right-ascension, declination)_.
|
|
32
|
+
* Based on the Maui Optical Site noise model.
|
|
33
|
+
*/
|
|
34
|
+
static defaultNoise: Matrix;
|
|
35
|
+
get epoch(): EpochUTC;
|
|
36
|
+
toVector(): Vector;
|
|
37
|
+
clos(propagator: Propagator): number;
|
|
38
|
+
ricDiff(propagator: Propagator): Vector3D;
|
|
39
|
+
sample(random: RandomGaussianSource, sigma?: number): Observation;
|
|
40
|
+
jacobian(propPairs: PropagatorPairs): Matrix;
|
|
41
|
+
residual(propagator: Propagator): Matrix;
|
|
42
|
+
/**
|
|
43
|
+
* Create a noise matrix from right ascension and declination standard
|
|
44
|
+
* deviantions _(radians)_.
|
|
45
|
+
*/
|
|
46
|
+
static noiseFromSigmas(raSigma: number, decSigma: number): Matrix;
|
|
47
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { array2d, DEG2RAD, J2000, Matrix, RadecTopocentric, RIC, Vector, Vector3D } from 'ootk-core';
|
|
19
|
+
import { Observation } from './Observation';
|
|
20
|
+
import { normalizeAngle, observationDerivative, observationNoiseFromSigmas } from './ObservationUtils';
|
|
21
|
+
// / Optical observation data.
|
|
22
|
+
export class ObservationOptical extends Observation {
|
|
23
|
+
// / Create a new [ObservationOptical] object.
|
|
24
|
+
constructor(_site, observation, _noise = ObservationOptical.defaultNoise) {
|
|
25
|
+
super();
|
|
26
|
+
this._site = _site;
|
|
27
|
+
this.observation = observation;
|
|
28
|
+
this._noise = _noise;
|
|
29
|
+
}
|
|
30
|
+
// / Inertial site location.
|
|
31
|
+
get site() {
|
|
32
|
+
return this._site;
|
|
33
|
+
}
|
|
34
|
+
// / Noise matrix.
|
|
35
|
+
get noise() {
|
|
36
|
+
return this._noise;
|
|
37
|
+
}
|
|
38
|
+
get epoch() {
|
|
39
|
+
return this.observation.epoch;
|
|
40
|
+
}
|
|
41
|
+
toVector() {
|
|
42
|
+
return Vector.fromList([this.observation.rightAscension, this.observation.declination]);
|
|
43
|
+
}
|
|
44
|
+
clos(propagator) {
|
|
45
|
+
const position = propagator.propagate(this.epoch).position;
|
|
46
|
+
const offset = position.subtract(this.site.position);
|
|
47
|
+
const actual = this.observation.lineOfSight().normalize();
|
|
48
|
+
const expected = offset.normalize();
|
|
49
|
+
const slantRange = offset.magnitude();
|
|
50
|
+
const theta = actual.angle(expected);
|
|
51
|
+
if (isNaN(theta)) {
|
|
52
|
+
return 0.0;
|
|
53
|
+
}
|
|
54
|
+
return 2.0 * slantRange * Math.sin(theta * 0.5);
|
|
55
|
+
}
|
|
56
|
+
ricDiff(propagator) {
|
|
57
|
+
const r0 = this.site;
|
|
58
|
+
const r1 = propagator.propagate(this.epoch);
|
|
59
|
+
const r2 = this.observation.position(this.site, r1.position.distance(r0.position));
|
|
60
|
+
return RIC.fromJ2000(new J2000(this.epoch, r2, Vector3D.origin), r1).position;
|
|
61
|
+
}
|
|
62
|
+
sample(random, sigma = 1.0) {
|
|
63
|
+
const result = this.sampleVector(random, sigma);
|
|
64
|
+
return new ObservationOptical(this.site, new RadecTopocentric(this.epoch, result[0], result[1]), this.noise);
|
|
65
|
+
}
|
|
66
|
+
jacobian(propPairs) {
|
|
67
|
+
const result = array2d(2, 6, 0.0);
|
|
68
|
+
for (let i = 0; i < 6; i++) {
|
|
69
|
+
const step = propPairs.step(i);
|
|
70
|
+
const [high, low] = propPairs.get(i);
|
|
71
|
+
const sl = low.propagate(this.epoch);
|
|
72
|
+
const sh = high.propagate(this.epoch);
|
|
73
|
+
const ol = RadecTopocentric.fromStateVectors(sl, this.site);
|
|
74
|
+
const oh = RadecTopocentric.fromStateVectors(sh, this.site);
|
|
75
|
+
result[0][i] = observationDerivative(oh.rightAscension, ol.rightAscension, step, true);
|
|
76
|
+
result[1][i] = observationDerivative(oh.declination, ol.declination, step, true);
|
|
77
|
+
}
|
|
78
|
+
return new Matrix(result);
|
|
79
|
+
}
|
|
80
|
+
residual(propagator) {
|
|
81
|
+
const result = array2d(2, 1, 0.0);
|
|
82
|
+
const state = propagator.propagate(this.epoch);
|
|
83
|
+
const radec = RadecTopocentric.fromStateVectors(state, this.site);
|
|
84
|
+
result[0][0] = normalizeAngle(this.observation.rightAscension, radec.rightAscension);
|
|
85
|
+
result[1][0] = normalizeAngle(this.observation.declination, radec.declination);
|
|
86
|
+
return new Matrix(result);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Create a noise matrix from right ascension and declination standard
|
|
90
|
+
* deviantions _(radians)_.
|
|
91
|
+
*/
|
|
92
|
+
static noiseFromSigmas(raSigma, decSigma) {
|
|
93
|
+
return observationNoiseFromSigmas([raSigma, decSigma]);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Default noise matrix _(right-ascension, declination)_.
|
|
98
|
+
* Based on the Maui Optical Site noise model.
|
|
99
|
+
*/
|
|
100
|
+
ObservationOptical.defaultNoise = ObservationOptical.noiseFromSigmas(0.0037 * DEG2RAD, 0.003 * DEG2RAD);
|
|
101
|
+
//# sourceMappingURL=ObservationOptical.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservationOptical.js","sourceRoot":"","sources":["../../src/observation/ObservationOptical.ts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gBAAgB,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAElE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;QACrF,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;QAE/E,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,OAAe,EAAE,QAAgB;QACtD,OAAO,0BAA0B,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IACzD,CAAC;;AA9ED;;;GAGG;AACI,+BAAY,GAAW,kBAAkB,CAAC,eAAe,CAAC,MAAM,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { EpochUTC, J2000, Matrix, RAE, Vector, Vector3D } from 'ootk-core';
|
|
19
|
+
import { RandomGaussianSource } from '../operations/RandomGaussianSource';
|
|
20
|
+
import { Propagator } from '../propagator/Propagator';
|
|
21
|
+
import { Observation } from './Observation';
|
|
22
|
+
import { PropagatorPairs } from './PropagatorPairs';
|
|
23
|
+
export declare class ObservationRadar extends Observation {
|
|
24
|
+
private _site;
|
|
25
|
+
observation: RAE;
|
|
26
|
+
private _noise;
|
|
27
|
+
constructor(_site: J2000, observation: RAE, _noise?: Matrix);
|
|
28
|
+
private static defaultNoise;
|
|
29
|
+
get epoch(): EpochUTC;
|
|
30
|
+
get site(): J2000;
|
|
31
|
+
get noise(): Matrix;
|
|
32
|
+
toVector(): Vector;
|
|
33
|
+
clos(propagator: Propagator): number;
|
|
34
|
+
ricDiff(propagator: Propagator): Vector3D;
|
|
35
|
+
sample(random: RandomGaussianSource, sigma?: number): Observation;
|
|
36
|
+
jacobian(propPairs: PropagatorPairs): Matrix;
|
|
37
|
+
residual(propagator: Propagator): Matrix;
|
|
38
|
+
/**
|
|
39
|
+
* Create a noise matrix from the range, azimuth, and elevation standard
|
|
40
|
+
* deviations _(kilometers/radians)_.
|
|
41
|
+
*/
|
|
42
|
+
static noiseFromSigmas(rngSigma: number, azSigma: number, elSigma: number): Matrix;
|
|
43
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { array2d, DEG2RAD, J2000, Matrix, RAE, RIC, Vector, Vector3D } from 'ootk-core';
|
|
19
|
+
import { Observation } from './Observation';
|
|
20
|
+
import { normalizeAngle, observationDerivative, observationNoiseFromSigmas } from './ObservationUtils';
|
|
21
|
+
// / Radar observation data.
|
|
22
|
+
export class ObservationRadar extends Observation {
|
|
23
|
+
// / Create a new [ObservationRadar] object.
|
|
24
|
+
constructor(_site, observation, _noise = ObservationRadar.defaultNoise) {
|
|
25
|
+
super();
|
|
26
|
+
this._site = _site;
|
|
27
|
+
this.observation = observation;
|
|
28
|
+
this._noise = _noise;
|
|
29
|
+
}
|
|
30
|
+
get epoch() {
|
|
31
|
+
return this.observation.epoch;
|
|
32
|
+
}
|
|
33
|
+
get site() {
|
|
34
|
+
return this._site;
|
|
35
|
+
}
|
|
36
|
+
get noise() {
|
|
37
|
+
return this._noise;
|
|
38
|
+
}
|
|
39
|
+
toVector() {
|
|
40
|
+
return Vector.fromList([this.observation.range, this.observation.azimuth, this.observation.elevation]);
|
|
41
|
+
}
|
|
42
|
+
clos(propagator) {
|
|
43
|
+
const ri = propagator.propagate(this.epoch).position.subtract(this.site.position);
|
|
44
|
+
return Math.abs(this.observation.range - ri.magnitude());
|
|
45
|
+
}
|
|
46
|
+
ricDiff(propagator) {
|
|
47
|
+
const r0 = propagator.propagate(this.epoch);
|
|
48
|
+
const r1 = RAE.fromStateVectors(r0, this.site);
|
|
49
|
+
const r2 = this.observation.position(this.site, r1.azimuth, r1.elevation);
|
|
50
|
+
return RIC.fromJ2000(new J2000(this.epoch, r2, Vector3D.origin), r0).position;
|
|
51
|
+
}
|
|
52
|
+
sample(random, sigma = 1.0) {
|
|
53
|
+
const result = this.sampleVector(random, sigma);
|
|
54
|
+
return new ObservationRadar(this.site, new RAE(this.observation.epoch, result[0], result[1], result[2]), this.noise);
|
|
55
|
+
}
|
|
56
|
+
jacobian(propPairs) {
|
|
57
|
+
const result = array2d(3, 6, 0.0);
|
|
58
|
+
for (let i = 0; i < 6; i++) {
|
|
59
|
+
const step = propPairs.step(i);
|
|
60
|
+
const [high, low] = propPairs.get(i);
|
|
61
|
+
const sl = low.propagate(this.epoch);
|
|
62
|
+
const sh = high.propagate(this.epoch);
|
|
63
|
+
const ol = RAE.fromStateVectors(sl, this.site);
|
|
64
|
+
const oh = RAE.fromStateVectors(sh, this.site);
|
|
65
|
+
result[0][i] = observationDerivative(oh.range, ol.range, step);
|
|
66
|
+
result[1][i] = observationDerivative(oh.azimuth, ol.azimuth, step, true);
|
|
67
|
+
result[2][i] = observationDerivative(oh.elevation, ol.elevation, step, true);
|
|
68
|
+
}
|
|
69
|
+
return new Matrix(result);
|
|
70
|
+
}
|
|
71
|
+
residual(propagator) {
|
|
72
|
+
const result = array2d(3, 1, 0.0);
|
|
73
|
+
const state = propagator.propagate(this.epoch);
|
|
74
|
+
const razel = RAE.fromStateVectors(state, this.site);
|
|
75
|
+
result[0][0] = this.observation.range - razel.range;
|
|
76
|
+
result[1][0] = normalizeAngle(this.observation.azimuth, razel.azimuth);
|
|
77
|
+
result[2][0] = normalizeAngle(this.observation.elevation, razel.elevation);
|
|
78
|
+
return new Matrix(result);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Create a noise matrix from the range, azimuth, and elevation standard
|
|
82
|
+
* deviations _(kilometers/radians)_.
|
|
83
|
+
*/
|
|
84
|
+
static noiseFromSigmas(rngSigma, azSigma, elSigma) {
|
|
85
|
+
return observationNoiseFromSigmas([rngSigma, azSigma, elSigma]);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// / Default noise matrix.
|
|
89
|
+
ObservationRadar.defaultNoise = ObservationRadar.noiseFromSigmas(0.32, 0.015 * DEG2RAD, 0.015 * DEG2RAD);
|
|
90
|
+
//# sourceMappingURL=ObservationRadar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservationRadar.js","sourceRoot":"","sources":["../../src/observation/ObservationRadar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAY,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGlG,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGvG,4BAA4B;AAC5B,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C,4CAA4C;IAC5C,YAAoB,KAAY,EAAS,WAAgB,EAAU,SAAiB,gBAAgB,CAAC,YAAY;QAC/G,KAAK,EAAE,CAAC;QADU,UAAK,GAAL,KAAK,CAAO;QAAS,gBAAW,GAAX,WAAW,CAAK;QAAU,WAAM,GAAN,MAAM,CAAwC;IAEjH,CAAC;IAKD,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,QAAQ;QACN,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;I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CAAC,CAAC;QAClC,MAAM,KAAK,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,KAAK,GAAG,GAAG,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAErD,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;QACpD,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QACvE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QAE3E,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,QAAgB,EAAE,OAAe,EAAE,OAAe;QACvE,OAAO,0BAA0B,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAClE,CAAC;;AAhFD,0BAA0B;AACX,6BAAY,GAAW,gBAAgB,CAAC,eAAe,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { Matrix } from 'ootk-core';
|
|
19
|
+
export declare const normalizeAngle: (a: number, b: number) => number;
|
|
20
|
+
export declare const observationDerivative: (xh: number, xl: number, step: number, isAngle?: boolean) => number;
|
|
21
|
+
export declare const observationNoiseFromSigmas: (sigmas: number[]) => Matrix;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { Matrix } from 'ootk-core';
|
|
19
|
+
export const normalizeAngle = (a, b) => {
|
|
20
|
+
const x = a - b;
|
|
21
|
+
return Math.atan2(Math.sin(x), Math.cos(x));
|
|
22
|
+
};
|
|
23
|
+
export const observationDerivative = (xh, xl, step, isAngle = false) => (isAngle ? normalizeAngle(xh, xl) : xh - xl) / step;
|
|
24
|
+
export const observationNoiseFromSigmas = (sigmas) => {
|
|
25
|
+
const n = sigmas.length;
|
|
26
|
+
const result = Array.from({ length: n }, () => Array(n).fill(0.0));
|
|
27
|
+
for (let i = 0; i < n; i++) {
|
|
28
|
+
const s = sigmas[i];
|
|
29
|
+
result[i][i] = 1 / (s * s);
|
|
30
|
+
}
|
|
31
|
+
return new Matrix(result);
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=ObservationUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservationUtils.js","sourceRoot":"","sources":["../../src/observation/ObservationUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAS,EAAE,CAAS,EAAU,EAAE;IAC7D,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEhB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAAU,EAAE,EAAU,EAAE,IAAY,EAAE,OAAO,GAAG,KAAK,EAAU,EAAE,CACrG,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;AAEtD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,MAAgB,EAAU,EAAE;IACrE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;IACxB,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAEnE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QAC1B,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QAEpB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;KAC5B;IAED,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { Propagator } from '../propagator/Propagator';
|
|
19
|
+
export declare class PropagatorPairs {
|
|
20
|
+
private _posStep;
|
|
21
|
+
private _velStep;
|
|
22
|
+
constructor(_posStep: number, _velStep: number);
|
|
23
|
+
private _high;
|
|
24
|
+
private _low;
|
|
25
|
+
set(index: number, high: Propagator, low: Propagator): void;
|
|
26
|
+
get(index: number): [Propagator, Propagator];
|
|
27
|
+
/**
|
|
28
|
+
* Get the step size at the provided index.
|
|
29
|
+
*/
|
|
30
|
+
step(index: number): number;
|
|
31
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export class PropagatorPairs {
|
|
19
|
+
constructor(_posStep, _velStep) {
|
|
20
|
+
this._posStep = _posStep;
|
|
21
|
+
this._velStep = _velStep;
|
|
22
|
+
this._high = Array(6).fill(null);
|
|
23
|
+
this._low = Array(6).fill(null);
|
|
24
|
+
// Do nothing.
|
|
25
|
+
}
|
|
26
|
+
set(index, high, low) {
|
|
27
|
+
this._high[index] = high;
|
|
28
|
+
this._low[index] = low;
|
|
29
|
+
}
|
|
30
|
+
get(index) {
|
|
31
|
+
return [this._high[index], this._low[index]];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Get the step size at the provided index.
|
|
35
|
+
*/
|
|
36
|
+
step(index) {
|
|
37
|
+
return index < 3 ? this._posStep : this._velStep;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=PropagatorPairs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropagatorPairs.js","sourceRoot":"","sources":["../../src/observation/PropagatorPairs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,OAAO,eAAe;IAC1B,YAAoB,QAAgB,EAAU,QAAgB;QAA1C,aAAQ,GAAR,QAAQ,CAAQ;QAAU,aAAQ,GAAR,QAAQ,CAAQ;QAItD,UAAK,GAA0B,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnD,SAAI,GAA0B,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAJxD,cAAc;IAChB,CAAC;IAKD,GAAG,CAAC,KAAa,EAAE,IAAgB,EAAE,GAAe;QAClD,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC;IACzB,CAAC;IAED,GAAG,CAAC,KAAa;QACf,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAE,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAAa;QAChB,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;IACnD,CAAC;CACF"}
|
package/lib/ootk.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author Theodore Kruczek
|
|
3
|
-
* @description Orbital Object ToolKit (
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
* @description Orbital Object ToolKit (ootk) is a collection of tools for working
|
|
4
4
|
* with satellites and other orbital objects.
|
|
5
5
|
*
|
|
6
6
|
* @license AGPL-3.0-or-later
|
|
7
|
-
* @Copyright (c) 2020-
|
|
7
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
8
|
+
*
|
|
9
|
+
* Many of the classes are based off of the work of @david-rc-dayton and his
|
|
10
|
+
* Pious Squid library (https://github.com/david-rc-dayton/pious_squid).
|
|
8
11
|
*
|
|
9
12
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
10
13
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -17,9 +20,8 @@
|
|
|
17
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
18
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
19
22
|
*/
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export * from './objects/index';
|
|
23
|
+
export * from 'ootk-core';
|
|
24
|
+
export * from './coordinate';
|
|
25
|
+
export * from './objects';
|
|
26
|
+
export * from './operations';
|
|
25
27
|
export * from './types/types';
|
package/lib/ootk.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author Theodore Kruczek
|
|
3
|
-
* @description Orbital Object ToolKit (
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
* @description Orbital Object ToolKit (ootk) is a collection of tools for working
|
|
4
4
|
* with satellites and other orbital objects.
|
|
5
5
|
*
|
|
6
6
|
* @license AGPL-3.0-or-later
|
|
7
|
-
* @Copyright (c) 2020-
|
|
7
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
8
|
+
*
|
|
9
|
+
* Many of the classes are based off of the work of @david-rc-dayton and his
|
|
10
|
+
* Pious Squid library (https://github.com/david-rc-dayton/pious_squid).
|
|
8
11
|
*
|
|
9
12
|
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
10
13
|
* terms of the GNU Affero General Public License as published by the Free Software
|
|
@@ -17,10 +20,9 @@
|
|
|
17
20
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
18
21
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
19
22
|
*/
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export * from './objects/index';
|
|
23
|
+
export * from 'ootk-core';
|
|
24
|
+
export * from './coordinate';
|
|
25
|
+
export * from './objects';
|
|
26
|
+
export * from './operations';
|
|
25
27
|
export * from './types/types';
|
|
26
28
|
//# sourceMappingURL=ootk.js.map
|
package/lib/ootk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ootk.js","sourceRoot":"","sources":["../src/ootk.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ootk.js","sourceRoot":"","sources":["../src/ootk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|