ootk 3.0.0 → 4.0.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +235 -10
- package/README.md +27 -40
- package/dist/coordinate/Hill.d.ts +49 -0
- package/dist/coordinate/Hill.js +222 -0
- package/dist/coordinate/Hill.js.map +1 -0
- package/dist/coordinate/index.d.ts +1 -0
- package/dist/coordinate/index.js +2 -0
- package/dist/coordinate/index.js.map +1 -0
- package/dist/covariance/CovarianceSample.d.ts +43 -0
- package/dist/covariance/CovarianceSample.js +147 -0
- package/dist/covariance/CovarianceSample.js.map +1 -0
- package/dist/covariance/StateCovariance.d.ts +42 -0
- package/dist/covariance/StateCovariance.js +65 -0
- package/dist/covariance/StateCovariance.js.map +1 -0
- package/dist/force/AtmosphericDrag.d.ts +31 -0
- package/dist/force/AtmosphericDrag.js +73 -0
- package/dist/force/AtmosphericDrag.js.map +1 -0
- package/dist/force/EarthGravity.d.ts +27 -0
- package/dist/force/EarthGravity.js +117 -0
- package/dist/force/EarthGravity.js.map +1 -0
- package/{lib/ootk.d.ts → dist/force/Force.d.ts} +12 -11
- package/dist/force/Force.js +31 -0
- package/dist/force/Force.js.map +1 -0
- package/dist/force/ForceModel.d.ts +37 -0
- package/dist/force/ForceModel.js +75 -0
- package/dist/force/ForceModel.js.map +1 -0
- package/dist/force/Gravity.d.ts +38 -0
- package/dist/force/Gravity.js +47 -0
- package/dist/force/Gravity.js.map +1 -0
- package/dist/{ootk.d.ts → force/SolarRadiationPressure.d.ts} +12 -11
- package/dist/force/SolarRadiationPressure.js +44 -0
- package/dist/force/SolarRadiationPressure.js.map +1 -0
- package/dist/force/ThirdBodyGravity.d.ts +26 -0
- package/dist/force/ThirdBodyGravity.js +57 -0
- package/dist/force/ThirdBodyGravity.js.map +1 -0
- package/dist/force/Thrust.d.ts +34 -0
- package/dist/force/Thrust.js +58 -0
- package/dist/force/Thrust.js.map +1 -0
- package/dist/interfaces/RfSensorParams.d.ts +28 -0
- package/dist/interfaces/RfSensorParams.js +24 -0
- package/dist/interfaces/RfSensorParams.js.map +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +2 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interpolator/ChebyshevCoefficients.d.ts +50 -0
- package/dist/interpolator/ChebyshevCoefficients.js +94 -0
- package/dist/interpolator/ChebyshevCoefficients.js.map +1 -0
- package/dist/interpolator/ChebyshevInterpolator.d.ts +38 -0
- package/dist/interpolator/ChebyshevInterpolator.js +71 -0
- package/dist/interpolator/ChebyshevInterpolator.js.map +1 -0
- package/dist/interpolator/CubicSpline.d.ts +35 -0
- package/dist/interpolator/CubicSpline.js +69 -0
- package/dist/interpolator/CubicSpline.js.map +1 -0
- package/dist/interpolator/CubicSplineInterpolator.d.ts +36 -0
- package/dist/interpolator/CubicSplineInterpolator.js +80 -0
- package/dist/interpolator/CubicSplineInterpolator.js.map +1 -0
- package/dist/interpolator/FieldInterpolator.d.ts +28 -0
- package/dist/interpolator/FieldInterpolator.js +34 -0
- package/dist/interpolator/FieldInterpolator.js.map +1 -0
- package/dist/interpolator/Interpolator.d.ts +22 -0
- package/dist/interpolator/Interpolator.js +47 -0
- package/dist/interpolator/Interpolator.js.map +1 -0
- package/dist/interpolator/LagrangeInterpolator.d.ts +40 -0
- package/dist/interpolator/LagrangeInterpolator.js +159 -0
- package/dist/interpolator/LagrangeInterpolator.js.map +1 -0
- package/dist/interpolator/StateInterpolator.d.ts +27 -0
- package/dist/interpolator/StateInterpolator.js +35 -0
- package/dist/interpolator/StateInterpolator.js.map +1 -0
- package/dist/interpolator/VerletBlendInterpolator.d.ts +43 -0
- package/dist/interpolator/VerletBlendInterpolator.js +118 -0
- package/dist/interpolator/VerletBlendInterpolator.js.map +1 -0
- package/{lib/ootk.js → dist/main.d.ts} +13 -10
- package/dist/{objects/space-object.d.ts → main.js} +17 -23
- package/dist/main.js.map +1 -0
- package/dist/maneuver/TwoBurnOrbitTransfer.d.ts +41 -0
- package/dist/maneuver/TwoBurnOrbitTransfer.js +65 -0
- package/dist/maneuver/TwoBurnOrbitTransfer.js.map +1 -0
- package/dist/maneuver/Waypoint.d.ts +91 -0
- package/dist/maneuver/Waypoint.js +179 -0
- package/dist/maneuver/Waypoint.js.map +1 -0
- package/{lib/objects/detailed-sat.d.ts → dist/objects/DetailedSatellite.d.ts} +40 -36
- package/dist/objects/DetailedSatellite.js +136 -0
- package/dist/objects/DetailedSatellite.js.map +1 -0
- package/dist/objects/DetailedSensor.d.ts +42 -0
- package/dist/objects/DetailedSensor.js +65 -0
- package/dist/objects/DetailedSensor.js.map +1 -0
- package/dist/objects/LandObject.d.ts +33 -0
- package/dist/objects/LandObject.js +34 -0
- package/dist/objects/LandObject.js.map +1 -0
- package/dist/objects/Marker.d.ts +20 -0
- package/dist/objects/Marker.js +24 -0
- package/dist/objects/Marker.js.map +1 -0
- package/dist/objects/RfSensor.d.ts +41 -0
- package/dist/objects/RfSensor.js +67 -0
- package/dist/objects/RfSensor.js.map +1 -0
- package/dist/objects/index.d.ts +5 -4
- package/dist/objects/index.js +6 -0
- package/dist/objects/index.js.map +1 -0
- package/dist/observation/Observation.d.ts +89 -0
- package/dist/observation/Observation.js +102 -0
- package/dist/observation/Observation.js.map +1 -0
- package/dist/observation/ObservationOptical.d.ts +48 -0
- package/dist/observation/ObservationOptical.js +105 -0
- package/dist/observation/ObservationOptical.js.map +1 -0
- package/dist/observation/ObservationRadar.d.ts +46 -0
- package/dist/observation/ObservationRadar.js +96 -0
- package/dist/observation/ObservationRadar.js.map +1 -0
- package/dist/observation/ObservationUtils.d.ts +20 -0
- package/dist/observation/ObservationUtils.js +32 -0
- package/dist/observation/ObservationUtils.js.map +1 -0
- package/dist/observation/PropagatorPairs.d.ts +32 -0
- package/dist/observation/PropagatorPairs.js +43 -0
- package/dist/observation/PropagatorPairs.js.map +1 -0
- package/dist/operations/BoxMuller.d.ts +46 -0
- package/dist/operations/BoxMuller.js +77 -0
- package/dist/operations/BoxMuller.js.map +1 -0
- package/dist/operations/EulerAngles.d.ts +105 -0
- package/dist/operations/EulerAngles.js +161 -0
- package/dist/operations/EulerAngles.js.map +1 -0
- package/dist/operations/Quaternion.d.ts +56 -0
- package/dist/operations/Quaternion.js +167 -0
- package/dist/operations/Quaternion.js.map +1 -0
- package/dist/operations/RandomGaussianSource.d.ts +24 -0
- package/dist/operations/RandomGaussianSource.js +43 -0
- package/dist/operations/RandomGaussianSource.js.map +1 -0
- package/dist/operations/index.d.ts +4 -0
- package/dist/operations/index.js +5 -0
- package/dist/operations/index.js.map +1 -0
- package/dist/optimize/ChebyshevCompressor.d.ts +32 -0
- package/dist/optimize/ChebyshevCompressor.js +83 -0
- package/dist/optimize/ChebyshevCompressor.js.map +1 -0
- package/dist/optimize/DownhillSimplex.d.ts +64 -0
- package/dist/optimize/DownhillSimplex.js +182 -0
- package/dist/optimize/DownhillSimplex.js.map +1 -0
- package/dist/optimize/GoldenSection.d.ts +39 -0
- package/dist/optimize/GoldenSection.js +55 -0
- package/dist/optimize/GoldenSection.js.map +1 -0
- package/dist/optimize/PolynomialRegression.d.ts +49 -0
- package/dist/optimize/PolynomialRegression.js +83 -0
- package/dist/optimize/PolynomialRegression.js.map +1 -0
- package/dist/optimize/PolynomicalRegressionResult.d.ts +31 -0
- package/dist/optimize/PolynomicalRegressionResult.js +38 -0
- package/dist/optimize/PolynomicalRegressionResult.js.map +1 -0
- package/dist/optimize/SimpleLinearRegression.d.ts +44 -0
- package/dist/optimize/SimpleLinearRegression.js +112 -0
- package/dist/optimize/SimpleLinearRegression.js.map +1 -0
- package/dist/optimize/SimplexEntry.d.ts +32 -0
- package/dist/optimize/SimplexEntry.js +42 -0
- package/dist/optimize/SimplexEntry.js.map +1 -0
- package/dist/orbit_determination/BatchLeastSquaresOD.d.ts +65 -0
- package/dist/orbit_determination/BatchLeastSquaresOD.js +143 -0
- package/dist/orbit_determination/BatchLeastSquaresOD.js.map +1 -0
- package/dist/orbit_determination/BatchLeastSquaresResult.d.ts +31 -0
- package/{lib/objects/space-object.d.ts → dist/orbit_determination/BatchLeastSquaresResult.js} +21 -23
- package/dist/orbit_determination/BatchLeastSquaresResult.js.map +1 -0
- package/dist/orbit_determination/GibbsIOD.d.ts +38 -0
- package/dist/orbit_determination/GibbsIOD.js +76 -0
- package/dist/orbit_determination/GibbsIOD.js.map +1 -0
- package/dist/orbit_determination/GoodingIOD.d.ts +51 -0
- package/dist/orbit_determination/GoodingIOD.js +247 -0
- package/dist/orbit_determination/GoodingIOD.js.map +1 -0
- package/dist/orbit_determination/HerrickGibbsIOD.d.ts +33 -0
- package/dist/orbit_determination/HerrickGibbsIOD.js +50 -0
- package/dist/orbit_determination/HerrickGibbsIOD.js.map +1 -0
- package/dist/orbit_determination/LambertIOD.d.ts +59 -0
- package/dist/orbit_determination/LambertIOD.js +213 -0
- package/dist/orbit_determination/LambertIOD.js.map +1 -0
- package/dist/orbit_determination/ModifiedGoodingIOD.d.ts +40 -0
- package/dist/orbit_determination/ModifiedGoodingIOD.js +83 -0
- package/dist/orbit_determination/ModifiedGoodingIOD.js.map +1 -0
- package/dist/propagator/DormandPrince54Propagator.d.ts +28 -0
- package/dist/propagator/DormandPrince54Propagator.js +64 -0
- package/dist/propagator/DormandPrince54Propagator.js.map +1 -0
- package/dist/propagator/KeplerPropagator.d.ts +35 -0
- package/dist/propagator/KeplerPropagator.js +84 -0
- package/dist/propagator/KeplerPropagator.js.map +1 -0
- package/dist/propagator/Propagator.d.ts +34 -0
- package/dist/propagator/Propagator.js +162 -0
- package/dist/propagator/Propagator.js.map +1 -0
- package/dist/propagator/RkCheckpoint.d.ts +22 -0
- package/dist/propagator/RkCheckpoint.js +27 -0
- package/dist/propagator/RkCheckpoint.js.map +1 -0
- package/dist/propagator/RkResult.d.ts +23 -0
- package/dist/propagator/RkResult.js +30 -0
- package/dist/propagator/RkResult.js.map +1 -0
- package/dist/propagator/RungeKutta4Propagator.d.ts +50 -0
- package/dist/propagator/RungeKutta4Propagator.js +141 -0
- package/dist/propagator/RungeKutta4Propagator.js.map +1 -0
- package/dist/propagator/RungeKutta89Propagator.d.ts +28 -0
- package/dist/propagator/RungeKutta89Propagator.js +126 -0
- package/dist/propagator/RungeKutta89Propagator.js.map +1 -0
- package/dist/propagator/RungeKuttaAdaptive.d.ts +54 -0
- package/dist/propagator/RungeKuttaAdaptive.js +159 -0
- package/dist/propagator/RungeKuttaAdaptive.js.map +1 -0
- package/dist/propagator/Sgp4Propagator.d.ts +34 -0
- package/dist/propagator/Sgp4Propagator.js +56 -0
- package/dist/propagator/Sgp4Propagator.js.map +1 -0
- package/dist/smoothing/ExponentialSmoothing.d.ts +23 -0
- package/dist/smoothing/ExponentialSmoothing.js +81 -0
- package/dist/smoothing/ExponentialSmoothing.js.map +1 -0
- package/dist/transforms/index.d.ts +1 -0
- package/dist/transforms/index.js +2 -0
- package/dist/transforms/index.js.map +1 -0
- package/dist/transforms/transforms.d.ts +56 -92
- package/dist/transforms/transforms.js +94 -0
- package/dist/transforms/transforms.js.map +1 -0
- package/dist/types/types.d.ts +105 -584
- package/dist/types/types.js +23 -0
- package/dist/types/types.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/jacobian.d.ts +11 -0
- package/dist/utils/jacobian.js +29 -0
- package/dist/utils/jacobian.js.map +1 -0
- package/package.json +34 -42
- package/src/coordinate/Hill.ts +326 -0
- package/src/coordinate/index.ts +1 -0
- package/src/covariance/CovarianceSample.ts +194 -0
- package/src/covariance/StateCovariance.ts +69 -0
- package/src/force/AtmosphericDrag.ts +101 -0
- package/src/force/EarthGravity.ts +157 -0
- package/src/force/Force.ts +33 -0
- package/src/force/ForceModel.ts +91 -0
- package/src/force/Gravity.ts +53 -0
- package/src/force/SolarRadiationPressure.ts +42 -0
- package/src/force/ThirdBodyGravity.ts +62 -0
- package/src/force/Thrust.ts +83 -0
- package/src/interfaces/RfSensorParams.ts +30 -0
- package/src/interfaces/index.ts +1 -0
- package/src/interpolator/ChebyshevCoefficients.ts +109 -0
- package/src/interpolator/ChebyshevInterpolator.ts +87 -0
- package/src/interpolator/CubicSpline.ts +72 -0
- package/src/interpolator/CubicSplineInterpolator.ts +90 -0
- package/src/interpolator/FieldInterpolator.ts +37 -0
- package/src/interpolator/Interpolator.ts +56 -0
- package/src/interpolator/LagrangeInterpolator.ts +192 -0
- package/src/interpolator/StateInterpolator.ts +39 -0
- package/src/interpolator/VerletBlendInterpolator.ts +146 -0
- package/src/main.ts +32 -0
- package/src/maneuver/TwoBurnOrbitTransfer.ts +79 -0
- package/src/maneuver/Waypoint.ts +267 -0
- package/src/objects/DetailedSatellite.ts +159 -0
- package/src/objects/DetailedSensor.ts +68 -0
- package/src/objects/LandObject.ts +46 -0
- package/src/objects/Marker.ts +25 -0
- package/src/objects/RfSensor.ts +78 -0
- package/src/objects/index.ts +5 -0
- package/src/observation/Observation.ts +125 -0
- package/src/observation/ObservationOptical.ts +146 -0
- package/src/observation/ObservationRadar.ts +131 -0
- package/src/observation/ObservationUtils.ts +40 -0
- package/src/observation/PropagatorPairs.ts +45 -0
- package/src/operations/BoxMuller.ts +87 -0
- package/src/operations/EulerAngles.ts +183 -0
- package/src/operations/Quaternion.ts +222 -0
- package/src/operations/RandomGaussianSource.ts +51 -0
- package/src/operations/index.ts +4 -0
- package/src/optimize/ChebyshevCompressor.ts +96 -0
- package/src/optimize/DownhillSimplex.ts +212 -0
- package/src/optimize/GoldenSection.ts +71 -0
- package/src/optimize/PolynomialRegression.ts +109 -0
- package/src/optimize/PolynomicalRegressionResult.ts +32 -0
- package/src/optimize/SimpleLinearRegression.ts +127 -0
- package/src/optimize/SimplexEntry.ts +50 -0
- package/src/orbit_determination/BatchLeastSquaresOD.ts +174 -0
- package/src/orbit_determination/BatchLeastSquaresResult.ts +33 -0
- package/src/orbit_determination/GibbsIOD.ts +95 -0
- package/src/orbit_determination/GoodingIOD.ts +380 -0
- package/src/orbit_determination/HerrickGibbsIOD.ts +51 -0
- package/src/orbit_determination/LambertIOD.ts +260 -0
- package/src/orbit_determination/ModifiedGoodingIOD.ts +133 -0
- package/src/propagator/DormandPrince54Propagator.ts +73 -0
- package/src/propagator/KeplerPropagator.ts +102 -0
- package/src/propagator/Propagator.ts +253 -0
- package/src/propagator/RkCheckpoint.ts +25 -0
- package/src/propagator/RkResult.ts +26 -0
- package/src/propagator/RungeKutta4Propagator.ts +179 -0
- package/src/propagator/RungeKutta89Propagator.ts +132 -0
- package/src/propagator/RungeKuttaAdaptive.ts +232 -0
- package/src/propagator/Sgp4Propagator.ts +71 -0
- package/src/smoothing/ExponentialSmoothing.ts +90 -0
- package/src/transforms/index.ts +1 -0
- package/src/transforms/transforms.ts +117 -0
- package/src/types/types.ts +135 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/jacobian.ts +38 -0
- package/.eslintrc.json +0 -244
- 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/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/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/jest.config.ts +0 -30
- 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.js +0 -149
- package/lib/objects/detailed-sat.js.map +0 -1
- package/lib/objects/index.d.ts +0 -4
- package/lib/objects/index.js +0 -5
- package/lib/objects/index.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/ootk.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/types/types.d.ts +0 -605
- package/lib/types/types.js +0 -36
- package/lib/types/types.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/sat.d.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Theodore Kruczek.
|
|
3
|
-
* @description Orbital Object ToolKit (OOTK) is a collection of tools for working
|
|
4
|
-
* with satellites and other orbital objects.
|
|
5
|
-
*
|
|
6
|
-
* @file The Sat class provides functions for calculating satellites positions relative
|
|
7
|
-
* to earth based sensors and other orbital objects.
|
|
8
|
-
*
|
|
9
|
-
* @license AGPL-3.0-or-later
|
|
10
|
-
* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
11
|
-
*
|
|
12
|
-
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
13
|
-
* terms of the GNU Affero General Public License as published by the Free Software
|
|
14
|
-
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
15
|
-
*
|
|
16
|
-
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
17
|
-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
18
|
-
* See the GNU Affero General Public License for more details.
|
|
19
|
-
*
|
|
20
|
-
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
|
-
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
|
-
*/
|
|
23
|
-
import { EcfVec3, EciVec3, LlaVec3, RaeVec3, SatelliteRecord, SpaceObjectType, StateVector, TleLine1, TleLine2 } from '../types/types';
|
|
24
|
-
import { Sensor } from './sensor';
|
|
25
|
-
import { SpaceObject } from './space-object';
|
|
26
|
-
interface ObjectInfo {
|
|
27
|
-
name?: string;
|
|
28
|
-
type?: SpaceObjectType;
|
|
29
|
-
rcs?: number;
|
|
30
|
-
vmag?: number;
|
|
31
|
-
tle1: TleLine1;
|
|
32
|
-
tle2: TleLine2;
|
|
33
|
-
}
|
|
34
|
-
export declare class Sat extends SpaceObject {
|
|
35
|
-
satNum: number;
|
|
36
|
-
satrec: SatelliteRecord;
|
|
37
|
-
intlDes: string;
|
|
38
|
-
epochYear: number;
|
|
39
|
-
epochDay: number;
|
|
40
|
-
meanMoDev1: number;
|
|
41
|
-
meanMoDev2: number;
|
|
42
|
-
bstar: number;
|
|
43
|
-
inclination: number;
|
|
44
|
-
raan: number;
|
|
45
|
-
eccentricity: number;
|
|
46
|
-
argOfPerigee: number;
|
|
47
|
-
meanAnomaly: number;
|
|
48
|
-
meanMotion: number;
|
|
49
|
-
period: number;
|
|
50
|
-
apogee: number;
|
|
51
|
-
perigee: number;
|
|
52
|
-
options: any;
|
|
53
|
-
constructor(info: ObjectInfo, options?: any);
|
|
54
|
-
propagateTo(date: Date): Sat;
|
|
55
|
-
/**
|
|
56
|
-
* Calculates position and velocity in ECI coordinates at a given time.
|
|
57
|
-
* @param {Date} date Date to calculate the state vector for
|
|
58
|
-
* @returns {StateVector} State vector for the given date
|
|
59
|
-
*/
|
|
60
|
-
getStateVec(date?: Date): StateVector;
|
|
61
|
-
/**
|
|
62
|
-
* Calculates ECI position at a given time.
|
|
63
|
-
* @param {Date} date Date to calculate
|
|
64
|
-
* @returns {EciVec3} ECI position vector
|
|
65
|
-
*/
|
|
66
|
-
getEci(date?: Date): EciVec3;
|
|
67
|
-
/**
|
|
68
|
-
* Calculates ECF position at a given time.
|
|
69
|
-
* @param {Date} date Date to calculate
|
|
70
|
-
* @returns {EcfVec3} ECF position vector
|
|
71
|
-
*/
|
|
72
|
-
getEcf(date?: Date): EcfVec3;
|
|
73
|
-
/**
|
|
74
|
-
* Calculates LLA position at a given time.
|
|
75
|
-
* @param {Date} date Date to calculate
|
|
76
|
-
* @returns {LlaVec3} LLA position vector
|
|
77
|
-
*/
|
|
78
|
-
getLla(date?: Date): LlaVec3;
|
|
79
|
-
getRae(sensor: Sensor, date?: Date): RaeVec3;
|
|
80
|
-
getAzimuth(sensor: Sensor, date?: Date): number;
|
|
81
|
-
getElevation(sensor: Sensor, date?: Date): number;
|
|
82
|
-
getRange(sensor: Sensor, date?: Date): number;
|
|
83
|
-
/**
|
|
84
|
-
* Calculates the time variables for a given date relative to the TLE epoch.
|
|
85
|
-
* @param {Date} date Date to calculate
|
|
86
|
-
* @param {SatelliteRecord} satrec Satellite orbital information
|
|
87
|
-
* @returns {{m: number, gmst: GreenwichMeanSiderealTime, j: number}} Time variables
|
|
88
|
-
*/
|
|
89
|
-
private static calculateTimeVariables;
|
|
90
|
-
static checkSatrec(satrec: SatelliteRecord): boolean;
|
|
91
|
-
}
|
|
92
|
-
export {};
|
package/lib/objects/sat.js
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Theodore Kruczek.
|
|
3
|
-
* @description Orbital Object ToolKit (OOTK) is a collection of tools for working
|
|
4
|
-
* with satellites and other orbital objects.
|
|
5
|
-
*
|
|
6
|
-
* @file The Sat class provides functions for calculating satellites positions relative
|
|
7
|
-
* to earth based sensors and other orbital objects.
|
|
8
|
-
*
|
|
9
|
-
* @license AGPL-3.0-or-later
|
|
10
|
-
* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
11
|
-
*
|
|
12
|
-
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
13
|
-
* terms of the GNU Affero General Public License as published by the Free Software
|
|
14
|
-
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
15
|
-
*
|
|
16
|
-
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
17
|
-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
18
|
-
* See the GNU Affero General Public License for more details.
|
|
19
|
-
*
|
|
20
|
-
* You should have received a copy of the GNU Affero General Public License along with
|
|
21
|
-
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
22
|
-
*/
|
|
23
|
-
var __extends = (this && this.__extends) || (function () {
|
|
24
|
-
var extendStatics = function (d, b) {
|
|
25
|
-
extendStatics = Object.setPrototypeOf ||
|
|
26
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
28
|
-
return extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
return function (d, b) {
|
|
31
|
-
if (typeof b !== "function" && b !== null)
|
|
32
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
-
extendStatics(d, b);
|
|
34
|
-
function __() { this.constructor = d; }
|
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
import { DAY_TO_MS, MINUTES_PER_DAY } from '../utils/constants';
|
|
39
|
-
import { Sgp4 } from '../sgp4/sgp4';
|
|
40
|
-
import { SpaceObject } from './space-object';
|
|
41
|
-
import { Tle } from '../tle/tle';
|
|
42
|
-
import { Transforms } from '../transforms/transforms';
|
|
43
|
-
import { Utils } from '../utils/utils';
|
|
44
|
-
var Sat = /** @class */ (function (_super) {
|
|
45
|
-
__extends(Sat, _super);
|
|
46
|
-
function Sat(info, options) {
|
|
47
|
-
var _this = _super.call(this, info) || this;
|
|
48
|
-
var tleData = Tle.parseTle(info.tle1, info.tle2);
|
|
49
|
-
_this.satNum = tleData.satNum;
|
|
50
|
-
_this.intlDes = tleData.intlDes;
|
|
51
|
-
_this.epochYear = tleData.epochYear;
|
|
52
|
-
_this.epochDay = tleData.epochDay;
|
|
53
|
-
_this.meanMoDev1 = tleData.meanMoDev1;
|
|
54
|
-
_this.meanMoDev2 = tleData.meanMoDev2;
|
|
55
|
-
_this.bstar = tleData.bstar;
|
|
56
|
-
_this.inclination = tleData.inclination;
|
|
57
|
-
_this.raan = tleData.raan;
|
|
58
|
-
_this.eccentricity = tleData.eccentricity;
|
|
59
|
-
_this.argOfPerigee = tleData.argOfPerigee;
|
|
60
|
-
_this.meanAnomaly = tleData.meanAnomaly;
|
|
61
|
-
_this.meanMotion = tleData.meanMotion;
|
|
62
|
-
_this.period = 1440 / _this.meanMotion;
|
|
63
|
-
// NOTE: Calculate apogee and perigee
|
|
64
|
-
_this.satrec = Sgp4.createSatrec(info.tle1, info.tle2);
|
|
65
|
-
_this.options = options ? options : {};
|
|
66
|
-
return _this;
|
|
67
|
-
}
|
|
68
|
-
Sat.prototype.propagateTo = function (date) {
|
|
69
|
-
var m = Sat.calculateTimeVariables(date, this.satrec).m;
|
|
70
|
-
var eci = Sgp4.propagate(this.satrec, m).position || {
|
|
71
|
-
x: 0,
|
|
72
|
-
y: 0,
|
|
73
|
-
z: 0,
|
|
74
|
-
};
|
|
75
|
-
this.position = eci;
|
|
76
|
-
this.time = date;
|
|
77
|
-
return this;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Calculates position and velocity in ECI coordinates at a given time.
|
|
81
|
-
* @param {Date} date Date to calculate the state vector for
|
|
82
|
-
* @returns {StateVector} State vector for the given date
|
|
83
|
-
*/
|
|
84
|
-
Sat.prototype.getStateVec = function (date) {
|
|
85
|
-
if (date === void 0) { date = this.time; }
|
|
86
|
-
var m = Sat.calculateTimeVariables(date, this.satrec).m;
|
|
87
|
-
return Sgp4.propagate(this.satrec, m);
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Calculates ECI position at a given time.
|
|
91
|
-
* @param {Date} date Date to calculate
|
|
92
|
-
* @returns {EciVec3} ECI position vector
|
|
93
|
-
*/
|
|
94
|
-
Sat.prototype.getEci = function (date) {
|
|
95
|
-
if (date === void 0) { date = this.time; }
|
|
96
|
-
var m = Sat.calculateTimeVariables(date, this.satrec).m;
|
|
97
|
-
var eci = Sgp4.propagate(this.satrec, m).position || {
|
|
98
|
-
x: 0,
|
|
99
|
-
y: 0,
|
|
100
|
-
z: 0,
|
|
101
|
-
};
|
|
102
|
-
return eci;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Calculates ECF position at a given time.
|
|
106
|
-
* @param {Date} date Date to calculate
|
|
107
|
-
* @returns {EcfVec3} ECF position vector
|
|
108
|
-
*/
|
|
109
|
-
Sat.prototype.getEcf = function (date) {
|
|
110
|
-
if (date === void 0) { date = this.time; }
|
|
111
|
-
var _a = Sat.calculateTimeVariables(date, this.satrec), m = _a.m, gmst = _a.gmst;
|
|
112
|
-
var eci = Sgp4.propagate(this.satrec, m).position || {
|
|
113
|
-
x: 0,
|
|
114
|
-
y: 0,
|
|
115
|
-
z: 0,
|
|
116
|
-
};
|
|
117
|
-
return Transforms.eci2ecf(eci, gmst);
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Calculates LLA position at a given time.
|
|
121
|
-
* @param {Date} date Date to calculate
|
|
122
|
-
* @returns {LlaVec3} LLA position vector
|
|
123
|
-
*/
|
|
124
|
-
Sat.prototype.getLla = function (date) {
|
|
125
|
-
if (date === void 0) { date = this.time; }
|
|
126
|
-
var _a = Sat.calculateTimeVariables(date, this.satrec), m = _a.m, gmst = _a.gmst;
|
|
127
|
-
var eci = Sgp4.propagate(this.satrec, m).position || {
|
|
128
|
-
x: 0,
|
|
129
|
-
y: 0,
|
|
130
|
-
z: 0,
|
|
131
|
-
};
|
|
132
|
-
return Transforms.eci2lla(eci, gmst);
|
|
133
|
-
};
|
|
134
|
-
Sat.prototype.getRae = function (sensor, date) {
|
|
135
|
-
if (date === void 0) { date = this.time; }
|
|
136
|
-
var _a = Sat.calculateTimeVariables(date, this.satrec), m = _a.m, gmst = _a.gmst;
|
|
137
|
-
var eci = Sgp4.propagate(this.satrec, m).position || {
|
|
138
|
-
x: 0,
|
|
139
|
-
y: 0,
|
|
140
|
-
z: 0,
|
|
141
|
-
};
|
|
142
|
-
var ecf = Transforms.eci2ecf(eci, gmst);
|
|
143
|
-
return Transforms.ecf2rae({ lat: sensor.lat, lon: sensor.lon, alt: sensor.alt }, ecf);
|
|
144
|
-
};
|
|
145
|
-
Sat.prototype.getAzimuth = function (sensor, date) {
|
|
146
|
-
if (date === void 0) { date = this.time; }
|
|
147
|
-
var rae = this.getRae(sensor, date);
|
|
148
|
-
return rae.az;
|
|
149
|
-
};
|
|
150
|
-
Sat.prototype.getElevation = function (sensor, date) {
|
|
151
|
-
if (date === void 0) { date = this.time; }
|
|
152
|
-
var rae = this.getRae(sensor, date);
|
|
153
|
-
return rae.el;
|
|
154
|
-
};
|
|
155
|
-
Sat.prototype.getRange = function (sensor, date) {
|
|
156
|
-
if (date === void 0) { date = this.time; }
|
|
157
|
-
var rae = this.getRae(sensor, date);
|
|
158
|
-
return rae.rng;
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* Calculates the time variables for a given date relative to the TLE epoch.
|
|
162
|
-
* @param {Date} date Date to calculate
|
|
163
|
-
* @param {SatelliteRecord} satrec Satellite orbital information
|
|
164
|
-
* @returns {{m: number, gmst: GreenwichMeanSiderealTime, j: number}} Time variables
|
|
165
|
-
*/
|
|
166
|
-
Sat.calculateTimeVariables = function (date, satrec) {
|
|
167
|
-
var j = Utils.jday(date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()) +
|
|
168
|
-
date.getUTCMilliseconds() * DAY_TO_MS;
|
|
169
|
-
var gmst = Sgp4.gstime(j);
|
|
170
|
-
var m = satrec ? (j - satrec.jdsatepoch) * MINUTES_PER_DAY : null;
|
|
171
|
-
return { gmst: gmst, m: m, j: j };
|
|
172
|
-
};
|
|
173
|
-
Sat.checkSatrec = function (satrec) {
|
|
174
|
-
if (isNaN(satrec.a) ||
|
|
175
|
-
isNaN(satrec.am) ||
|
|
176
|
-
isNaN(satrec.alta) ||
|
|
177
|
-
isNaN(satrec.em) ||
|
|
178
|
-
isNaN(satrec.mo) ||
|
|
179
|
-
isNaN(satrec.ecco) ||
|
|
180
|
-
isNaN(satrec.no)) {
|
|
181
|
-
return false;
|
|
182
|
-
}
|
|
183
|
-
return true;
|
|
184
|
-
};
|
|
185
|
-
return Sat;
|
|
186
|
-
}(SpaceObject));
|
|
187
|
-
export { Sat };
|
|
188
|
-
//# sourceMappingURL=sat.js.map
|
package/lib/objects/sat.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{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"}
|
package/lib/objects/sensor.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Theodore Kruczek.
|
|
3
|
-
* @description Orbital Object ToolKit (OOTK) is a collection of tools for working
|
|
4
|
-
* with satellites and other orbital objects.
|
|
5
|
-
*
|
|
6
|
-
* @file The Sensor class is used for creating ground based observers.
|
|
7
|
-
*
|
|
8
|
-
* @license AGPL-3.0-or-later
|
|
9
|
-
* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
10
|
-
*
|
|
11
|
-
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
12
|
-
* terms of the GNU Affero General Public License as published by the Free Software
|
|
13
|
-
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
14
|
-
*
|
|
15
|
-
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
16
|
-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
17
|
-
* See the GNU Affero General Public License for more details.
|
|
18
|
-
*
|
|
19
|
-
* You should have received a copy of the GNU Affero General Public License along with
|
|
20
|
-
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
-
*/
|
|
22
|
-
import { Degrees, Kilometers, Radians, RaeVec3, SpaceObjectType } from '../types/types';
|
|
23
|
-
import { BaseObject } from './base-object';
|
|
24
|
-
import { Sat } from './sat';
|
|
25
|
-
interface ObjectInfo {
|
|
26
|
-
name?: string;
|
|
27
|
-
type?: SpaceObjectType;
|
|
28
|
-
lat: Radians;
|
|
29
|
-
lon: Radians;
|
|
30
|
-
alt: Kilometers;
|
|
31
|
-
minAz?: Degrees;
|
|
32
|
-
maxAz?: Degrees;
|
|
33
|
-
minEl?: Degrees;
|
|
34
|
-
maxEl?: Degrees;
|
|
35
|
-
minRng?: Kilometers;
|
|
36
|
-
maxRng?: Kilometers;
|
|
37
|
-
}
|
|
38
|
-
export declare enum PassType {
|
|
39
|
-
OUT_OF_VIEW = -1,
|
|
40
|
-
ENTER = 0,
|
|
41
|
-
IN_VIEW = 1,
|
|
42
|
-
EXIT = 2
|
|
43
|
-
}
|
|
44
|
-
type Lookangles = {
|
|
45
|
-
type: PassType;
|
|
46
|
-
time: Date;
|
|
47
|
-
az: Degrees;
|
|
48
|
-
el: Degrees;
|
|
49
|
-
rng: Kilometers;
|
|
50
|
-
maxElPass?: Degrees;
|
|
51
|
-
};
|
|
52
|
-
export declare class Sensor extends BaseObject {
|
|
53
|
-
lat: Radians;
|
|
54
|
-
lon: Radians;
|
|
55
|
-
alt: Kilometers;
|
|
56
|
-
minAz: Degrees;
|
|
57
|
-
maxAz: Degrees;
|
|
58
|
-
minEl: Degrees;
|
|
59
|
-
maxEl: Degrees;
|
|
60
|
-
minRng: Kilometers;
|
|
61
|
-
maxRng: Kilometers;
|
|
62
|
-
/**
|
|
63
|
-
* * name: Name as a string - OPTIONAL
|
|
64
|
-
* * type: SpaceObjectType - OPTIONAL
|
|
65
|
-
* * lat: Latitude in Radians
|
|
66
|
-
* * lon: Longitude in Radians
|
|
67
|
-
* * alt: Altitude in Kilometers
|
|
68
|
-
* * minAz: Minimum Azimuth in Degrees
|
|
69
|
-
* * maxAz: Maximum Azimuth in Degrees
|
|
70
|
-
* * minEl: Minimum Elevation in Degrees
|
|
71
|
-
* * maxEl: Maximum Elevation in Degrees
|
|
72
|
-
* * minRng: Minimum Range in Kilometers
|
|
73
|
-
* * maxRng: Maximum Range in Kilometers
|
|
74
|
-
* @param {ObjectInfo} info ObjectInfo object containing the object's information
|
|
75
|
-
*/
|
|
76
|
-
constructor(info: ObjectInfo);
|
|
77
|
-
private validateInputData;
|
|
78
|
-
private validateFov;
|
|
79
|
-
private validateMaxRng;
|
|
80
|
-
private validateMinRng;
|
|
81
|
-
private validateMaxEl;
|
|
82
|
-
private validateMinEl;
|
|
83
|
-
private validateMaxAz;
|
|
84
|
-
private validateMinAz;
|
|
85
|
-
private validateLla;
|
|
86
|
-
setTime(date: Date): this;
|
|
87
|
-
getRae(sat: Sat, date?: Date): RaeVec3;
|
|
88
|
-
isRaeInFov(rae: RaeVec3): boolean;
|
|
89
|
-
isSatInFov(sat: Sat, date?: Date): boolean;
|
|
90
|
-
calculatePasses(planningInterval: number, sat: Sat, date?: Date): Lookangles[];
|
|
91
|
-
private static getPassType_;
|
|
92
|
-
}
|
|
93
|
-
export {};
|
package/lib/objects/sensor.js
DELETED
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Theodore Kruczek.
|
|
3
|
-
* @description Orbital Object ToolKit (OOTK) is a collection of tools for working
|
|
4
|
-
* with satellites and other orbital objects.
|
|
5
|
-
*
|
|
6
|
-
* @file The Sensor class is used for creating ground based observers.
|
|
7
|
-
*
|
|
8
|
-
* @license AGPL-3.0-or-later
|
|
9
|
-
* @Copyright (c) 2020-2023 Theodore Kruczek
|
|
10
|
-
*
|
|
11
|
-
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
12
|
-
* terms of the GNU Affero General Public License as published by the Free Software
|
|
13
|
-
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
14
|
-
*
|
|
15
|
-
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
16
|
-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
17
|
-
* See the GNU Affero General Public License for more details.
|
|
18
|
-
*
|
|
19
|
-
* You should have received a copy of the GNU Affero General Public License along with
|
|
20
|
-
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
-
*/
|
|
22
|
-
var __extends = (this && this.__extends) || (function () {
|
|
23
|
-
var extendStatics = function (d, b) {
|
|
24
|
-
extendStatics = Object.setPrototypeOf ||
|
|
25
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
27
|
-
return extendStatics(d, b);
|
|
28
|
-
};
|
|
29
|
-
return function (d, b) {
|
|
30
|
-
if (typeof b !== "function" && b !== null)
|
|
31
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
32
|
-
extendStatics(d, b);
|
|
33
|
-
function __() { this.constructor = d; }
|
|
34
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
-
};
|
|
36
|
-
})();
|
|
37
|
-
import { SpaceObjectType } from '../types/types';
|
|
38
|
-
import { RAD2DEG } from '../utils/constants';
|
|
39
|
-
import { BaseObject } from './base-object';
|
|
40
|
-
export var PassType;
|
|
41
|
-
(function (PassType) {
|
|
42
|
-
PassType[PassType["OUT_OF_VIEW"] = -1] = "OUT_OF_VIEW";
|
|
43
|
-
PassType[PassType["ENTER"] = 0] = "ENTER";
|
|
44
|
-
PassType[PassType["IN_VIEW"] = 1] = "IN_VIEW";
|
|
45
|
-
PassType[PassType["EXIT"] = 2] = "EXIT";
|
|
46
|
-
})(PassType || (PassType = {}));
|
|
47
|
-
var TAU = Math.PI * 2;
|
|
48
|
-
var Sensor = /** @class */ (function (_super) {
|
|
49
|
-
__extends(Sensor, _super);
|
|
50
|
-
/**
|
|
51
|
-
* * name: Name as a string - OPTIONAL
|
|
52
|
-
* * type: SpaceObjectType - OPTIONAL
|
|
53
|
-
* * lat: Latitude in Radians
|
|
54
|
-
* * lon: Longitude in Radians
|
|
55
|
-
* * alt: Altitude in Kilometers
|
|
56
|
-
* * minAz: Minimum Azimuth in Degrees
|
|
57
|
-
* * maxAz: Maximum Azimuth in Degrees
|
|
58
|
-
* * minEl: Minimum Elevation in Degrees
|
|
59
|
-
* * maxEl: Maximum Elevation in Degrees
|
|
60
|
-
* * minRng: Minimum Range in Kilometers
|
|
61
|
-
* * maxRng: Maximum Range in Kilometers
|
|
62
|
-
* @param {ObjectInfo} info ObjectInfo object containing the object's information
|
|
63
|
-
*/
|
|
64
|
-
function Sensor(info) {
|
|
65
|
-
var _this = this;
|
|
66
|
-
// If there is a sensor type verify it is valid
|
|
67
|
-
if (info.type) {
|
|
68
|
-
switch (info.type) {
|
|
69
|
-
case SpaceObjectType.OPTICAL:
|
|
70
|
-
case SpaceObjectType.MECHANICAL:
|
|
71
|
-
case SpaceObjectType.PHASED_ARRAY_RADAR:
|
|
72
|
-
case SpaceObjectType.OBSERVER:
|
|
73
|
-
case SpaceObjectType.BISTATIC_RADIO_TELESCOPE:
|
|
74
|
-
break;
|
|
75
|
-
default:
|
|
76
|
-
throw new Error('Invalid sensor type');
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
_this = _super.call(this, info) || this;
|
|
80
|
-
_this.validateInputData(info);
|
|
81
|
-
return _this;
|
|
82
|
-
}
|
|
83
|
-
Sensor.prototype.validateInputData = function (info) {
|
|
84
|
-
this.validateLla(info);
|
|
85
|
-
this.validateFov(info);
|
|
86
|
-
};
|
|
87
|
-
Sensor.prototype.validateFov = function (info) {
|
|
88
|
-
this.validateMinAz(info);
|
|
89
|
-
this.validateMaxAz(info);
|
|
90
|
-
this.validateMinEl(info);
|
|
91
|
-
this.validateMaxEl(info);
|
|
92
|
-
this.validateMinRng(info);
|
|
93
|
-
this.validateMaxRng(info);
|
|
94
|
-
};
|
|
95
|
-
Sensor.prototype.validateMaxRng = function (info) {
|
|
96
|
-
if (info.maxRng >= 0) {
|
|
97
|
-
this.maxRng = info.maxRng;
|
|
98
|
-
}
|
|
99
|
-
else if (typeof info.maxRng === 'undefined') {
|
|
100
|
-
// Default is a telescope
|
|
101
|
-
this.maxRng = 50000; // arbitrary large number
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
throw new Error('Invalid maximum range - must be greater than 0');
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
Sensor.prototype.validateMinRng = function (info) {
|
|
108
|
-
if (info.minRng >= 0) {
|
|
109
|
-
this.minRng = info.minRng;
|
|
110
|
-
}
|
|
111
|
-
else if (typeof info.minRng === 'undefined') {
|
|
112
|
-
// Default is a telescope
|
|
113
|
-
this.minRng = 0;
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
throw new Error('Invalid minimum range - must be greater than 0');
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
Sensor.prototype.validateMaxEl = function (info) {
|
|
120
|
-
if (info.maxEl >= 0 && info.maxEl <= 180) {
|
|
121
|
-
this.maxEl = info.maxEl;
|
|
122
|
-
}
|
|
123
|
-
else if (typeof info.maxEl === 'undefined') {
|
|
124
|
-
// Default is a telescope
|
|
125
|
-
this.maxEl = 90;
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
throw new Error('Invalid maximum elevation - must be between 0 and 180');
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
Sensor.prototype.validateMinEl = function (info) {
|
|
132
|
-
if (info.minEl >= 0 && info.minEl <= 90) {
|
|
133
|
-
this.minEl = info.minEl;
|
|
134
|
-
}
|
|
135
|
-
else if (typeof info.minEl === 'undefined') {
|
|
136
|
-
// Default is a telescope
|
|
137
|
-
this.minEl = 0;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
throw new Error('Invalid minimum elevation - must be between 0 and 90');
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
Sensor.prototype.validateMaxAz = function (info) {
|
|
144
|
-
if (info.maxAz >= 0 && info.maxAz <= 360) {
|
|
145
|
-
this.maxAz = info.maxAz;
|
|
146
|
-
}
|
|
147
|
-
else if (typeof info.maxAz === 'undefined') {
|
|
148
|
-
// Default is a telescope
|
|
149
|
-
this.maxAz = 360;
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
throw new Error('Invalid maximum azimuth - must be between 0 and 360');
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
Sensor.prototype.validateMinAz = function (info) {
|
|
156
|
-
if (info.minAz >= 0 && info.minAz <= 360) {
|
|
157
|
-
this.minAz = info.minAz;
|
|
158
|
-
}
|
|
159
|
-
else if (typeof info.minAz === 'undefined') {
|
|
160
|
-
// Default is a telescope
|
|
161
|
-
this.minAz = 0;
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
throw new Error('Invalid minimum azimuth - must be between 0 and 360');
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
Sensor.prototype.validateLla = function (info) {
|
|
168
|
-
if (info.lat >= -90 && info.lat <= 90) {
|
|
169
|
-
this.lat = info.lat;
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
throw new Error('Invalid latitude');
|
|
173
|
-
}
|
|
174
|
-
if (info.lon >= -180 && info.lon <= 180) {
|
|
175
|
-
this.lon = info.lon;
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
throw new Error('Invalid longitude');
|
|
179
|
-
}
|
|
180
|
-
if (info.alt >= 0) {
|
|
181
|
-
this.alt = info.alt;
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
throw new Error('Invalid altitude');
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
Sensor.prototype.setTime = function (date) {
|
|
188
|
-
this.time = date;
|
|
189
|
-
return this;
|
|
190
|
-
};
|
|
191
|
-
Sensor.prototype.getRae = function (sat, date) {
|
|
192
|
-
if (date === void 0) { date = this.time; }
|
|
193
|
-
return sat.getRae(this, date);
|
|
194
|
-
};
|
|
195
|
-
Sensor.prototype.isRaeInFov = function (rae) {
|
|
196
|
-
if (rae.el * RAD2DEG < this.minEl || rae.el * RAD2DEG > this.maxEl) {
|
|
197
|
-
return false;
|
|
198
|
-
}
|
|
199
|
-
if (rae.rng < this.minRng || rae.rng > this.maxRng) {
|
|
200
|
-
return false;
|
|
201
|
-
}
|
|
202
|
-
if (this.minAz * RAD2DEG > this.maxAz) {
|
|
203
|
-
// North Facing Sensors
|
|
204
|
-
if (rae.az * RAD2DEG < this.minAz && rae.az * RAD2DEG > this.maxAz) {
|
|
205
|
-
return false;
|
|
206
|
-
}
|
|
207
|
-
// Normal Facing Sensors
|
|
208
|
-
}
|
|
209
|
-
else if (rae.az * RAD2DEG < this.minAz || rae.az * RAD2DEG > this.maxAz) {
|
|
210
|
-
return false;
|
|
211
|
-
}
|
|
212
|
-
return true;
|
|
213
|
-
};
|
|
214
|
-
Sensor.prototype.isSatInFov = function (sat, date) {
|
|
215
|
-
if (date === void 0) { date = this.time; }
|
|
216
|
-
return this.isRaeInFov(this.getRae(sat, date));
|
|
217
|
-
};
|
|
218
|
-
Sensor.prototype.calculatePasses = function (planningInterval, sat, date) {
|
|
219
|
-
if (date === void 0) { date = this.time; }
|
|
220
|
-
var isInViewLast = false;
|
|
221
|
-
var maxElThisPass = 0;
|
|
222
|
-
var msnPlanPasses = [];
|
|
223
|
-
var startTime = date.getTime();
|
|
224
|
-
for (var timeOffset = 0; timeOffset < planningInterval; timeOffset++) {
|
|
225
|
-
var curTime = new Date(startTime + timeOffset * 1000);
|
|
226
|
-
var rae = this.getRae(sat, curTime);
|
|
227
|
-
// Radians to Degrees
|
|
228
|
-
var azDeg = ((rae.az * 360) / TAU);
|
|
229
|
-
var elDeg = ((rae.el * 360) / TAU);
|
|
230
|
-
var isInView = this.isRaeInFov(rae);
|
|
231
|
-
if (timeOffset === 0) {
|
|
232
|
-
// Propagate Backwards to get the previous pass
|
|
233
|
-
var oldRae = this.getRae(sat, new Date(Date.now() - 1 * 1000));
|
|
234
|
-
isInViewLast = this.isRaeInFov(oldRae);
|
|
235
|
-
}
|
|
236
|
-
var type = Sensor.getPassType_(isInView, isInViewLast);
|
|
237
|
-
maxElThisPass = Math.max(maxElThisPass, rae.el);
|
|
238
|
-
if (type === PassType.ENTER || type === PassType.EXIT) {
|
|
239
|
-
var pass = {
|
|
240
|
-
type: type,
|
|
241
|
-
time: curTime,
|
|
242
|
-
az: azDeg,
|
|
243
|
-
el: elDeg,
|
|
244
|
-
rng: rae.rng,
|
|
245
|
-
};
|
|
246
|
-
// Only set maxEl for EXIT passes
|
|
247
|
-
if (type === PassType.EXIT) {
|
|
248
|
-
pass.maxElPass = maxElThisPass;
|
|
249
|
-
}
|
|
250
|
-
msnPlanPasses.push(pass);
|
|
251
|
-
maxElThisPass = 0;
|
|
252
|
-
}
|
|
253
|
-
isInViewLast = isInView;
|
|
254
|
-
}
|
|
255
|
-
return msnPlanPasses;
|
|
256
|
-
};
|
|
257
|
-
Sensor.getPassType_ = function (isInView, isInViewLast) {
|
|
258
|
-
var type = PassType.OUT_OF_VIEW;
|
|
259
|
-
if (isInView && !isInViewLast) {
|
|
260
|
-
type = PassType.ENTER;
|
|
261
|
-
}
|
|
262
|
-
else if (!isInView && isInViewLast) {
|
|
263
|
-
type = PassType.EXIT;
|
|
264
|
-
}
|
|
265
|
-
else if (isInView && isInViewLast) {
|
|
266
|
-
type = PassType.IN_VIEW;
|
|
267
|
-
}
|
|
268
|
-
return type;
|
|
269
|
-
};
|
|
270
|
-
return Sensor;
|
|
271
|
-
}(BaseObject));
|
|
272
|
-
export { Sensor };
|
|
273
|
-
//# sourceMappingURL=sensor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sensor.js","sourceRoot":"","sources":["../../src/objects/sensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;AAEH,OAAO,EAAyC,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAExF,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAiB3C,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,sDAAgB,CAAA;IAChB,yCAAS,CAAA;IACT,6CAAW,CAAA;IACX,uCAAQ,CAAA;AACV,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAWD,IAAM,GAAG,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;AAExB;IAA4B,0BAAU;IAWpC;;;;;;;;;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