solarsystem.heliocentric module

class solarsystem.heliocentric.Heliocentric(year, month, day, hour, minute, UT=0, dst=0, view='horizontal')[source]

Bases: object

Import date data outputs planets positions around Sun.

Parameters:
  • year (int) – Year (4 digits) ex. 2020
  • month (int) – Month (1-12)
  • day (int) – Day (1-31)
  • hour (int) – Hour (0-23)
  • minute (int) – Minute (0-60)
  • UT – Time Zone (deviation from UT, -12:+14), ex. for Greece (GMT + 2) enter UT = 2
  • dst (int) – daylight saving time (0 or 1). Wheather dst is applied at given time and place
  • view – desired output format. Should be one of: horizontal (long in degrees, lat in degrees, distance in AU) or rectangular (x, y, z, all in AU). Default: horizontal.
planetnames()[source]

Names of solar system objects used.

Returns:A list of solar system objects.
Return type:list
planets()[source]

Main method which returns a dictionary of Heliocentric positions.

Returns:Planet positions around sun: Dictionary of tuples. Each row represents a planet and each column the position of that planet.
Return type:dictionary