Skip to main content

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

Metadata

Release files for solsys 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solsys 1.1.0
File Size Uploaded Provenance
solsys-1.1.0.tar.gz 10.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for solsys 1.1.0
File Interpreter ABI Platform
solsys-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / solsys-1.1.0.tar.gz

Download URL solsys-1.1.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bd5ba9c2478a62b2e01069a5f19009f359e1d404fd66069bae15d3fb287efb76
BLAKE2b-256 checksum
How to use checksums
32645720364bec222284148858d672a366e4b10cc801c71f086ce42fe3b01555
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / solsys-1.1.0-py3-none-any.whl

Download URL solsys-1.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32b93d3a9e9e9cdf488d1e88f64b1a21de0f498b47bf92b405e44d5d246e2185
BLAKE2b-256 checksum
How to use checksums
27a5209cc03f06cddbbebfdd26f87c179c554d1deebfb0adb87f7d73dd07542f
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for solsys 1.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page