Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
BAORadio
AnaPAON4
Commits
f41e277d
Commit
f41e277d
authored
May 14, 2018
by
OP
Browse files
Merge branch 'master' of gitlab.in2p3.fr:baoradio/AnaPAON4
parents
adbf224d
a906c88f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Satellites/predictsatsgp4.cc
Satellites/predictsatsgp4.cc
+7
-5
No files found.
Satellites/predictsatsgp4.cc
View file @
f41e277d
...
...
@@ -30,13 +30,13 @@ void usage(void)
cout
<<
"predictsatsgp4 [options] filetle1.txt [filetle2.txt ...] : find satellites closed to a az-alt pointing"
<<
endl
<<
" -T
\"
yyyy/mm/dd hh:mm:ss
\"
: UTC date and time of observation (def=now)"
<<
endl
<<
" -O latitude(dd.ddd,N+),longitude(dd.ddd,E+),height(km) : observer location (def=paon4)"
<<
endl
<<
" -H azimuth(dd.ddd,N=0,E->W),altitude(dd.ddd,
N
+) : (def=180d,83.40d)"
<<
endl
<<
" -H azimuth(dd.ddd,N=0,E->W),altitude(dd.ddd,
Z
+) : (def=180d,83.40d)"
<<
endl
<<
" telescope horizontal coordinates pointing"
<<
endl
<<
" -D satname : print debug for this satellite (even if not in the search area)"
<<
endl
<<
" -A scanlos(dd.ddd) : search area around los (def=10d)"
<<
endl
<<
" find satellites closer than
\"
scanlos
\"
degrees of los"
<<
endl
<<
" -s spanhour(int),spanmin(min),spaninc(min) :"
<<
endl
<<
" for selected satellites (-S) finely scan at +/-(hh:mm) with step
\"
spaninc
\"
(def=1h,30mn,1mn)"
<<
endl
<<
" -D satname : print debug for this satellite (even if not in the search area)"
<<
endl
<<
" for selected satellites (-A,-D) accuratly scan at +/-(hh:mm) with step
\"
spaninc
\"
(def=1h,30mn,1mn)"
<<
endl
<<
" -v dang4vel : angular increment (deg) to compute the angular velocity of the satellite (def=1.)"
<<
endl
<<
" -p lp : print debug"
<<
endl
<<
endl
;
...
...
@@ -52,7 +52,7 @@ int main(int narg, char *arg[])
string
datestr
;
DateTime
dateobs
=
DateTime
::
Now
();
//Pointage az,alt telescope (los)
// azimuth N=0, E->W , altitude
N
+
// azimuth N=0, E->W , altitude
Z
+
double
pointaz
=
180.
,
pointalt
=
83.40
;
//degres (CygA a Paon4 au transit sud du 5/10/2017 ~18:52:45)
//Scan area around los (deg)
double
scanlos
=
10.0
;
//degres (CygA a Paon4 au transit sud du 5/10/2017 ~18:52:45)
...
...
@@ -216,9 +216,11 @@ int main(int narg, char *arg[])
vangaz
/=
dt4vel
.
TotalMinutes
();
vangalt
/=
dt4vel
.
TotalMinutes
();
//en deg/min
}
//...Search the closest approch to los in the specified time range
// (initialize at observing date)
CoordTopocentric
topomin
=
topo
;
DateTime
datemin
=
date
start
,
datecur
=
datestart
;
DateTime
datemin
=
date
obs
;
double
sepmin
=
sep
;
DateTime
datecur
=
datestart
;
while
(
datecur
<=
dateend
+
tspaninc
)
{
Eci
ecisep
=
sgp4
.
FindPosition
(
datecur
);
CoordTopocentric
toposep
=
obspaon4
.
GetLookAngle
(
ecisep
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment