def show(self, y, m, d, t, cnt): proftype = chart.Chart.YEAR if self.zodprofs: prof = profections.Profections(self.chart, y, m, d, t, cnt) pchart = chart.Chart(self.chart.name, self.chart.male, self.chart.time, self.chart.place, chart.Chart.PROFECTION, '', self.options, False, proftype) pchart.calcProfPos(prof) else: if not self.usezodprojs and (y+cnt == self.chart.time.year or (y+cnt-self.chart.time.year) % 12 == 0) and m == self.chart.time.month and d == self.chart.time.day: pchart = self.chart else: prof = munprofections.MunProfections(self.chart, y, m, d, t, cnt) proflondeg, proflonmin, proflonsec = util.decToDeg(prof.lonZ) profplace = chart.Place(mtexts.txts['Profections'], proflondeg, proflonmin, proflonsec, prof.east, self.chart.place.deglat, self.chart.place.minlat, self.chart.place.seclat, self.chart.place.north, self.chart.place.altitude) pchart = chart.Chart(self.chart.name, self.chart.male, self.chart.time, profplace, chart.Chart.PROFECTION, '', self.options, False, proftype, self.options.usezodprojsprof) pchartpls = chart.Chart(self.chart.name, self.chart.male, self.chart.time, self.chart.place, chart.Chart.PROFECTION, '', self.options, False, proftype, self.options.usezodprojsprof) #modify planets, ... pchart.planets.calcMundaneProfPos(pchart.houses.ascmc2, pchartpls.planets.planets, self.chart.place.lat, self.chart.obl[0]) #modify lof pchart.fortune.calcMundaneProfPos(pchart.houses.ascmc2, pchartpls.fortune, self.chart.place.lat, self.chart.obl[0]) #recalc AspMatrix pchart.calcAspMatrix() self.parent.change(pchart, self.caption, y+cnt, m, d, t) self.yeartxt.SetValue(str(y+cnt)) self.monthtxt.SetValue(str(m)) if self.zodprofs or self.usezodprojs: self.daytxt.SetValue(str(d))
def show(self, age): wait = wx.BusyCursor() y = self.chart.time.year#+age m = self.chart.time.month d = self.chart.time.day t = self.chart.time.time if self.feb29: d -= 1 self.agetxt.SetValue(str(age)) pcharts = [] cyc = 0 while(cyc < 12): if self.zodiacalprofs: prof = profections.Profections(self.chart, y, m, d, t, age+cyc) pchart = chart.Chart(self.chart.name, self.chart.male, self.chart.time, self.chart.place, chart.Chart.PROFECTION, '', self.options, False, self.proftype) pchart.calcProfPos(prof) else: if not self.usezodprojs and (y+age+cyc == self.chart.time.year or (y+age+cyc-self.chart.time.year) % 12 == 0) and m == self.chart.time.month and d == self.chart.time.day: pchart = self.chart else: prof = munprofections.MunProfections(self.chart, y+age+cyc, m, d, t) proflondeg, proflonmin, proflonsec = util.decToDeg(prof.lonZ) profplace = chart.Place(mtexts.txts['Profections'], proflondeg, proflonmin, proflonsec, prof.east, self.chart.place.deglat, self.chart.place.minlat, self.chart.place.seclat, self.chart.place.north, self.chart.place.altitude) pchart = chart.Chart(self.chart.name, self.chart.male, self.chart.time, profplace, chart.Chart.PROFECTION, '', self.options, False, self.proftype, self.options.usezodprojsprof) pchartpls = chart.Chart(self.chart.name, self.chart.male, self.chart.time, self.chart.place, chart.Chart.PROFECTION, '', self.options, False, self.proftype, self.options.usezodprojsprof) #modify planets, ... pchart.planets.calcMundaneProfPos(pchart.houses.ascmc2, pchartpls.planets.planets, self.chart.place.lat, self.chart.obl[0]) #modify lof pchart.fortune.calcMundaneProfPos(pchart.houses.ascmc2, pchartpls.fortune, self.chart.place.lat, self.chart.obl[0]) pcharts.append((pchart, y+age+cyc, m, d, t)) cyc += 1 self.parent.change(age, pcharts, self.options)
[ 4.0, 2.0, 2.0, 2.0, 2.0, 4.0, 4.0, 2.0, 2.0, 2.0, 4.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0 ], [ 4.0, 2.0, 2.0, 2.0, 2.0, 4.0, 4.0, 2.0, 2.0, 2.0, 4.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0 ], [ 4.0, 2.0, 2.0, 2.0, 2.0, 4.0, 4.0, 2.0, 2.0, 2.0, 4.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0 ], ] # instance of place, time and chart generation place = chart.Place(place, deglon, minlon, 0, east, deglat, minlat, seclat, north, altitude) time = chart.event.DateTime(year, month, day, hour, minute, second, bc, cal, zt, plus, zh, zm, daylightsaving, place, False) chrt = chart.Chart(name, male, time, place, htype, notes, opts, False) # calculate astrodinas # chrt.astrodinas() #chrt.printAspMatrix(); # read places DB to get NY place #pdb = placedb.PlaceDB() #pdb.read() #pdb.searchPlace('New York, USA') #trans.extraPlace(pdb.search_result) header = "Date\tHour\tPT\tAS\tPR\tHR\tHT\tSI\tLON\tLAT\tSP\tPRLON\tS\t" \ "SU\tSUR\tSULO\tSULA\tSUSP\tSUD\tSURD\tSUS\tSUT\t" \
for asteroid in chrt.asteroids.asteroids: lon = asteroid.data[planets.Planet.LONG] lat = asteroid.data[planets.Planet.LAT] speed = asteroid.data[planets.Planet.SPLON] decl = asteroid.dataEqu[planets.Planet.DECLEQU] out.append("%.2f\t%.2f\t%.3f\t%.2f\t" % (lon, lat, decl, speed)) sys.stdout.write(''.join(out)) opts = options.Options() swisseph.set_ephe_path('../SWEP/Ephem') # instance of place, time and chart generation # Based on Greenwich place and UTC time. place = chart.Place(None, 51, 29, 24, True, 0, 0, 0, True, 0) time = chart.event.DateTime(2020, 8, 20, 0, 0, 0, False, 0, 0, True, 0, 0, False, place) chrt = chart.Chart("Daily Chart", False, time, place, 0, "", opts) print("Date\tHour\t" \ "SULON\tSULAT\tSUDEC\tSUSP\t" \ "MOLON\tMOLAT\tMODEC\tMOSP\t" \ "MELON\tMELAT\tMEDEC\tMESP\t" \ "VELON\tVELAT\tVEDEC\tVESP\t" \ "MALON\tMALAT\tMADEC\tMASP\t" \ "JULON\tJULAT\tJUDEC\tJUSP\t" \ "SALON\tSALAT\tSADEC\tSASP\t" \ "URLON\tURLAT\tURDEC\tURSP\t" \ "NELON\tNELAT\tNEDEC\tNESP\t" \ "PLLON\tPLLAT\tPLDEC\tPLSP\t" \
#lat idx = lat.find(u'N') # if idx == -1: idx = lat.find(u'S') # north = False if idx == -1: print("Invalid lat string provided") sys.exit() else: latdeg = int(lat[0:idx]) idx += 1 latmin = int(lat[idx:]) # place, time and chart generation place = chart.Place('Place Name', deglon, degmin, 0, east, latdeg, latmin, 0, north, altitude) year, month, day, hour, minute, second = dt.tm_year, dt.tm_mon, dt.tm_mday, dt.tm_hour, dt.tm_min, dt.tm_sec #place.tz tzh, tzm, tzs = util.decToDeg(float(tz)) if tz[0] == '-': tzplus = False else: tzplus = True time = chart.event.DateTime(year, month, day, hour, minute, second, False, astrology.SE_JUL_CAL, chart.event.DateTime.ZONE, tzplus, tzh, tzm, False, place) chrt = chart.Chart(chart_name, False, time, place, opts.hsys, 'notes', opts) # Print chart positions print(printPlanetsData(chrt))
seclat = pickle.load(f) north = pickle.load(f) altitude = pickle.load(f) notes = pickle.load(f) f.close() except IOError: print("error loading the chart") opts = options.Options() # override orb for exact aspects to 3.0 opts.exact = 3.0 # instance of place, time and chart generation place = chart.Place(place, deglon, minlon, 0, east, deglat, minlat, seclat, north, altitude) ny_place = chart.Place('New York', 74, 0, 0, False, 40, 42, 0, True, 43) time = chart.event.DateTime(2005, 10, 3, 10, 0, 0, bc, cal, zt, plus, zh, zm, daylightsaving, place) chrt = chart.Chart(name, male, time, place, htype, notes, opts) swisseph.set_ephe_path('/Applications/Morinus.app/Contents/Resources/SWEP/Ephem') calflag = astrology.SE_JUL_CAL hour = 10 minute = 10 second = 0 time1 = hour+minute/60.0+second/3600.0 tjd = swisseph.julday(2013, 3, 1, time1, calflag) retflag = swisseph.sol_eclipse_when_loc(tjd, astrology.SEFLG_SWIEPH, ny_place.lon, ny_place.lat, astrology.SE_ECL_ALLTYPES_SOLAR, False); #retflag = swisseph.sol_eclipse_when_glob(tjd, astrology.SEFLG_SWIEPH, astrology.SE_ECL_ALLTYPES_SOLAR, False); jd = retflag[1][0] eclflag = retflag[0][0]
"JULON\tJULAT\tJUDEC\tJUSP\t" \ "SALON\tSALAT\tSADEC\tSASP\t" \ "URLON\tURLAT\tURDEC\tURSP\t" \ "NELON\tNELAT\tNEDEC\tNESP\t" \ "PLLON\tPLLAT\tPLDEC\tPLSP\t" \ "NNLON\tNNLAT\tNNDEC\tNNSP\t" \ "SNLON\tSNLAT\tSNDEC\tSNSP\t" \ "ASLON\tASLAT\tASDEC\tASSP\t" \ "MCLON\tMCLAT\tMCDEC\tMCSP\t" with open('Hors/birthdates.csv', 'rb') as f: reader = csv.DictReader(f, delimiter='\t', quoting=csv.QUOTE_NONE) for row in reader: # Need to import for each iteration or it brokes import time dt = time.strptime(row['Date'], '%Y-%m-%d %H:%M:%S') # place, time and chart generation ny_place = chart.Place('New York', 74, 0, 21, False, 40, 42, 51, True, 10) year, month, day, hour, minute, second = dt.tm_year, dt.tm_mon, dt.tm_mday, dt.tm_hour, dt.tm_min, dt.tm_sec zone_hour, zone_minute, zone_second = util.decToDeg(float(row['ZH'])) symbol = row['Symbol'] time = chart.event.DateTime(year, month, day, hour, minute, second, False, astrology.SE_JUL_CAL, chart.event.DateTime.ZONE, False, zone_hour, 0, False, ny_place) chrt = chart.Chart(symbol, False, time, ny_place, opts.hsys, 'notes', opts) # Print chart positions printPlanetsData(chrt)