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)