IRI2016 International Reference Ionosphere from Python
Project description
IRI2016 ionosphere model from Python and Matlab
Python and Matlab interfaces to the International Reference Ionosphere (IRI) 2016 model. A Fortran compiler is required to build the IRI2016 code.
Install
Prerequisites
- Fortran compiler--any modern Fortran compiler will do. Here's how to get Gfortran:
- Linux:
apt install gfortran
- Mac:
brew install gcc
- Windows: consider MSYS2
- Linux:
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).
Manual build
This should not be necessary, but is included for troubleshooting purposes. This assumess you have a local copy of IRI2016 like:
git clone https://github.com/space-physics/iri2016
ctest -S iri2016/src/iri2016/setup.cmake -VV
Usage
-
Altitude Profile: plot density and temperatures vs altitude
python -m iri2016.altitude 2003-11-21T12 -11.95 -76.77
-
Latitude profile: plot densities and height at the peak of F2, F2, and E regions vs geographic latitude
python -m iri2016.latitude 2004-11-21T17 -76.77
-
Time profile: plot densities and height at the peak of F2, F2, and E regions vs UTC
python -m iri2016.time 2014-11-21 2014-11-22 1 -11.95 -76.77
-
Latitude vs Longitude: plot of foF2 a function of geographic latitude and longitude
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:
runtests('iri2016')
The Examples directory has simple example use with plots.
Data files
iri2016/iri2016/data/index/{apf107,ig_rz}.dat
are
regularly updated.
Currently we don't auto-update those.
Notes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file iri2016-1.11.1.tar.gz
.
File metadata
- Download URL: iri2016-1.11.1.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201103 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011629a4f05266429139833d9bf039ac6233a2ab0c3fc4885fb2af9b619b7835 |
|
MD5 | 77024b3263721fe79e9c5d16d90d27fb |
|
BLAKE2b-256 | 2393adda68339fadb1734bdd477ab5efeb2756620e65f75d4aa222f7b7da87d7 |