solarsystem.geocentric module

class solarsystem.geocentric.Geocentric(year, month, day, hour, minute, UT=0, dst=0, plane='ecliptic', precession=True)[source]

Bases: object

Import date data outputs planets positions around Earth.

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

  • plane – desired output format. Should be one of: ecliptic, equatorial. Default: ecliptic

  • precession (boolean) – True or False. Apply corrections to object’s Longitude due to Earth’s axis rotation. Default: True

objectnames()[source]

Names of solar system objects used.

Returns:

A list of solar system objects

Return type:

list

position()[source]

Main method which returns a dictionary of geocentric positions.

Returns:

Planet positions around earth: Each row represents a

planet and each column the position of that planet.

Return type:

dictionary