A python package for creating star charts
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skychart-0.0.3.tar.gz.
File metadata
- Download URL: skychart-0.0.3.tar.gz
- Upload date:
- Size: 96.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9817a0caa274e67d860d1cadc88faf3b78ac80786dc4977af37d32df7676a44d
|
|
| MD5 |
5abe2e7a2381202af74cbae047089229
|
|
| BLAKE2b-256 |
ba2def0f9a30dacbc2a433cd033ef4081c9a7974a2c09a73afbf005b954ff4df
|
File details
Details for the file skychart-0.0.3-py3-none-any.whl.
File metadata
- Download URL: skychart-0.0.3-py3-none-any.whl
- Upload date:
- Size: 95.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5fc53b7c0025672ec52dda5df0ad07e6783ff987ca796002f73c196d9998fa9
|
|
| MD5 |
b6f7fdacef069b4508247b00335c0ab3
|
|
| BLAKE2b-256 |
88b61dbc95bed1a1968a0720aca9fba8b1365e12679007029fb6d11ce97baa79
|