Skip to main content

skyalmanacPP Project Description

skyalmanacPP is a Python 3 program that creates the Planetary Phenomena data and charts that accompany a Nautical Almanac. The generated tables assist celestial navigation with a sextant. Although you are strongly advised to purchase the official Nautical Almanac, this program will reproduce the tables with no warranty or guarantee of accuracy.

skyalmanacPP employs multiprocessing (if your processor has multiple cores) reducing the processing time. (Single-processing is also available as an option.)

Functionality

skyalmanacPP (AKA “Planetary Phenomena”) includes:

  • the “DECLINATION OF SUN AND PLANETS” chart

  • the “Planet Diagram” (see “Americal Practical Navigator” originally by Nathaniel Bowditch, L.L.D., Volume 1, 2017 Edition, page 256; also any “Astronomical Phenomena” or “Nautical Almanac” from USNO/HMNAO)

  • “VISIBILITY OF PLANETS” text (see any “Astronomical Phenomena” or “Nautical Almanac” from USNO/HMNAO) with one notable exception: I assume that the data listed in official almanacs is based on latitude 51.5°N, whereas skyalmanacPP provides planet visibility text based on any latitude you choose (between 60°S and 72°N).

  • “VISIBILITY OF PLANETS IN MORNING AND EVENING TWILIGHT” table (see any “Astronomical Phenomena” or “Nautical Almanac” from USNO/HMNAO) based on your chosen latitude.

  • Planet Visibility charts, which I prefer to call “Planet Invisibility” charts, because they show whwn the planet is below the horizon (shaded grey) and when the Sun is higher than 6 degrees below the horizon (shaded gold), i.e. Civil Dawn to Civil Dusk, when it is generally too bright to see any planets. (Conversely I maintain that a planet is generally visible during Nautical and Astronomical twilight and night itself, when the Sun is more than 18 degrees below the horizon.) This chart provides the best latitude-specific picture of your chances to observe a given planet. It is based on the pioneering planet visibility work done by the astronomer Rainer Lange, whose web site is now only reachable as an archive: https://web.archive.org/web/20260106175348/https://www.alcyone.de/

Sample Planet Visibility chart: Mars in 2026 at latitude 66°N Mars2026

User Documentation

Please read the following file (also in the ‘docs’ project folder): SkyAlmanacPP usage notes

Technical Note

This is the PyPI edition of SkyAlmanacPP-Py3. Version numbering follows the scheme Major.Minor.Patch, whereby the Patch number represents some small correction to the intended release.

The PyPI edition has the advantage of easier installation and source code files do not clutter the working folder. The PyPI edition is recommended for general users.

Software Requirements


The astronomical library employed is: Skyfield.
Typesetting is done typically with MiKTeX or TeX Live.
Here are the requirements/recommendations:

Skyfield version 1.55 or newer is recommended (versions 1.50 to 1.54 are known to have issues).

Installation on Windows 10/11; on Linux before Python 3.12; on Mac before MacOS 14


Install a TeX/LaTeX program on your operating system so that pdflatex is available.
Ensure that the pip Python installer tool is installed. Check that the latest version of skyalmanacPP is installed:
python -m pip install --upgrade skyalmanacPP

Installing skyalmanacPP ensures that Skyfield and scipy (and their dependencies) are also installed. If previous versions of skyalmanacPP were installed, consider upgrading Skyfield and scipy thus:

python -m pip install --upgrade skyfield scipy

Thereafter run it with:

python -m skyalmanacPP <options>

On a POSIX system (Linux or Mac OS), use python3 instead of python in the commands above.
This PyPI edition also supports installing and running in a venv virtual environment.
Finally check or change the settings in config.py. Its location is printed immediately when skyalmanacPP runs.

Installation on Linux with Python 3.12 and higher; on MacOS 14 and higher

More recent versions of Python (on specific operating systems) prevent users installating a PyPI package (such as Skyfield, skyalmanacPP, numpy, Pandas) in the Python system-wide area. The error message is “This environment is externally managed” and this is intended to avoid a conflict between the distribution’s package manager and Python package management tools as defined in the PEP-668 documentation.

The intention is to persuade users to install PyPI packages in a virtual environment instead, which functions very well. The downside: a virtual environment is typically created in a project folder, so you may require several vitrual environments. It is NOT wise to “break the rules” and force package installation in the Python system-wide area.

To assist users new to virtual environments, I have provided an Installation guide for Linux. (Package installation for MacOS is in principle the same.)

Guidelines for Linux & Mac OS

Quote from Chris Johnson:

It’s best to not use the system-provided Python directly. Leave that one alone since the OS can change it in undesired ways. The best practice is to configure your own Python version(s) and manage them on a per-project basis using venv. This eliminates all dependency on the system-provided Python version, and also isolates each project from other projects on the machine.

Each project can have a different Python point version if needed, and gets its own site_packages directory so pip-installed libraries can also have different versions by project. This approach is a major problem-avoider.

Metadata

Release files for skyalmanacPP 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skyalmanacPP 0.6
File Size Uploaded Provenance Actions
skyalmanacpp-0.6.tar.gz 31.6 MB Without provenance Details for skyalmanacpp-0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skyalmanacPP 0.6
File Interpreter ABI Platform Actions
skyalmanacpp-0.6-py3-none-any.whl Python 3 none any Details for skyalmanacpp-0.6-py3-none-any.whl

Total release size: 63.8 MB

Release files / skyalmanacpp-0.6.tar.gz

Download URL skyalmanacpp-0.6.tar.gz
Size 31.6 MB
Tags Source
SHA-256 checksum
How to use checksums
2e50f7821bc80b5510380c210a2a60fff2762e36117a6ca5b7eeaa728154bcf5
BLAKE2b-256 checksum
How to use checksums
bdb444ae8b45c09ab911155a687cb4a06b88f94fee16186f21f794690d1f4500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / skyalmanacpp-0.6-py3-none-any.whl

Download URL skyalmanacpp-0.6-py3-none-any.whl
Size 32.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8f8b77bbb196f32d633de17a3a3d1389391dd48c24167f34273e3028143d6914
BLAKE2b-256 checksum
How to use checksums
100c51e72d7df0881829815223b2f83391c253dd5f5f81d08e40c5bd5bdc7714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for skyalmanacPP 0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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