Skip to main content

A python package for astronomical calculations

Project description

Author: Behrouz Safari
License: MIT

astrobook

Educational tools for the astronomical book

Installation

Install the latest version:

pip install astrobook

Requirements are numpy, pandas, scipy, requests and matplotlib.

Examples

Retrieve data from SIMBAD:

from astrobook import sql2df

df = sql2df('SELECT TOP 10 main_id, ra, dec FROM basic', api='simbad')

Get names, description an number of rows of tables of IRSA

from astrobook import sql2df

query = """
SELECT table_name, description, irsa_nrows
FROM TAP_SCHEMA.tables
WHERE irsa_nrows IS NOT NULL
ORDER BY irsa_nrows DESC
"""

df = sql2df(query, api='irsa')

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

astrobook-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

astrobook-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file astrobook-0.0.1.tar.gz.

File metadata

  • Download URL: astrobook-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.0

File hashes

Hashes for astrobook-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0761189fea7cf85e4cce859aa157efed68677bf2b825f0decfa8f24e11242465
MD5 b1ee99bb81a473d97ecb7df33030510e
BLAKE2b-256 3db48d4eea20e0c140379acbb090641c36990b5cac7ae6ab706de78b368dc20e

See more details on using hashes here.

File details

Details for the file astrobook-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: astrobook-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.0

File hashes

Hashes for astrobook-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef8245501e0be5c1b8788e669cb1be2b5781028e754aa7181f6abee0373d4ba3
MD5 f47cd08f8ac3abae5e2e442b52420a1e
BLAKE2b-256 d6360efbe1fe3b3aa6670334df3dfe8a90e5e7a8da20d6448362ab99fa7e8fbd

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