Skip to main content

A python package for calculating positions of Solar System objects

Project description

Author: Behrouz Safari
License: MIT

solsys

A python package for calculating positions of Solar System objects

Installation

Install the latest version of solsys from PyPI:

pip install solsys

The only Requirement is numpy.

Quick start

In the current version, there are three classes: sun, moon and planet. Let's get positions of the Sun, Moon and Venus for an observer in Strasbourg at this moment.

from datetime import datetime
from solsys import sun, moon, planet

t = datetime.utcnow()
obs_loc = (7.7441, 48.5831)

s = sun(t, obs_loc)
m = moon(t, obs_loc)
p = planet('venus', t, obs_loc)

# ra and dec (GCRS) of Sun
print(s.ra, s.dec)

# azimuth and altitude of moon
print(m.az, m.alt)

# Geocentric equatorial cartesian coordinates of Venus
print(p.geo_equ_car)

# Apparent magnitude of Venus
print(p.mag)

See more at astrodatascience.net

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solsys-1.0.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

solsys-1.0.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file solsys-1.0.0.tar.gz.

File metadata

  • Download URL: solsys-1.0.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.61.2 importlib-metadata/4.6.1 keyring/18.0.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for solsys-1.0.0.tar.gz
Algorithm Hash digest
SHA256 66520c6c9adcd3195bfded44224dea5a27b7392f8d6fd57b225c4305ede89e7f
MD5 9d52f238ace667fef9a4e6a3388ad71f
BLAKE2b-256 1d224a43fbdd874eed6ae3d2bb5c2e215a4d731b906be859d6c792ba5e79494a

See more details on using hashes here.

File details

Details for the file solsys-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: solsys-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.61.2 importlib-metadata/4.6.1 keyring/18.0.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for solsys-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50a133bf273dd12f16cfbffb1699f45461af91490411af3265dc836967582d00
MD5 5cf0e54505e13f1c559bc232fb31155e
BLAKE2b-256 45e44f31cbb036e670b7e95118bc436057c668741d792cd0cd574cdee5410972

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page