-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py
executable file
·111 lines (99 loc) · 2.36 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
### This configuration file is written in python2 format
### Camera configuration
### Note that the serial number should be written by user when one have new one
camera=[
{
'serial': 131741,
'filter': 'u',
'uid': 0,
'gain': 1.7 # from the spec sheet
},
{
'serial': 121431,
'filter': 'Rc',
'uid': 1,
'gain': 1.3
},
{
'serial': 121430,
'filter': 'Ic',
'uid': 2,
'gain': 1.50
}
]
### Server configuration
nodesetting={
'camera': {
# 'ip': "192.168.0.38",
'ip': "127.0.0.1",
'port': 10009
},
'mount' : {
# 'ip': "124.31.254.16",
'ip': "127.0.0.1",
'port': 10002
},
'telescope': {
# 'ip': "192.168.0.248",
'ip': "192.168.154.1",
# 'ip': "124.31.254.16",
# 'ip': "127.0.0.1",
'port': 10001
# 'port': 51111
},
'dome': {
# 'ip': "192.168.1.116",
# 'ip': "124.31.254.16",
'ip': "192.168.154.1",
# 'ip': "127.0.0.1",
'port': 10003
}
}
### Observatory location
location = {
'observatory': "Ali Observatory",
'longitude': 80.030018,
'latitude':32.31373
}
### configuration for the mount
mount = {
# 'mounttype': 'KanataAzEl',
# 'mounttype': 'Simulator',
'mounttype': 'HinOTORI',
'status': '/dev/shm/TELstatus',
# 'ip': '192.168.1.116',
# 'ip': '124.31.254.16',
'ip': '192.168.154.1',
'port': 4676,
't_point.txt': 't_point.txt'
}
### A directory to be stored
import datetime,os
DATADIR = "/run/media/utsumi/HinoTori/data/"
#DATADIR = "/mnt/disk2/datatemp/"
#DATADIR = "/mnt/disk1/data/"
#DATADIR = "/home/utsumi/Data/"
TIME = datetime.datetime.utcnow() + datetime.timedelta(hours=-5)
DATE = TIME.strftime("%Y%m%d") + "/"
if os.path.isdir(DATADIR):
targetdir = os.path.join(DATADIR,DATE)
else:
targetdir = os.path.join("/home/utsumi/data/",DATE)
### Stored Number of Obtained Data Frame
#EXPFile = os.path.join(DATADIR,"CurrentEXPID")
EXPFile = os.path.join("/home/utsumi","CurrentEXPID")
FrameNCol = 7
### Stored Today's observational infomation
ObsFile = os.path.join("/home/utsumi","CurrentObsInfo")
### Target list ###
TargetList = os.path.join("/home/utsumi","Target.lst")
### focuser conversion factor
focusconv = 0.254e-3 # in mm/step
apptimeout = 60 # sec
ntrial = 3 # sec
### log config
import logging
FORMAT = "%(asctime)-15s[%(levelname)s] %(name)s:%(funcName)s %(process)s:%(thread)s -- %(message)s"
loglevel = logging.DEBUG
### dome ###
domeport = "COM2"