Skip to main content

Routines for accurate rise/set/transit calculations

Project description

Rise-set Library

Build Coverage Status Codacy Badge PyPI

WARNING: The API of this library will be updated in the near future

This library provides Python routines for finding the positions of astronomical bodies to reasonable precision. It is primarily used to calculate target uptime and sunrise, sunset and twilight times, accurate to 30s-1m. It also supports calculating target airmass over time. The library depends on Fortran SLALIB to perform the computations. The rise/set/transit algorithms are implementations of Astronomical Algorithms, Ch. 14 (Jean Meeus). This library was initially authored by Eric Saunders.

Prerequisites

  • Python >= 3.7
  • Ability to compile fortran (gfortran installed)

Installation

It is highly recommended that you install and run your python code inside a dedicated python virtual environment.

Add the ocs_rise_set package to your python environment (you may need to install numpy first):

(venv) $ pip install numpy; pip install ocs_rise_set

For Developers

Running the Tests

The unit tests are currently using nosetests, so there are a few tests dependencies to install. After cloning this project, from the project root and inside your virtual environment (using Poetry):

$ poetry env use python3.10
$ poetry install
$ poetry run pytest

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

ocs_rise_set-0.6.3.tar.gz (47.5 kB view hashes)

Uploaded Source

Built Distribution

ocs_rise_set-0.6.3-py3-none-any.whl (50.6 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