Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
zonnedemo
Commits
b580a4e6
Unverified
Commit
b580a4e6
authored
Jun 05, 2021
by
Tammo Jan Dijkema
Browse files
Add start and end lines
parent
aa21e890
Changes
1
Show whitespace changes
Inline
Side-by-side
eclipswaarneming.py
View file @
b580a4e6
...
...
@@ -13,7 +13,7 @@ import matplotlib.pyplot as plt
import
zmq
import
struct
import
numpy
as
np
from
telescope
import
t
elescope
from
telescope
import
T
elescope
from
astropy.coordinates
import
get_sun
,
SkyCoord
,
AltAz
,
EarthLocation
,
Angle
from
astropy.time
import
Time
import
astropy.units
as
u
...
...
@@ -46,7 +46,7 @@ s = Thread(target=signal_thread)
s
.
daemon
=
True
s
.
start
()
dt
=
t
elescope
(
consoleHost
=
'localhost'
)
dt
=
T
elescope
(
consoleHost
=
'localhost'
)
dt
.
getAzEl
(
waitForUpdate
=
True
)
dwl
=
EarthLocation
(
lon
=
Angle
(
"6:23:46.21 degrees"
),
...
...
@@ -71,6 +71,15 @@ maxsignal = 0.
scatterplot_70cm
=
ax
.
scatter
([],
[],
s
=
3
,
color
=
'black'
)
ax
.
xaxis
.
set_major_formatter
(
mdates
.
DateFormatter
(
'%H:%M'
))
eclipse_starttime
=
Time
(
"2021-06-10T11:21"
)
+
2
*
u
.
hour
eclipse_endtime
=
Time
(
"2021-06-10T13:34"
)
+
2
*
u
.
hour
if
starttime
<
eclipse_starttime
<
starttime
+
3
*
u
.
hour
:
ax
.
axvline
(
eclipse_starttime
.
datetime
,
linestyle
=
'--'
,
linewidth
=
1
,
color
=
'lightgrey'
)
ax
.
text
(
eclipse_starttime
.
datetime
,
0.1
,
'Start: '
+
eclipse_starttime
.
isot
[
11
:
16
],
rotation
=
90
,
color
=
'black'
,
transform
=
ax
.
get_xaxis_transform
())
if
starttime
<
eclipse_endtime
<
starttime
+
3
*
u
.
hour
:
ax
.
axvline
(
eclipse_endtime
.
datetime
,
linestyle
=
'--'
,
linewidth
=
1
,
color
=
'lightgrey'
)
ax
.
text
(
eclipse_endtime
.
datetime
,
0.1
,
'Einde: '
+
eclipse_endtime
.
isot
[
11
:
16
],
rotation
=
90
,
color
=
'black'
,
transform
=
ax
.
get_xaxis_transform
())
while
True
:
time
.
sleep
(
0.2
)
if
signal
==
prev_signal
:
...
...
Write
Preview
Supports
Markdown
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