SOLARSYSTEM
Our Solar System consist of:
- our Star, the Sun
- 8 Planets: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus and Neptune
- Some dwarf Planets: Pluto, Ceres, Eris, (Haumea, Makemake, Quaoar, Sedna, Orcus, 2007 OR10, not yet included here)
- Some Centaurs: Chiron (onlyone included here)
- Many moons orbiting planets. Our Moon (Selene in Greek or Luna in Latin) is orbiting Earth
solarsystem is a library for finding position of planets around Sun or around Earth.
Also with solarsystem we can find positions around Sun/Earth of dwarf planets (only 3 planets so far) and Chiron Centaur and position of moon around Earth
Furthermore we compute sunrise/sunset, moonrise/moonset and moon phase for given place (geocoordinates).
Except all computation above with this library a set of usefull functions are included with which we can convert between coordinate systems:
- Transform spherical to rectangular projection.
- Transform rectangular to spherical projection.
- Transform ecliptic to equatorial projection.
- Transform equatorial to ecliptic projection.
- Transform eclipitc to spherical projection.
- Transform spherical to eclipitc projection.
Quick start
import solarsystem
Initialize class
H = solarsystem.Heliocentric(year=2020, month=1, day=1, hour=12, minute=0 )
Compute position of planets around sun
planets_dict=H.planets()
print('Planet',' \t','Longitude',' \t','Latitude',' \t','Distance in AU')
for planet in planets_dict:
pos=planets_dict[planet]
print(planet,' \t',round(pos[0],2),' \t',round(pos[1],2),' \t',round(pos[2],2))
# Planet Longitude Latitude Distance in AU
# Mercury 263.83 -4.06 0.47
# Venus 5.23 -3.22 0.73
# Earth 79.47 0.0 0.98
# Mars 214.38 0.49 1.59
# Jupyter 276.1 0.1 5.23
# Saturn 292.51 0.05 10.05
# Uranus 35.35 359.52 19.81
# Neptune 348.02 -1.04 29.91
# Pluto 292.75 359.33 33.88
# Ceres 290.87 -5.4 2.92
# Chiron 4.33 2.94 18.81
# Eris 23.55 -11.74 96.0
Examples - Use Cases
-
Solar System Live: https://github.com/IoannisNasios/solarsystem/blob/master/examples/Solar_System_Live.ipynb.
- Plot planets around Sun, watch where planets are around Sun
- Get the Geocentric positions of Sun, planets, nano planets, our Moon and 1 Centaur
-
RiseSet Calendar : https://github.com/IoannisNasios/solarsystem/blob/master/examples/RiseSet_Calendar.ipynb.
- Time of sun rise and set within each day Time of moon rise and set within each day Moon phase - percent of illumination
Documentation
Pending
Installation
Latest version from source:
pip install git+https://github.com/IoannisNasios/solarsystem
Requirements
No requirements, no additional libraries needs to be installed.
Exception: example notebook Solar System Live, matplotlib is needed in order to view the plot
License
solarsystem is MIT-licensed. Read License
Metadata
Release files for solarsystem 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| solarsystem-0.1.0.tar.gz | 14.2 kB | Without provenance | Details for solarsystem-0.1.0.tar.gz |
Release files / solarsystem-0.1.0.tar.gz
| Download URL | solarsystem-0.1.0.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d2052d439216997039ba8c6394ac41b339aae9ecd93bcc7fdd5be87d8416645
|
|
BLAKE2b-256 checksum How to use checksums |
27d73420a0a02210a3bf06630a146c9ce30f15509e0a01f73dce9922dcb99cc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.5.7
|
Security for solarsystem 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.