space-physics / iri90

IRI90-international reference ionosphere in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

IRI90-international reference ionosphere in Python

License:MIT License


Languages

Language:Python 92.8%Language:Meson 3.8%Language:CMake 3.5%