21
21
22
22
sky_object_style = {
23
23
"marker" : {
24
- "size" : 16 ,
25
- "symbol" : "D " ,
24
+ "size" : 15 ,
25
+ "symbol" : "^ " ,
26
26
"fill" : "full" ,
27
27
"color" : "#000" ,
28
28
},
29
29
"label" : {
30
30
"font_size" : 12 ,
31
31
"font_weight" : "bold" ,
32
- "font_color" : "black " ,
32
+ # "font_color": "white ",
33
33
},
34
34
}
35
35
36
36
sky_objects = [
37
- # SkyObject(
38
- # name="M35",
39
- # ra=6.15,
40
- # dec=24.34,
41
- # style=sky_object_style,
42
- # ),
43
37
SkyObject (
44
- name = "M45 " ,
45
- ra = 3.7836111111 ,
46
- dec = 24.1166666667 ,
38
+ name = "M35 " ,
39
+ ra = 6.15 ,
40
+ dec = 24.34 ,
47
41
style = sky_object_style ,
48
42
),
43
+ SkyObject (
44
+ name = "M44" ,
45
+ ra = 8.667 ,
46
+ dec = 19.67 ,
47
+ style = sky_object_style ,
48
+ ),
49
+ # SkyObject(
50
+ # name="M41",
51
+ # ra=6.7667,
52
+ # dec=-20.75,
53
+ # style=sky_object_style,
54
+ # ),
55
+ # SkyObject(
56
+ # name="M46",
57
+ # ra=7.7,
58
+ # dec=-14.81,
59
+ # style=sky_object_style,
60
+ # ),
61
+ # SkyObject(
62
+ # name="M47",
63
+ # ra=7.6,
64
+ # dec=-14.48,
65
+ # style=sky_object_style,
66
+ # ),
67
+ # SkyObject(
68
+ # name="M93",
69
+ # ra=7.73,
70
+ # dec=-23.85,
71
+ # style=sky_object_style,
72
+ # ),
73
+ # SkyObject(
74
+ # name="M45",
75
+ # ra=3.7836111111,
76
+ # dec=24.1166666667,
77
+ # style=sky_object_style,
78
+ # ),
49
79
]
50
80
51
81
optics = [
52
- sp .optic .Binoculars (
82
+ sp .optics .Binoculars (
53
83
magnification = 10 ,
54
84
fov = 65 ,
55
85
),
56
- sp .optic .Refractor (
57
- focal_length = 600 ,
58
- eyepiece_focal_length = 14 ,
59
- eyepiece_fov = 82 ,
60
- ),
61
- sp .optic .Refractor (
86
+ # sp.optics .Refractor(
87
+ # focal_length=600,
88
+ # eyepiece_focal_length=14,
89
+ # eyepiece_fov=82,
90
+ # ),
91
+ sp .optics .Refractor (
62
92
focal_length = 600 ,
63
- eyepiece_focal_length = 7 ,
93
+ eyepiece_focal_length = 9 ,
64
94
eyepiece_fov = 100 ,
65
95
),
66
96
]
@@ -77,46 +107,57 @@ def create_zenith():
77
107
extensions .GRAYSCALE ,
78
108
extensions .ZENITH ,
79
109
)
110
+ style .dso .marker .visible = False
111
+ style .dso .label .visible = False
112
+
80
113
p = sp .ZenithPlot (
81
114
lat = lat ,
82
115
lon = lon ,
83
116
dt = dt ,
84
117
limiting_magnitude = 4.6 ,
85
118
style = style ,
86
119
resolution = 4000 ,
87
- include_info_text = True ,
88
- adjust_text = True ,
120
+ hide_colliding_labels = False ,
121
+ # include_info_text=True,
122
+ # adjust_text=True,
89
123
)
90
124
91
125
for obj in sky_objects :
92
126
p .plot_object (obj )
93
127
94
128
p .refresh_legend ()
95
- p .export ("temp/finder-01-overview.png" , format = "png" , transparent = True )
129
+ p .adjust_labels ()
130
+ p .export ("temp/finder-01-overview.svg" , format = "svg" , padding = 0 , transparent = True )
96
131
97
132
98
- def create_map_plot ():
99
- print ("Creating map chart ..." )
133
+ def create_map_plots ():
134
+ print ("Creating map charts ..." )
100
135
style = PlotStyle ().extend (
101
136
# extensions.MINIMAL,
102
137
extensions .GRAYSCALE ,
103
138
extensions .MAP ,
104
139
)
140
+ style .legend .location = "lower right"
141
+ style .gridlines .line .alpha = 0
142
+ style .milky_way .visible = False
143
+ style .bayer_labels .visible = False
105
144
106
- for obj in sky_objects :
145
+ for i , obj in enumerate ( sky_objects ) :
107
146
mp = sp .MapPlot (
108
147
projection = Projection .MERCATOR ,
109
- ra_min = obj .ra - 2 ,
110
- ra_max = obj .ra + 2 ,
111
- dec_min = obj .dec - 15 ,
112
- dec_max = obj .dec + 15 ,
113
- limiting_magnitude = 7.2 ,
148
+ ra_min = obj .ra - 2.5 ,
149
+ ra_max = obj .ra + 2.5 ,
150
+ dec_min = obj .dec - 20 ,
151
+ dec_max = obj .dec + 20 ,
152
+ limiting_magnitude = 4.68 ,
114
153
style = style ,
115
154
resolution = 2600 ,
155
+ hide_colliding_labels = False ,
116
156
)
117
157
mp .plot_object (obj )
158
+ mp .adjust_labels ()
118
159
119
- mp .export (f"temp/finder-02-map.png " , padding = 0.3 )
160
+ mp .export (f"temp/finder-02-map- { str ( i ) } .svg" , format = "svg " , padding = 0.3 )
120
161
121
162
122
163
def create_optic_plots ():
@@ -126,9 +167,10 @@ def create_optic_plots():
126
167
extensions .GRAYSCALE ,
127
168
extensions .OPTIC ,
128
169
)
170
+ style .star .marker .size = 30
129
171
130
- for obj in sky_objects :
131
- for i , optic in enumerate (optics ):
172
+ for si , obj in enumerate ( sky_objects ) :
173
+ for oi , optic in enumerate (optics ):
132
174
op = sp .OpticPlot (
133
175
ra = obj .ra ,
134
176
dec = obj .dec ,
@@ -141,9 +183,12 @@ def create_optic_plots():
141
183
resolution = 2000 ,
142
184
include_info_text = True ,
143
185
)
144
- op .export (f"temp/finder-03-optic-{ str (i )} -{ optic .label .lower ()} .png" )
186
+ op .export (
187
+ f"temp/finder-03-optic-{ str (si )} -{ str (oi )} -{ optic .label .lower ()} .svg" ,
188
+ format = "svg" ,
189
+ )
145
190
146
191
147
192
create_zenith ()
148
- create_map_plot ()
193
+ create_map_plots ()
149
194
create_optic_plots ()
0 commit comments