예제 #1
0
from sky import Sky
s = Sky(400)
s.read_frame_hip()
s.read_frame_tyc()
s.print_progress(1, 3)
s.read_line()
s.print_progress(2, 3)
s.read_star()
s.print_progress(3, 3)
s.print_time()
s.init_area(1, s.fs[1], s.fs[2], s.fs[3], s.fs[4], s.fs[5], s.fs[6], s.fs[7],
            6)
s.draw_alpha_lines(15)
s.draw_delta_lines(10)
s.draw_constellation_lines()
s.draw_star()
s.draw_legend()
s.draw_alpha_text(15)
s.draw_delta_text(10)
s.draw_header_link(1, 0)
for k, v in s.f1.items():
    if v[0] == 1:
        s.draw_frame_link(k, v[1], v[3], v[4], v[6], 'hip{:03}'.format(k),
                          'red')
s.draw_frame(True, False, False, False)
s.save_img()
s.init_area(2, s.fn[1], s.fn[2], s.fn[3], s.fn[4], s.fn[5], s.fn[6], s.fn[7],
            6)
s.draw_alpha_lines(15)
s.draw_delta_lines(10)
s.draw_constellation_lines()
예제 #2
0
파일: svg_tyc.py 프로젝트: skymap/main
from sky import Sky
s = Sky(400, True)
s.read_frame_tyc()
s.print_time()
s.read_star_tyc()
s.print_time()
i = 0
n = len(s.f3)
for k, v in s.f3.items():
    d = s.alpha_d(v[5])
    s.init_area(k, v[1], v[2], v[3], v[4], v[5], v[6], v[7], 16, True)
    s.draw_alpha_lines(d)
    s.draw_delta_lines(1)
    s.draw_frame(True, True, True, True)
    s.draw_star_tyc(int(k - 1))
    s.draw_legend(True)
    s.draw_alpha_text(d)
    s.draw_delta_text(1)
    s.draw_header_tyc(k)
    s.save_img()
    i = i + 1
    s.print_progress(i, n)
s.print_time()