Skip to main content

A python package for querying NASA's Horizons API

Project description

Author: Behrouz Safari
License: MIT

hypatie

A python package for querying NASA's Horizons API

Installation

You can install the latest version of hypatie from PyPI:

pip install hypatie

The only requirement is numpy.

How to use

Let's get the positions of the sun between two times:

import hypatie as hp

t1 = '2021-03-20 08:00:00'
t2 = '2021-03-20 10:00:00'

If you want the apparent RA and DEC of the Sun with respect to Earth (geocentric):

dates, positions = hp.get_position('obs', 'sun', t1, t2, step=100)

If you want the cartesian positions (x,y,z) of the Sun with respect to the barycenter of Solar System:

dates, positions = hp.get_position('vec', 'sun', t1, t2, step=100)

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

hypatie-0.0.1.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

hypatie-0.0.1-py3-none-any.whl (5.8 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