Metadata-Version: 2.4
Name: pysyzygos
Version: 1.7.1
Summary: Asteroid occultation predictions for your observing site: JPL Horizons orbits, a local Gaia DR3 catalog, a web interface
Author: Percy Zahl
License-Expression: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/pyzahl/PySyzygos
Project-URL: Documentation, https://github.com/pyzahl/PySyzygos#readme
Project-URL: Source, https://github.com/pyzahl/PySyzygos
Project-URL: Issues, https://github.com/pyzahl/PySyzygos/issues
Project-URL: Changelog, https://github.com/pyzahl/PySyzygos/blob/main/CHANGELOG.md
Project-URL: DOI, https://doi.org/10.5281/zenodo.23149371
Keywords: asteroid,occultation,astronomy,Gaia,SPICE,IOTA,syzygy
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: requests
Requires-Dist: scipy
Requires-Dist: spiceypy
Requires-Dist: astropy
Requires-Dist: astroquery
Requires-Dist: pandas
Requires-Dist: nicegui
Requires-Dist: pillow
Dynamic: license-file

# PySyzygos

<img src="https://raw.githubusercontent.com/pyzahl/PySyzygos/main/src/pysyzygos/pysyzygos_logo.png" alt="PySyzygos logo" width="96" align="right">

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.23149371.svg)](https://doi.org/10.5281/zenodo.23149371)

**Stellar occultations by asteroids, planets and moons: precise predictions for your own observing site, and the
whole shadow path on the Earth.** PySyzygos finds the events your telescope can catch and computes each one to
scientific precision: JPL orbits (or Lucky Star's NIMA for TNOs), a local Gaia DR3 star catalog with full
astrometric corrections, the exact geometry in a fundamental plane through your site. For every event it also traces
the full path on the Earth (center line, limits, uncertainty band), and it can search anywhere on Earth.

All of it through an easy-to-use web interface (NiceGUI) in your browser: maps of the paths, star-field previews,
your site's 360° panorama with its real horizon limits, favorites with notes and status, cloud forecasts, filters,
and much more for planning a night. Free software (GPL-3.0-or-later), for Linux, macOS and Windows; works offline in
the field once set up.

*Syzygos* (Greek σύζυγος, "yoked together"): for a few seconds the observer, the asteroid and the star stand in
one line.

**The full documentation is on GitHub: [README](https://github.com/pyzahl/PySyzygos#readme).** This page is a short
summary for PyPI.

## What it does

- **Pick** the best events among all ~465,000 asteroids with H < 17 for a site and a time window (optionally from a
  shared whole-Earth pre-screen), by asteroid group (NEOs, Trojans, TNOs, ...) and your telescope's star limit.
- **Search** them exactly: Gaia DR3 astrometry with parallax, proper-motion corrections and light deflection, the
  light time from your site, your height and horizon, the path uncertainty across the track and the chance that the
  shadow covers you.
- **Paths on the Earth**: center line, shadow limits and 1-sigma lines of every event (at sea level or at your
  site's height), as an interactive map, KML for Google Earth, and a globe view; or search all events anywhere on
  Earth.
- **Your site, made easy**: pick it on the map, paste coordinates in any form or choose an MPC observatory code;
  height and geoid looked up; telescope and camera from a list (the faintest useful star follows); the horizon from
  OccultWatcher's file or from a 360° photo of the site (skyline found automatically, aligned by the Sun).
- **Results and favorites**: a filterable table, maps (KML for Google Earth), star-field previews, a globe view,
  KStars / Stellarium pointing, known satellites, double and variable stars (WDS, AAVSO VSX), cloud forecast,
  OccultWatcher Cloud feeds, an SQL filter.
- **Observations**: IOTA report forms, chord plots of observed events, the IOTA observation archive with our
  predictions checked against 27,000 observed chords.
- Validated against Occult and OccultWatcher: see
  [VERIFICATION.md](https://github.com/pyzahl/PySyzygos/blob/main/VERIFICATION.md).

## Install

```bash
uv tool install pysyzygos       # or: pipx install pysyzygos
pysyzygos setup                 # once: kernels, the star catalog, your site (asks where to keep the data)
pysyzygos                       # the web interface in your browser
```

**Why uv or pipx, not plain pip?** PySyzygos is an application with about 90 dependencies. `uv tool` and `pipx`
install it into its own private environment and put the `pysyzygos` command on your PATH, so it cannot clash with
other Python programs. Plain `pip install` into the system Python is refused on many current systems
("externally-managed-environment", Debian, Ubuntu, Fedora, macOS Homebrew); inside a virtual environment of your own,
`pip install pysyzygos` works too.

Getting the tool, once:

- **uv** (recommended: it also brings a suitable Python, 3.11 or newer, by itself):
  Linux / macOS `curl -LsSf https://astral.sh/uv/install.sh | sh`; Windows (PowerShell)
  `powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"`. Then open a new terminal.
- **pipx** (needs Python 3.11 or newer already installed): Debian / Ubuntu `sudo apt install pipx`, macOS
  `brew install pipx`, Windows `python -m pip install --user pipx`; then `pipx ensurepath` once and open a new
  terminal.

The first setup downloads the JPL kernels and a ready-made Gaia catalog (G ≤ 16,
from Zenodo); see [Install](https://github.com/pyzahl/PySyzygos#install) and
[Getting started](https://github.com/pyzahl/PySyzygos/blob/main/GETTING_STARTED.md).

## Updates

PyPI carries the releases (x.y.0, each archived on Zenodo with a DOI): `pysyzygos update` (or the System tab's
**Update**) upgrades with the tool you installed with (uv tool, pipx or pip). The **developer version**, with every
fix between releases, is the GitHub repository: clone it and run `uv run pysyzygos`; updates are then a `git pull`
(also from the System tab). Details: [README, Install](https://github.com/pyzahl/PySyzygos#install).

## Documentation

- [README](https://github.com/pyzahl/PySyzygos#readme): everything, section by section
- [Getting started](https://github.com/pyzahl/PySyzygos/blob/main/GETTING_STARTED.md): a first night, step by step
- [ABOUT](https://github.com/pyzahl/PySyzygos/blob/main/ABOUT.md): how the predictions are computed, and the sources
- [The mathematics](https://github.com/pyzahl/PySyzygos/tree/main/docs/math): slides with numbered formulas (PDF with
  each release)
- [Verification](https://github.com/pyzahl/PySyzygos/blob/main/VERIFICATION.md) and
  [Changelog](https://github.com/pyzahl/PySyzygos/blob/main/CHANGELOG.md)

## Citing

Please cite the Zenodo record: [doi:10.5281/zenodo.23149371](https://doi.org/10.5281/zenodo.23149371) (all versions;
each release has its own DOI). See
[CITATION.cff](https://github.com/pyzahl/PySyzygos/blob/main/CITATION.cff).

## License

GNU General Public License v3 or later. Copyright (C) 2026 Percy Zahl.
