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.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

solsys-1.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: solsys-1.1.0.tar.gz
  • Upload date:
  • Size: 10.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 bd5ba9c2478a62b2e01069a5f19009f359e1d404fd66069bae15d3fb287efb76
MD5 630fa90feeb42262506f371eea15a0b7
BLAKE2b-256 32645720364bec222284148858d672a366e4b10cc801c71f086ce42fe3b01555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: solsys-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32b93d3a9e9e9cdf488d1e88f64b1a21de0f498b47bf92b405e44d5d246e2185
MD5 9affee214c41d6fc31b016e4032f7924
BLAKE2b-256 27a5209cc03f06cddbbebfdd26f87c179c554d1deebfb0adb87f7d73dd07542f

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