Skip to main content

Author: Behrouz Safari
Website: AstroDataScience.Net

Sky Chart

Creating star charts with python

Example 1:

Let's create sky chart of Paris at this moment. We want just the stars with apparent magnitude below 5.

import skychart as sch
from datetime import datetime
import matplotlib.pyplot as plt

t = datetime.now()
obs_loc = (2.3522, 48.8566)

fig, ax, df = sch.draw(obs_loc, t, mag_max=5, alpha=0.3)
plt.show()

Example 2:

Here we make the same chart, using the low-level function draw_chart. We want only two constellations be drawn (Ursa Major and Cassiopeia).

import skychart as sch
from datetime import datetime
import matplotlib.pyplot as plt

t = datetime.now()
obs_loc = (2.3522, 48.8566)

# Base dataframe
df = sch.visible_hipparcos(obs_loc, t)

# DataFrame of stars that will be shown
df_show = df[df['Vmag']<5]

# Load constellation data
dc_const = sch.load_constellations()

# Show only Ursa Major and Cassiopeia constellations
dc_const = {'UMa': dc_const['UMa'],
            'Cas': dc_const['Cas']}

fig, ax, df_show = sch.draw_chart(df, df_show, dc_const, alpha=0.3)
plt.show()

Metadata

Release files for skychart 0.0.3

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

Source distribution (sdist)

Source distribution for skychart 0.0.3
File Size Uploaded Provenance
skychart-0.0.3.tar.gz 96.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 192.3 kB

Release files / skychart-0.0.3.tar.gz

Download URL skychart-0.0.3.tar.gz
Size 96.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9817a0caa274e67d860d1cadc88faf3b78ac80786dc4977af37d32df7676a44d
BLAKE2b-256 checksum
How to use checksums
ba2def0f9a30dacbc2a433cd033ef4081c9a7974a2c09a73afbf005b954ff4df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Release files / skychart-0.0.3-py3-none-any.whl

Download URL skychart-0.0.3-py3-none-any.whl
Size 95.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5fc53b7c0025672ec52dda5df0ad07e6783ff987ca796002f73c196d9998fa9
BLAKE2b-256 checksum
How to use checksums
88b61dbc95bed1a1968a0720aca9fba8b1365e12679007029fb6d11ce97baa79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Security for skychart 0.0.3

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