GitHunt

Actions Status

PyPi version
PyPi Download stats

IRI90: International reference ionosphere in Python

IRI-90 provides monthly mean values for magnetically quiet
conditions at non-auroral latitudes in the altitude range 50km to
2000km
.

However, IRI90 is often used as an initialization for conditions at
auroral latitudes, understanding the caveats.

example IRI output

Install

A Fortran compiler such as gfortran is needed.
We use f2py (part of numpy) to seamlessly use Fortran libraries from Python.
If you don't have one, here is how to install Gfortran:

  • Linux: apt install gfortran

  • Mac: brew install gcc

  • Windows using Windows PowerShell:

    echo "[build]`ncompiler=mingw32" | Out-File -Encoding ASCII ~/pydistutils.cfg

Then

git clone https://github.com/space-physics/iri90

python -m pip install -e iri90

Usage

This IRI90 Python module is as small and clean as possible to enable your custom IRI90 applications.

import iri90

iono = iri90.runiri(dtime, altkm, latlon, f107, f107s, ap=p.ap)

iono is an xarray.DataArray indexable by species, altitude, etc. and includes metadata.

Altitude profile

density and temperature:

python AltitudeProfile.py

References

Fortran Code

Languages

Python92.8%Meson3.8%CMake3.5%

Contributors

MIT License
Created April 28, 2015
Updated October 8, 2025