-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
195 lines (177 loc) · 4.88 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
##################################################################
# #
# STAR ATLAS DATABASE & GLOBAL CONFIGURATION #
# #
##################################################################
import ephem
import math
from graphics import *
from ephem import *
# PyePhem STAR LIST (94 stars)
global stardb
stardb = [ "Sirrah", "Caph", "Algenib", "Schedar", "Mirach", "Achernar", "Almach", "Hamal", "Polaris",
"Menkar", "Algol", "Electra", "Taygeta", "Maia", "Merope", "Alcyone", "Atlas", "Zaurak",
"Aldebaran", "Rigel", "Capella", "Bellatrix", "Elnath", "Nihal", "Mintaka", "Arneb",
"Alnilam", "Alnitak", "Saiph", "Betelgeuse", "Menkalinan", "Mirzam", "Canopus", "Alhena",
"Sirius", "Adara", "Wezen", "Castor", "Procyon", "Pollux", "Naos", "Alphard", "Regulus",
"Algieba", "Merak", "Dubhe", "Denebola", "Phecda", "Minkar", "Megrez", "Gienah Corvi",
"Mimosa", "Alioth", "Vindemiatrix", "Mizar", "Spica", "Alcor", "Alcaid", "Agena", "Thuban",
"Arcturus", "Izar", "Kochab", "Alphecca", "Unukalhai", "Antares", "Rasalgethi", "Shaula",
"Rasalhague", "Cebalrai", "Etamin", "Kaus Australis", "Vega", "Sheliak", "Nunki",
"Sulafat", "Arkab Prior", "Arkab Posterior", "Rukbat", "Albereo", "Tarazed", "Altair",
"Alshain", "Sadr", "Peacock", "Deneb", "Alderamin", "Alfirk", "Enif", "Sadalmelik", "Alnair",
"Fomalhaut", "Scheat", "Markab" ]
#PyePhem SOLAR SYSTEM NAME LIST
global solarsystemNamesdb
solarsystemNamesdb = [ 'Sun', 'Moon', 'Mercury', 'Venus', 'Mars', 'Jupiter',
'Saturn', 'Uranus', 'Neptune', 'Pluto' ]
global solarsystemColorsdb
solarsystemColorsdb = [ 'Sun', 'Moon', 'Mercury', 'Venus', 'Mars', 'Jupiter',
'Saturn', 'Uranus', 'Neptune', 'Pluto' ]
#PyePhem SOLAR SYSTEM LIST
global solarsystemdb
solarsystemdb = [ ephem.Sun(),
ephem.Moon(),
ephem.Mercury(),
ephem.Venus(),
ephem.Mars(),
ephem.Jupiter(),
ephem.Saturn(),
ephem.Uranus(),
ephem.Neptune(),
ephem.Pluto() ]
# MACROS
global VERBOSE
global STATISTICS
global SAVE
global MAG_0
global MAG_1
global MAG_2
global MAG_3
global MAG_4
global MAG_FAINT
global SHOWSTARS
global SHOWSTARNAMES
global SHOWSOLARSYS
global SHOWSOLARSYSNAMES
global SHOWCONSTELLATIONS
global SHOWMESSIER
global SHOWMESSIERNAMES
global DEGREES
global RADIANS
global HALF_WINDOW_SIZE
global CANVAS_RADIUS
global LONGITUDE
global LATITUDE
global MAXMAGNITUDE
global VISIBLE
global STARCOLOR
global CANVASCOLOR
global CANVASOUTLINECOLOR
global WINDOWCOLOR
global LETTERINGCOLOR
global LABELCOLOR
global MESSIERCOLOR
#******* DEFAULT TEMPLATE *******
# MACROS
VERBOSE = False
STATISTICS = True
SAVE = False
MAG_0 = 0
MAG_1 = 0
MAG_2 = 0
MAG_3 = 0
MAG_4 = 0
MAG_FAINT = 0
SHOWSTARS = True
SHOWSTARNAMES = False
SHOWSOLARSYS = True
SHOWSOLARSYSNAMES = True
SHOWCONSTELLATIONS = False
SHOWMESSIER = True
SHOWMESSIERNAMES = True
DEGREES = (math.pi / 180.0)
RADIANS = (180.0 / math.pi)
HALF_WINDOW_SIZE = 300
CANVAS_RADIUS = 250
LONGITUDE = '-121.7405'
LATITUDE = '38.5449'
MAXMAGNITUDE = 4.5
VISIBLE = True
STARCOLOR = color_rgb(255, 255, 255)
CANVASCOLOR = color_rgb(22, 39, 70)
CANVASOUTLINECOLOR = color_rgb(38, 68, 121)
WINDOWCOLOR = color_rgb(19, 33, 60)
LETTERINGCOLOR = color_rgb(255, 255, 255)
LABELCOLOR = color_rgb(38, 68, 121)
MESSIERCOLOR = color_rgb(204, 204, 204)
"""
#******* BLACK AND WHITE INVETED TEMPLATE *******
# MACROS
VERBOSE = False
STATISTICS = True
SAVE = False
MAG_0 = 0
MAG_1 = 0
MAG_2 = 0
MAG_3 = 0
MAG_4 = 0
MAG_FAINT = 0
SHOWSTARS = True
SHOWSTARNAMES = False
SHOWSOLARSYS = True
SHOWSOLARSYSNAMES = True
SHOWCONSTELLATIONS = False
SHOWMESSIER = True
SHOWMESSIERNAMES = True
DEGREES = (math.pi / 180.0)
RADIANS = (180.0 / math.pi)
HALF_WINDOW_SIZE = 300
CANVAS_RADIUS = 250
LONGITUDE = '-121.7405'
LATITUDE = '38.5449'
MAXMAGNITUDE = 4.5
VISIBLE = True
STARCOLOR = color_rgb(0, 0, 0)
CANVASCOLOR = color_rgb(255, 255, 255)
CANVASOUTLINECOLOR = color_rgb(0, 0, 0)
WINDOWCOLOR = color_rgb(255, 255, 255)
LETTERINGCOLOR = color_rgb(0, 0, 0)
LABELCOLOR = color_rgb(104, 104, 104)
MESSIERCOLOR = color_rgb(104, 104, 104)
"""
"""
#******* BLACK AND WHITE TEMPLATE *******
# MACROS
VERBOSE = False
STATISTICS = True
SAVE = False
MAG_0 = 0
MAG_1 = 0
MAG_2 = 0
MAG_3 = 0
MAG_4 = 0
MAG_FAINT = 0
SHOWSTARS = True
SHOWSTARNAMES = True
SHOWSOLARSYS = True
SHOWSOLARSYSNAMES = True
SHOWCONSTELLATIONS = False
SHOWMESSIER = True
SHOWMESSIERNAMES = True
DEGREES = (math.pi / 180.0)
RADIANS = (180.0 / math.pi)
HALF_WINDOW_SIZE = 300
CANVAS_RADIUS = 250
LONGITUDE = '-121.7405'
LATITUDE = '38.5449'
MAXMAGNITUDE = 4.5
VISIBLE = True
STARCOLOR = color_rgb(255, 255, 255)
CANVASCOLOR = color_rgb(0, 0, 0)
CANVASOUTLINECOLOR = color_rgb(255, 255, 255)
WINDOWCOLOR = color_rgb(0, 0, 0)
LETTERINGCOLOR = color_rgb(255, 255, 255)
LABELCOLOR = color_rgb(104, 104, 104)
MESSIERCOLOR = color_rgb(104, 104, 104)
"""