Routines for accurate rise/set/transit calculations
Project description
Rise-set Library
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
Built Distribution
File details
Details for the file ocs_rise_set-0.6.3.tar.gz
.
File metadata
- Download URL: ocs_rise_set-0.6.3.tar.gz
- Upload date:
- Size: 47.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.9.20 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a68bb0fbb50113498f29ea830ad448c3708bce7da9c9d2d847952dae6cf3e28d |
|
MD5 | b886784b1f1ae96e4c2412695c639d45 |
|
BLAKE2b-256 | ebe0d3763fd1fa48cc0ce51de64d4ba57eecfc2472d1993431f3dc08d0d50f05 |
File details
Details for the file ocs_rise_set-0.6.3-py3-none-any.whl
.
File metadata
- Download URL: ocs_rise_set-0.6.3-py3-none-any.whl
- Upload date:
- Size: 50.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.9.20 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac99150a9a663a640f913534d3e4536b879c6aff54e3497ce14c1bd84ea190ca |
|
MD5 | 98ca2003d0ab945495e97cfd3301f847 |
|
BLAKE2b-256 | eb7e1a286690e7719785c8f60a7acb9df8bf6e16c579d082e78f281a8a368614 |