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.9
  • 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.4.tar.gz (46.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.4-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocs_rise_set-0.6.4.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.16 Linux/6.8.0-1021-azure

File hashes

Hashes for ocs_rise_set-0.6.4.tar.gz
Algorithm Hash digest
SHA256 72ad3649aea6dc8e5edb8cb8b719a4e6615e6d941f18923485ddcf149beb6184
MD5 dacb5a745f109377881ce496ecc18388
BLAKE2b-256 6650d352eabe2611737bd6a8f099f30c857c44b118d855550ff239a072f085a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocs_rise_set-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 50.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.16 Linux/6.8.0-1021-azure

File hashes

Hashes for ocs_rise_set-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8e660c3f4dedf7cd372723549a58a02fd96c97946886df8a069752ec5640957f
MD5 bb71ada7153fd9abdc718b39b4f0b094
BLAKE2b-256 fc5cf3e290ad5b022547f633d7f55bb07fcb6ee45921cd3244c459b9bef1dbe6

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