Skip to main content

GeoSol Research Logo

Iono (Ionospheric Corrections)

Ionospheric delay and angular correction models for trans-ionospheric signal propagation. Requires Python 3.12+.

Overview

gri-iono implements several ionospheric models for calculating signal delays and angular deflections caused by the ionosphere. Each model returns a tuple of (angular_correction, time_delay) representing the angular deflection in radians and the excess propagation time in seconds.

Mathematical Background

The ionosphere is a region of the atmosphere (~60-1000 km altitude) where solar radiation ionizes atmospheric gases, creating free electrons that affect electromagnetic wave propagation. The ionospheric delay is proportional to the Total Electron Content (TEC) along the signal path and inversely proportional to the square of the carrier frequency:

delay_s = (40.3 / c) * TEC / f^2

where TEC is in electrons/m^2, f is the carrier frequency in Hz, and c is the speed of light. This dispersive property means lower frequencies experience greater delay -- a characteristic exploited by dual-frequency GNSS receivers to estimate and remove the ionospheric error.

The electron density profile varies with solar activity (F10.7 solar flux index), local time, season, geomagnetic latitude, and solar cycle phase. Each model in this library approximates this profile differently.

References:

  • Bent et al. (1972). "The Development of a Highly-Successful Worldwide Empirical Ionospheric Model."
  • Nava et al. (2008). "A new version of the NeQuick ionosphere electron density model." Journal of Atmospheric and Solar-Terrestrial Physics.
  • ITU-R P.531. "Ionospheric propagation data and prediction methods required for the design of satellite services and systems."

Documentation

The wheel ships its documentation inside the package, in gri_iono/docs/, so it is available wherever the package is installed:

  • overview.md -- the common contract, choosing a model, their inputs and approximations, and batches
  • api_summary.md -- every public function and signature (generated)

Print the directory with python -c "import gri_iono, pathlib; print(pathlib.Path(gri_iono.__file__).parent / 'docs')". Every example in those files is run by the test suite.

Installation

pip install gri-iono

For development:

git clone https://gitlab.com/geosol-foss/python/gri-iono.git
cd gri-iono
uv sync

Available Ionospheric Models

Bent Model (bent_ionospheric_correction)

The Bent model is a classical empirical ionospheric model developed in the 1970s that uses Chapman-like electron density profiles with parameters derived from solar activity and geomagnetic conditions.

IRI Model (iri_ionospheric_correction)

The International Reference Ionosphere (IRI) is the internationally recognized empirical standard for ionospheric parameters, maintained by COSPAR and URSI. It provides the most comprehensive climatological representation of the ionosphere.

NeQuick2 Model (nequick2_ionospheric_correction)

NeQuick2 is a three-dimensional ionospheric electron density model developed by ICTP Trieste and the University of Graz, designed for trans-ionospheric propagation applications using a three-layer (E, F1, F2) structure.

NeQuickG Model (nequickg_ionospheric_correction)

NeQuickG is the Galileo-adapted version of NeQuick, designed to work with broadcast ionospheric coefficients (ai0, ai1, ai2) transmitted by Galileo satellites for real-time ionospheric correction.

Usage

All ionospheric correction functions return a tuple of (angular_correction, time_delay) where:

  • angular_correction: Elevation-angle correction at the source end of the path, in radians (negative is toward zenith)
  • time_delay: One-way excess propagation time in seconds

The source is the low end of the path: elevation is measured at the source toward the collector. For a ground receiver tracking a GNSS satellite, pass the receiver as source_lla and the satellite as collector_xyz. Bent raises ValueError if the collector is at or below the source's horizon.

bent_ionospheric_correction

High-level interface with automatic solar flux derivation from date:

from gri_iono import bent_ionospheric_correction
from datetime import datetime

angular, delay = bent_ionospheric_correction(
    source_lla=[40.0, -105.0, 1600.0],  # ground receiver: lat, lon, alt (deg, deg, m)
    collector_xyz=[...],  # satellite ECEF position (m)
    frequency_hz=1575.42e6,  # L1 frequency
    time=datetime(2024, 6, 15, 12, 0, 0),  # UTC time
)

iri_ionospheric_correction

Grid-based IRI model with configurable resolution:

from gri_iono import iri_ionospheric_correction
from datetime import datetime

angular, delay = iri_ionospheric_correction(
    source_lla=[40.0, -105.0, 1600.0],  # ground end
    collector_xyz=[...],  # satellite ECEF (m)
    frequency_hz=1575.42e6,
    solar_flux=150.0,  # F10.7 solar flux units
    time=datetime(2024, 6, 15, 12, 0, 0),
    grid_resolution=2.0,  # lat/lon grid spacing (degrees)
    alt_resolution=5.0,  # altitude grid spacing (km)
    num_path_points=200,  # integration points along ray
)

nequick2_ionospheric_correction

Full NeQuick2 model using solar flux:

from gri_iono import nequick2_ionospheric_correction

angular, delay = nequick2_ionospheric_correction(
    source_lla=[40.0, -105.0, 1600.0],  # ground end
    collector_xyz=[...],  # satellite ECEF (m)
    frequency_hz=1575.42e6,
    solar_flux=150.0,  # F10.7 solar flux units
    utc_hours=12.5,  # UTC time as decimal hours
    month=6,  # month (1-12) for seasonal variation
)

nequickg_ionospheric_correction

NeQuickG model using Galileo broadcast coefficients:

from gri_iono import nequickg_ionospheric_correction

angular, delay = nequickg_ionospheric_correction(
    source_lla=[40.0, -105.0, 1600.0],  # ground end
    collector_xyz=[...],  # satellite ECEF (m)
    frequency_hz=1575.42e6,
    coefficients=(236.831641, 0.0, 0.0),  # ai0, ai1, ai2 from Galileo broadcast
    utc_hours=12.5,
    month=6,
)

Dependencies

  • gri-utils: Coordinate conversions and physical constants
  • numpy: Array operations
  • scipy: Scientific computing

Other Projects

Current list of other GRI FOSS Projects we are building and maintaining.

License

MIT License. See LICENSE for details.

Metadata

Release files for gri-iono 0.2.8

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

Source distribution (sdist)

Source distribution for gri-iono 0.2.8
File Size Uploaded Provenance Actions
gri_iono-0.2.8.tar.gz 7.2 MB Without provenance Details for gri_iono-0.2.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gri-iono 0.2.8
File Interpreter ABI Platform Actions
gri_iono-0.2.8-py3-none-any.whl Python 3 none any Details for gri_iono-0.2.8-py3-none-any.whl

Total release size: 8.6 MB

Release files / gri_iono-0.2.8.tar.gz

Download URL gri_iono-0.2.8.tar.gz
Size 7.2 MB
Tags Source
SHA-256 checksum
How to use checksums
73f4152cfed38749d426dead2092904665417c45de94c1a28e242ba01a2f3278
BLAKE2b-256 checksum
How to use checksums
8215bd4f8daaee885a79bbcebdf1af7478da534cb3d6dc12e54ae806dffc7398
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / gri_iono-0.2.8-py3-none-any.whl

Download URL gri_iono-0.2.8-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3f210a1a67c38792f150dc8d04ce1070c99d7eec410a610d5df9be1620a73843
BLAKE2b-256 checksum
How to use checksums
c44bae6fe39b1d415e62b84f9305b0b43586a0fa0c074b0f8bd866fa95936020
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for gri-iono 0.2.8

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