Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
/ iri90 Public archive

IRI90-international reference ionosphere in Python

License

Notifications You must be signed in to change notification settings

space-physics/iri90

Repository files navigation

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