Documentation
get_ephemerides()
Compute and return the ephemerides
Signature
def get_ephemerides(
position: Position,
date: datetime.date = datetime.today(),
timezone: int = 0
) -> [AsterEphemerides]
Arguments
position
: the position for which the ephemerides must be computeddate
: the date for which the ephemerides must be computedtimezone
: if set, thedatetime
returned will be adapted to the given timezone
Return
A list of objects representing the ephemerides.
Examples
Get the ephemerides for today:
pos = kosmorrolib.Position(50.5824, 3.0624)
kosmorrolib.get_ephemerides(pos)
Get the ephemerides for Lille, France, on June 9th, 2021 (adjusted to UTC+1):
pos = kosmorrolib.Position(50.5824, 3.0624)
kosmorrolib.get_ephemerides(pos, datetime.date(2021, 6, 9), timezone=1)
See also
Help us to improve this page, contribute to the documentation!