Skip to main content

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

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.6.tar.gz (50.6 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.6-py3-none-any.whl (54.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocs_rise_set-0.6.6.tar.gz
  • Upload date:
  • Size: 50.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.14 Linux/6.17.0-1022-azure

File hashes

Hashes for ocs_rise_set-0.6.6.tar.gz
Algorithm Hash digest
SHA256 7b6f750bc0ee2e9131fe4994e1c5e2b7960cee83ae4f246e8953b3e769595522
MD5 a09d35faab85308c8e35c5eaef17702c
BLAKE2b-256 e1a952623d95b5f0fcccef6387da5c31110caf5157dc2e8b18ebe27215bb6218

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ocs_rise_set-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6f3a7bab165ed54545303e14caa39c98b320a42f0a54d613bdcff5efaf58b945
MD5 7e9bc31a48bc727b2a3a23abf7b738d0
BLAKE2b-256 e54b9ddeae91a7575b12957f66b580e52c69a8310ee25255c45d4b81fdadf77c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.6 This release

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.5.2

2 files

0.5.1

3 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page