-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathantzodpars.py
More file actions
44 lines (30 loc) · 944 Bytes
/
antzodpars.py
File metadata and controls
44 lines (30 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import astrology
import planets
import zodparsbase
class AntZodPars(zodparsbase.ZodParsBase):
"""Computes zodiacal parallels of the antiscia of the planets"""
def __init__(self, ant, cant, obl):
zodparsbase.ZodParsBase.__init__(self, obl)
self.ant = ant
self.cant = cant
self.apars = []
self.cpars = []
self.calc()
def calc(self):
NODES = 2
for p in range(planets.Planets.PLANETS_NUM-NODES):#Nodes are excluded
lon = self.ant[p].lon
lat = self.ant[p].lat
decl = self.ant[p].decl
onEcl = False
if p == astrology.SE_SUN or lat == 0.0:
onEcl = True
self.apars.append(self.getEclPoints(lon, decl, onEcl))
for p in range(planets.Planets.PLANETS_NUM-NODES):#Nodes are excluded
lon = self.cant[p].lon
lat = self.cant[p].lat
decl = self.cant[p].decl
onEcl = False
if p == astrology.SE_SUN or lat == 0.0:
onEcl = True
self.cpars.append(self.getEclPoints(lon, decl, onEcl))