Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SatNOGS Orbit Determination
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Socis
SatNOGS Orbit Determination
Commits
9c777d5b
Commit
9c777d5b
authored
5 years ago
by
noeljanes
Browse files
Options
Downloads
Patches
Plain Diff
Changes to the measurement generation script
parent
bad6b56c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/fr/cs/examples/estimation/MeasurementsGeneration.java
+13
-4
13 additions, 4 deletions
...ava/fr/cs/examples/estimation/MeasurementsGeneration.java
with
13 additions
and
4 deletions
src/main/java/fr/cs/examples/estimation/MeasurementsGeneration.java
+
13
−
4
View file @
9c777d5b
...
...
@@ -111,6 +111,16 @@ public class MeasurementsGeneration {
DataProvidersManager
manager
=
DataProvidersManager
.
getInstance
();
manager
.
addProvider
(
new
DirectoryCrawler
(
orekitData
));
/*
// beware TLE model is not suitable for propagation more than a few days
// we have to select the correct TLE for the dates we will generate measurements
final TLE tle20190611 = new TLE("1 42778U 17036P 19162.69113096 .00000749 00000-0 35781-4 0 9997",
"2 42778 97.3549 220.5119 0010756 245.3704 114.6412 15.21997549109170");
final TLE tle20190612 = new TLE("1 42778U 17036P 19163.74305518 .00000728 00000-0 34875-4 0 9996",
"2 42778 97.3548 221.5408 0010807 241.2329 118.7822 15.21999132109334");
final TLE tle20190617 = new TLE("1 42778U 17036P 19168.73968312 .00000624 00000-0 30313-4 0 9995",
"2 42778 97.3544 226.4276 0011195 221.3881 138.6508 15.22005879110094");
*/
...
...
@@ -137,6 +147,7 @@ public class MeasurementsGeneration {
final
double
duration
=
Constants
.
JULIAN_DAY
;
// Sets the duration to be the length of a Julian day
//*
// atmosphere model for drag
MarshallSolarActivityFutureEstimation
msafe
=
new
MarshallSolarActivityFutureEstimation
(
MarshallSolarActivityFutureEstimation
.
DEFAULT_SUPPORTED_NAMES
,
...
...
@@ -144,8 +155,6 @@ public class MeasurementsGeneration {
manager
.
feed
(
msafe
.
getSupportedNames
(),
msafe
);
Atmosphere
atmosphere
=
new
DTM2000
(
msafe
,
CelestialBodyFactory
.
getSun
(),
earth
);
// this orbit is a dummy one, close to the first results from orbit determination from Max Valier satellite
final
NormalizedSphericalHarmonicsProvider
gravity
=
GravityFieldFactory
.
getNormalizedProvider
(
12
,
12
);
final
AbsoluteDate
tOrb
=
new
AbsoluteDate
(
"2019-06-11T16:35:29.149"
,
utc
);
...
...
@@ -169,7 +178,7 @@ public class MeasurementsGeneration {
propagator
.
addForceModel
(
new
ThirdBodyAttraction
(
CelestialBodyFactory
.
getMoon
()));
propagator
.
addForceModel
(
new
DragForce
(
atmosphere
,
new
IsotropicDrag
(
cd
,
area
)));
//*/
// set up some correction models
// coefficients files for Vienna Model 3 can be found at
...
...
@@ -186,6 +195,7 @@ public class MeasurementsGeneration {
// set up measurements generation, with realistic models
final
Generator
generator
=
new
Generator
();
//final ObservableSatellite os = generator.addPropagator(TLEPropagator.selectExtrapolator(tle20190611));
final
ObservableSatellite
os
=
generator
.
addPropagator
(
propagator
);
/*
...
...
@@ -222,7 +232,6 @@ public class MeasurementsGeneration {
generator
.
addScheduler
(
scheduler
);
// generate measurements
System
.
out
.
println
(
"Line 223"
);
final
SortedSet
<
ObservedMeasurement
<?>>
measurements
=
generator
.
generate
(
t0
,
t0
.
shiftedBy
(
duration
));
System
.
out
.
println
(
"generated "
+
measurements
.
size
()
+
" measurements"
);
System
.
out
.
println
(
"first measurement at "
+
measurements
.
first
().
getDate
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment