Skip to main content

IRI2016 International Reference Ionosphere from Python

Project description

Michael Hirsch, Ph.D.
Ronald Ilma
License: UNKNOWN
Description: [![image](](
[![Build Status](](
[![Build status](](
[![PyPi version](](
[![PyPi formats](](
[![PyPi Download stats](](

# IRI2016 ionosphere model from Python and Matlab


A Python interface to the International Reference Ionosphere (IRI) 2016 model.

## Install

Any Fortran compiler will do.
IRI2016 has been tested with compilers including:

* Gfortran 5, 6, 7, 8
* Intel `ifort`
* PGI `pgf90`

Install Gfortran by:

- Linux: `apt install gfortran`
- Mac: `brew install gcc`
- [Windows](

and then from your Python ≥ 3.6 install (such as [Miniconda](

pip install iri2016


python -m pip install -e .

## Usage

### Height-profile

plot density and temperatures vs [altitude](


### Latitudinal profile

plot densities and height at the peak of F2, F2, and E regions vs [geographic latitude](


### GMT profile

plot densities and height at the peak of F2, F2, and E regions vs universal [time](


### Height vs GMT

plot Ne, Te, and Ti as a function of height and universal [time](scripts/


### Latitude vs Longitude

plot of foF2 a function of geographic latitude and [longitude](scripts/


## Notes

These commands are not normally needed unless you want to work with the Fortran code more directly.

### Fortran compile

cd bin
cmake ../fortran

cmake --build -j .

ctest -V

### f2py compile

The function DFRIDR() inside igrf.for dynamically calls other functions.
This is something f2py can't access directly, so we tell f2py not to
hook into function DFRIDF() with the end statement `skip: dfridr`:

f2py -m iri2016 -c iriwebg.for irisub.for irifun.for iritec.for iridreg.for igrf.for cira.for iriflip.for skip: dfridr

### f2py: IGRF only

f2py -m igrf -c irifun.for igrf.for skip: dfridr

Keywords: thermosphere,ionosphere
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Fortran
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
Requires-Python: >= 3.6
Description-Content-Type: text/markdown
Provides-Extra: plot
Provides-Extra: tests

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for iri2016, version 1.5.1
Filename, size File type Python version Upload date Hashes
Filename, size iri2016-1.5.1.tar.gz (1.6 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page