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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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