Ejemplo n.º 1
0
 def year_regent(self):
     epheflag = self.epheflag
     pto = [4,0,3,2,1,6,5]
     year = self.date.dt.year
     dnow = pysw.julday(*self.date.dateforcalc())
     s,sunnow,e = pysw.calc(dnow,0,epheflag)
     fsols = pysw.julday(year+1,1,1,0)
     s,solstice,e = pysw.calc(fsols,0,epheflag)
     if not 0.0 <= sunnow < solstice:
         year -=1
     return pto[year%7]
Ejemplo n.º 2
0
 def calc_localhouses(self):
     curr = boss.get_state()
     d = pysw.julday(*curr.calcdt.dateforcalc())
     lt = curr.loc.latdec
     lg = curr.loc.longdec
     h = pysw.local_houses(d,lg,lt,curr.epheflag)
     return h
Ejemplo n.º 3
0
 def calc(self,date,loc,epheflag): 
     d = pysw.julday(*date)
     lt = loc.latdec
     lg = loc.longdec
     p = pysw.planets(d,epheflag)
     h = pysw.houses(d,lt,lg)
     return p,h
Ejemplo n.º 4
0
 def calc_plan_with_retrogression(self,epheflag=4):
     dt = strdate_to_date(self.date)
     dt = NeXDate(self,dt,timezone(self.zone))
     d = pysw.julday(*dt.dateforcalc())
     signs = []
     for i in range(12):
         if i == 10:
             continue
         err,l,s,mes = pysw.calc_ut_with_speed(d,i,epheflag)
         if err < 0:
             print("error: %s" % mes)
             return None
         sg = self.which_sign(l)
         sg['speed'] = s
         signs.append((sg))
     return signs
Ejemplo n.º 5
0
def solar_rev(boss):
    date, time = parsestrtime(boss.state.curr_chart.date)
    d,m,y = [int(i) for i in date.split("/")]
    nowyear = boss.state.date.dt.year
    julday = pysw.julday(nowyear,m,d,0.0)
    sun = boss.state.curr_chart.planets[0]
    s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)
    
    while sunnow > sun:
        julday -= 0.1
        s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)

    while sunnow < sun:
        julday += 0.01
        s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)
    julday -= 0.01
    s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)
    
    while sunnow < sun:
        julday += 0.001
        s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)
    julday -= 0.001
    s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)
    
    while sunnow < sun:
        julday += 0.0001
        s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)
    julday -= 0.0001
    s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)

    while sunnow < sun:
        julday += 0.00001
        s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)
    julday -= 0.00001
    s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)

    while sunnow < sun:
        julday += 0.000001
        s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)
    julday -= 0.000001
    s,sunnow,e = pysw.calc(julday,0,boss.state.epheflag)
    
    sol = pysw.revjul(julday)
    zone = boss.state.curr_chart.zone
    dt = boss.state.date.getnewdt(sol)
    boss.da.panel.set_date_only(dt)
Ejemplo n.º 6
0
 def vulcan_calc(self,date,epheflag): 
     d = pysw.julday(*date)
     vulc = pysw.calc_ut(d,55)
     return vulc
Ejemplo n.º 7
0
 def chiron_calc(self,date,epheflag): 
     d = pysw.julday(*date)
     chi = pysw.calc(d,15,epheflag)
     return chi