Skip to main content

SQUITTER

SQUITTER

ADS-B/C Link Outage, Fading, and Degradation from Ionospheric Irregularities Simulator.

SQUITTER follows an ADS-B message (the squitter) through an irregular ionosphere and says whether it survives. It is a tested Python forward model of ADS-B (1090ES; UAT planned), ADS-C and GNSS channels: 3D geometry, a ray-optics background (delay, Faraday rotation, deflection), wave-optics scintillation (phase screens, Fresnel propagation, S4) and link metrics (Nakagami fading, bit and message errors).

tests build docs security License: LGPL v3+ pre-commit Ruff mypy: strict docstrings: 100% units in names parameters: provenance PyPI Python versions codecov Last commit Issues

Roadmap status

📖 Documentation · 🐙 GitHub · 🐛 Issues · 📜 Changelog · 🗺️ Roadmap · 🤝 Contributing · 👥 Contributors · 📎 Cite · 🔒 Security

Status: v0.1 in progress (alpha). Constants, geometry, medium, irregularity strength, wave optics, the 1090 MHz link layer and the GNSS closed forms are implemented and tested, with a public API (squitter.run_hop), a CLI and a Sphinx site. ADS-C, UAT, protection levels and strong-scatter saturation are documented placeholders (squitter.future) that raise NotImplementedYetError until their sources are obtained (see the roadmap). The irregularity strength, EIRP, gain, margin and reply rate have no source and ship as TBD: no claim about real detection probability is made.

The model: geometry, irregularities, wave optics, link

What it does

positions -> pierce point, obliquity, Fresnel scale, IPP speed        (G, geometry)
density variance <dN^2>, L, p3, L0 -> phase std sigma_phi             (I, irregularity)
phase screen + Fresnel propagation -> intensity, S4                   (W, waveoptics)
S4 -> Nakagami m = 1/S4^2 -> fade probability, bit and message errors (L, link)
TEC -> group delay, Faraday rotation, deflection                      (A, medium; a side branch that does not change S4)

Every equation in the guide is typeset and tied to the function that implements it; every parameter carries a unit, a status (sourced, assumed, unknown, override) and a source. Read the guide for the theory module by module, the top-down derivation, how the modules connect, the limits and the glossary; the API reference is built from the docstrings.

Install

git clone https://github.com/shibaji7/SQUITTER && cd SQUITTER
make env                  # conda env "squitter": python 3.12, numpy, scipy only
conda activate squitter
make dev                  # editable install with pytest, ruff, mypy, matplotlib, ...
make test

or pip install . in any Python >= 3.11 environment. Optional extras: plots (matplotlib, SciencePlots), docs (Sphinx), dev (all the quality tools).

Quick start

import numpy as np

from squitter import geometry, hop, irregularity
from squitter.config import load_parameters
from squitter.constants import R_E

params = load_parameters()  # shipped defaults: every value has a unit, a status and a source
shell_m = params.get("scenario", "shell_height_m") + R_E

# aircraft at 11 km, 30 N; satellite on a 780 km shell at 15 degrees elevation
lat = np.radians(30.0)
tx = (R_E + 11e3) * np.array([np.cos(lat), 0.0, np.sin(lat)])
_, north, up = geometry.enu_basis(tx)
look = np.cos(np.radians(15)) * north + np.sin(np.radians(15)) * up
rx, _, _ = geometry.pierce_point(tx, tx + 5e6 * look, R_E + 780e3)

# the irregularity strength has no source: you supply it (here 1e19 m^-6, an illustration)
sec_z = geometry.obliquity(tx, rx, shell_m)
k0 = 2 * np.pi / (params.get("irregularity", "outer_scale_km") * 1e3)
sigma = irregularity.sigma_phi_from_density(
    1e19, 0.275, params.get("irregularity", "thickness_km") * 1e3, sec_z, params.get("irregularity", "spectral_index_p3"), k0
)

settings = hop.HopSettings(
    shell_radius_m=shell_m, f_Hz=params.get("link", "frequency_Hz"), sigma_phi_rad=sigma, p=2.0,
    k0_rad_per_m=k0, eirp_dBW=27.0, rx_gain_dBi=3.0, margin_dB=6.0,   # placeholders: no source for these
)  # fmt: skip
v = np.array([250.0, 0.0, 0.0])
result = hop.space_hop_1090(tx, rx, v, np.zeros(3), settings, np.random.default_rng(0))
print(f"S4 = {result.s4:.3f}, P(fade) = {result.fade_probability:.2e}")

From the shell: squitter params --status unknown lists what you still have to supply; squitter run --delta-n2 1e19 --set link.eirp_dBW=27 --set link.rx_gain_dBi=3 --set link.margin_dB=6 runs the same hop; squitter doctor checks the installation. Docs: make docs (Sphinx), or read docs/index.md.

Unknown parameters raise instead of guessing: params.get("link", "eirp_dBW") fails with the reason until you supply a value, in code or in a TOML file (load_parameters("my.toml", overrides={"irregularity.thickness_km": 50})).

Honest by design

Every parameter is value, unit, status, source with status sourced, assumed, unknown or override. An unknown value (TBD) raises MissingParameterError instead of being guessed: the irregularity strength, the ROTI calibration, EIRP, receiver gain, margin, reply rate and the ADS-C timers have no source. A disagreement between code, derivation and a reference value is never silenced: it is logged in DISCREPANCIES.md and kept as a strict expected-failure test until the author decides. See docs/guide/limits.md for what the model does not do.

Layout

Path What
src/squitter/geometry/, medium/ pierce point, obliquity, Fresnel scale, IPP speed; delay, Faraday rotation, deflection, Appleton-Hartree
irregularity/, screen/ <dN^2> to sigma_phi; von Karman phase screens
waveoptics/, link/, gnss/ Fresnel propagation and S4; fading, bit and message errors; GNSS closed forms
hop/, api.py, cli.py, result.py, registry.py the end-to-end hop, the public API, the command line, results, plug-in spectra
config/ TOML parameters with provenance (defaults)
future/ placeholders that raise NotImplementedYetError (ADS-C, UAT, protection levels, saturation)
plotting/ the shared figure style
tests/ analytic oracles, golden simulations, characterization of every public function
docs/ Sphinx site: guide, figures, usage
examples/, functions/, scripts/ scripts that print or plot checkable numbers; demos; tooling

Develop

make help lists everything. make qa runs ruff, format check, mypy (strict), docstring coverage, dead code, dependencies, duplicate code, SPDX headers and the tests. Tests are grouped by module with markers: make gate-W runs one group, make gates runs all. Rules: CONTRIBUTING.md. Disagreements are logged in DISCREPANCIES.md; the limits of the model are in docs/guide/limits.md.

Contributors

SQUITTER is written and maintained by Shibaji Chakraborty, with Claude (Anthropic) as AI pair programmer; see AUTHORS.md. Contributions are welcome: read CONTRIBUTING.md and the code of conduct, and open an issue before changing the public API or the meaning of a parameter.

Contributors

Same author: SCUBAS (submarine cables upset by auroral streams), GeoPulse (geomagnetically induced currents across grounded infrastructure) and pynasonde (ionosonde analysis).

Cite

See CITATION.cff. License: LGPL-3.0-or-later (LICENSE, COPYING).

Metadata

Release files for squitter 0.1.0

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

Source distribution (sdist)

Source distribution for squitter 0.1.0
File Size Uploaded Provenance Actions
squitter-0.1.0.tar.gz 1.9 MB With provenance Details for squitter-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.0 MB

Release files / squitter-0.1.0.tar.gz

Download URL squitter-0.1.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
f7a0be0b60cf1966a44def385398cb91a8c00cc2e033d3b5bef9d8dc267db474
BLAKE2b-256 checksum
How to use checksums
3fa7bd8ae1bb57d51139d803b0ae5498a82cc76b756eb782363744d14a2d35b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / squitter-0.1.0-py3-none-any.whl

Download URL squitter-0.1.0-py3-none-any.whl
Size 93.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b201540c5d4336226fe7135558b1497deb0140a79ae92293e7ac70813d85dfa6
BLAKE2b-256 checksum
How to use checksums
b583b1451aeb2215530940c1605c274dbab80a8005afd1f32dc0e6b150ff50d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for squitter 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for squitter-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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