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
marc
dtObsGUI
Commits
6e7719e0
Commit
6e7719e0
authored
Mar 11, 2018
by
marc
Browse files
telescope class needed tele.tele import
parent
b1b9b089
Changes
3
Hide whitespace changes
Inline
Side-by-side
DTObs.py
View file @
6e7719e0
...
...
@@ -18,7 +18,7 @@ from ui.dtobswindow import Ui_mainWindow
from
astropy
import
units
as
u
from
astropy.coordinates
import
SkyCoord
from
telescope
import
telescope
from
telescope
.telescope
import
telescope
from
measurements
import
Measurements
from
metadata
import
MetaData
from
backend
import
Backend
...
...
@@ -104,24 +104,24 @@ class DTObservationProgram(Ui_mainWindow):
if
not
self
.
demo
:
self
.
myDT
=
telescope
(
setmode
=
'J2000'
,
consoleHost
=
consoleHost
)
'''
telescopeMode and telescopeOffse
r
required for meta data
telescopeMode and telescopeOffse
t
required for meta data
'''
self
.
telescopeMode
=
'J2000'
self
.
telescopeOffset
=
Non
self
.
telescopeOffset
=
Non
e
'''
As part of the init the current setpoint will be loaded as a single shot measurement.
This enables the operator to manually define the setpoint using the Console
'''
self
.
myDT
.
setRaDec
(
self
.
myDT
.
getSetpoint_RaDec
)
self
.
radec
=
SkyCoord
(
self
.
myDT
.
getSetpoint_RaDec
)
(
raStr
,
decStr
)
=
self
.
radec
.
to_string
(
'hmsdms'
).
split
()
#
self.myDT.setRaDec(self.myDT.getSetpoint_RaDec)
#
self.radec = SkyCoord(self.myDT.getSetpoint_RaDec)
#
(raStr, decStr) = self.radec.to_string('hmsdms').split()
self
.
tableWidgetPointings
.
insertRow
(
rowPosition
)
self
.
tableWidgetPointings
.
setItem
(
rowPosition
,
0
,
QTableWidgetItem
(
raStr
))
self
.
tableWidgetPointings
.
setItem
(
rowPosition
,
1
,
QTableWidgetItem
(
decStr
))
self
.
tableWidgetPointings
.
setItem
(
rowPosition
,
2
,
QTableWidgetItem
(
""
))
self
.
tableWidgetPointings
.
setItem
(
rowPosition
,
3
,
QTableWidgetItem
(
""
))
#
self.tableWidgetPointings.insertRow(rowPosition)
#
self.tableWidgetPointings.setItem(rowPosition, 0, QTableWidgetItem(raStr))
#
self.tableWidgetPointings.setItem(rowPosition, 1, QTableWidgetItem(decStr))
#
self.tableWidgetPointings.setItem(rowPosition, 2, QTableWidgetItem(""))
#
self.tableWidgetPointings.setItem(rowPosition, 3, QTableWidgetItem(""))
else
:
self
.
telescopeMode
=
None
...
...
dtobsgui.ini
View file @
6e7719e0
...
...
@@ -2,9 +2,9 @@
LogLevel:
INFO
[TestConfig]
#
demo: False
demo:
True
demo:
False
#
demo: True
[Console]
HostName:
http://charon.camras.nl/consoledemo
HostName:
consoledemo.dmz.camras.nl
#HostName: console
templates/newPointings.pnt
View file @
6e7719e0
0 10.02459429004687 40.769065
1 10.684793 40.769065
2 10.684793 41.269065
3 10.019563557556424 41.269065
0 83.09576543345065 21.51446
1 83.633212 21.51446
2 83.633212 22.01446
3 83.09388961896134 22.01446
4 83.09576543345065 21.51446
5 83.633212 21.51446
6 83.633212 22.01446
7 83.09388961896134 22.01446
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