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.11
  • 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.5.tar.gz (49.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocs_rise_set-0.6.5-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

Details for the file ocs_rise_set-0.6.5.tar.gz.

File metadata

  • Download URL: ocs_rise_set-0.6.5.tar.gz
  • Upload date:
  • Size: 49.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1018-azure

File hashes

Hashes for ocs_rise_set-0.6.5.tar.gz
Algorithm Hash digest
SHA256 657bbd9b2edd1a58ca8e6327a01b66fddd96ea89671b6ffa31a904552fc4843b
MD5 5c1cd9756d3e120d8c267ba96b80b784
BLAKE2b-256 2bfe344f10c9aee72e0cebb15d8843ac410315e6db908ed4b9a804bb0644e940

See more details on using hashes here.

File details

Details for the file ocs_rise_set-0.6.5-py3-none-any.whl.

File metadata

  • Download URL: ocs_rise_set-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1018-azure

File hashes

Hashes for ocs_rise_set-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0be1a712d3b6fa55f6985634bcaa2f34f7f2d5730ad911528bf4c4c13797b1e0
MD5 e96089e71f84576ae21b940b56363472
BLAKE2b-256 929ce3e2101cc977493725bbfb4d44534011c063210b8c3829c1c3bca1ad47b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page