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

Uploaded Source

Built Distribution

hypatie-0.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hypatie-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.2

File hashes

Hashes for hypatie-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9ebbaf68c2cf7de420f8209cde90ce3b8ab3677daf0c7f6d8c4c21ce3bdd0a8e
MD5 156974de3e510d7c8e2081566f22f421
BLAKE2b-256 267627d7956be75eeb051779018259790baa576f7dc38895c96a3ceae1ba393a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypatie-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.2

File hashes

Hashes for hypatie-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c503c812b0b8f7d470c63159ec4f8a022b6d5f4d21b35b6259bc8d3daf8c882c
MD5 7c1dbcdb477ff3cf1a1fe80c16672ccd
BLAKE2b-256 40df37d0960575c38b37d06db493f3622c1230a0ef8f5e5025bc6b52d5fdbfb3

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