def right_ascension(self, formatted=False, zodiac=False): """Returns the right ascension of the planet at the time specified at object construction. Arguments: formatted -- set to True to return the right ascension in a string of 'HHh MMm SSs' format, otherwise the number is returned in degrees. zodiac -- set to True to return the right ascension as a a string showing a right ascension in terms of the zodiac, e.g. 20CN15, meaning the 15th minute of the 20th degree in the sign of Cancer. Returns: either the right ascension in degrees, or in the specified string format. """ sph_coords = rec_to_sph(self.geo_equ_coords()) if formatted: return rasc_string(sph_coords.right_ascension) elif zodiac: return rasc_to_zodiac(sph_coords.right_ascension) else: return sph_coords.right_ascension
def zodiac_sign(self): """Returns a string containing the sign of the zodiac the planet is in at the time specified at object construction. """ sph_coords = rec_to_sph(self.geo_equ_coords()) return zodiac_sign(sph_coords.right_ascension)
def distance(self): """Returns the distance of the planet at the time specified at object construction. Returns: the distance of the planet from Earth in astronomical units (AUs). """ sph_coords = rec_to_sph(self.geo_equ_coords()) return sph_coords.distance
def declination(self, formatted=False): """Returns the declination of the planet at the time specified at object construction. Arguments: formatted -- set to True to return the declination ascension in a string of '[+/-]DDd MMm SSs' format, otherwise the number is returned in degrees. Returns: either the declination in degrees, or the declination in a formatted DDMMSS string. """ sph_coords = rec_to_sph(self.geo_equ_coords()) if formatted: return decl_string(sph_coords.declination) else: return sph_coords.declination