예제 #1
0
파일: search.py 프로젝트: meetri/phoenix
    def day_row ( e ):
        dow = starcalc.weekday( e.jd() )
        sun,date = starcalc.Earth.previous_azimuth ( e.djd, e.sun )
        goldate = "%s" % ( date )
        az = "%.2f" % (sun.az * starcalc.RADIAN)

        return [[e.djd,e.jd(),e.ead_date(),e.etd_date(),e.week,enoch.Priests_Chronicals[e.week-1], str(e.dayofweek+1) + ":" + enoch.DayOfWeek[e.dayofweek],int(e.yearday),int(e.newyear),ephem.constellation(e.sun)[1],goldate,az,"%.4f" % e.moon.ephem.moon_phase,"%d/%d" % (e.moon.month , e.moon.monthday), "%d/%d" % ( e.moon.monthlength, e.moon.months), "%d/%d" % ( e.moon.yearday , e.moon.yearlength ), ephem.constellation(e.moon.ephem)[1]]]
예제 #2
0
파일: search.py 프로젝트: meetri/phoenix
    def chart_day_row ( e ):
        dow = starcalc.weekday( e.jd() )
        sun,date = starcalc.Earth.previous_azimuth ( e.djd, e.sun )
        goldate = "%s" % ( date )
        az = "%.2f" % ((sun.az * starcalc.RADIAN)-90.0)

        ny = e.newyear
        ny_season = int(ny * 4 / 364)
        season_day = ny - ( ny_season * 91 )


        return [[ e.djd, "%d/%d" % (e.moon.month,e.moon.monthday), "( %s ) %s" % (e.ead_date(),e.etd_date()), enoch.DayOfWeek[e.dayofweek],"[%d] %s" % ( e.week, enoch.Priests_Chronicals[e.week-1] ),"%d" % e.yearday,"%d.%d (%d)" % ( ny_season, season_day, ny) , az, "%.4f" % e.moon.ephem.moon_phase, ephem.constellation(e.sun)[1], ephem.constellation(e.moon.ephem)[1] ]]