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
filterbank
Commits
4ae7b89a
Commit
4ae7b89a
authored
Jan 11, 2018
by
Tammo Jan Dijkema
Browse files
Fix reading alt/az and ra/dec
parent
d06bd6e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tofil.py
View file @
4ae7b89a
...
...
@@ -17,7 +17,6 @@ import argparse
telescope_found
=
False
try
:
from
telescope
import
telescope
dt
=
telescope
(
consoleHost
=
'console'
)
telescope_found
=
True
except
:
print
(
"Could not connect to console, no RA/DEC recorded"
)
...
...
@@ -62,8 +61,10 @@ def create_filterbank(infile=None, outfile=None, date=None, source=None):
src_raj
=
0.
src_dej
=
0.
if
telescope_found
:
az_start
=
(
180
*
u
.
deg
+
dt
.
getAzEl
()[
0
]).
to
(
u
.
rad
).
value
za_start
=
(
90
*
u
.
deg
-
dt
.
getAzEl
()[
1
]).
to
(
u
.
rad
).
value
dt
=
telescope
(
consoleHost
=
'console'
)
az_start
=
(
180
*
u
.
deg
+
dt
.
getAzEl
(
waitForUpdate
=
True
)[
0
]).
to
(
u
.
deg
).
value
print
(
az_start
)
za_start
=
(
90
*
u
.
deg
-
dt
.
getAzEl
()[
1
]).
to
(
u
.
deg
).
value
src_raj
=
dt
.
getRaDec
().
ra
.
to_string
(
unit
=
u
.
hour
,
sep
=
''
)
src_dej
=
dt
.
getRaDec
().
dec
.
to_string
(
unit
=
u
.
degree
,
sep
=
''
)
...
...
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