Commit 6ef6aeeb authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Save data

parent f44a37ec
......@@ -30,6 +30,9 @@ logger.setLevel(level=logging.INFO)
signal = 0.
prev_signal = 0.
datafile = open(f"data{int(Time.now().unix)}.txt", "w")
print("Time (UTC),separation (deg),azimuth from north (deg), elevation (deg), signal", file=datafile)
def signal_thread():
global signal
context = zmq.Context()
......@@ -102,7 +105,7 @@ while True:
separation = separation_cas
scatterplot = scatterplot_cas
print(signal, flush=True)
print(Time.now(), separation, az.to(u.deg).value, el.to(u.deg).value, signal, file=datafile, flush=True, sep=',')
if signal > maxsignal:
maxsignal = signal
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment