Skip to content
IRI90-international reference ionosphere in Python
Python CMake Meson
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
archive
iri90
reference
src
tests
.coveragerc
.flake8
.gitattributes
.gitignore
00readme.txt
AltitudeProfile.py
CMakeLists.txt
LICENSE.txt
README.md
TimeProfile.py
meson.build
mypy.ini
pyproject.toml
setup.cfg
setup.py

README.md

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

You can’t perform that action at this time.