space-physics / iri2016

International Reference Ionosphere 2016 from Python and Matlab
http://irimodel.org/
MIT License
67 stars 34 forks source link
build-on-run ionosphere ionosphere-modeling matlab-python-interface

IRI2016 ionosphere model from Python and Matlab

image Actions Status View iri2016 on File Exchange PyPi version PyPi Download stats

image

Python and Matlab interfaces to the International Reference Ionosphere (IRI) 2016 model. A Fortran compiler is required to build the IRI2016 code.

Install

Prerequisites

and then install latest release:

pip install iri2016

if you want the latest development version:

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

pip install -e iri2016

This Python wrapper of IRI2016 uses our build-on-run technique. On the first run or iri2016.IRI() the Fortran code is built--we call this "build on run".

If you have errors about building on the first run, ensure that your Fortran compiler is specified in environment variable FC--this is what most build systems use to indicate the desired Fortran compiler (name or full path).

Usage

setting JF flags

irisub.for has a few dozen logical flags stored in variable JF. To reconfigure those flags, edit iri2016_driver.f90 and recompile iri2016_driver.exe.

Matlab

IRI2016 is readily accessible from Matlab. From within Matlab verify everything is working by:

TestAll

The Examples directory has simple example use with plots.

Matlab IRI2016 plot

Data files

iri2016/iri2016/data/index/{apf107,ig_rz}.dat are regularly updated. Currently we don't auto-update those.

Notes