pyiri
Python implementation of the International Reference Ionosphere (IRI) that evaluates ionospheric parameters and electron density on the entire given global grid and for the entire day simultaneously.
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.1%) to scientific vocabulary
Repository
Python implementation of the International Reference Ionosphere (IRI) that evaluates ionospheric parameters and electron density on the entire given global grid and for the entire day simultaneously.
Basic Info
- Host: GitHub
- Owner: victoriyaforsythe
- License: mit
- Language: Python
- Default Branch: main
- Size: 21.2 MB
Statistics
- Stars: 29
- Watchers: 3
- Forks: 12
- Open Issues: 6
- Releases: 4
Metadata Files
README.md

PyIRI
Python implementation of the International Reference Ionosphere (IRI) that evaluates the electron density and associated ionospheric parameters on the entire given global grid and for the entire day simultaneously.
Installation
PyIRI may be installed from PyPi, which will handle all dependencies.
pip install PyIRI
You may also clone and install PyIRI from the GitHub repository.
git clone https://github.com/victoriyaforsythe/PyIRI.git
cd /path/to/PyIRI
python -m build .
pip install .
For more details about the dependencies, see the [examples] and Jupyter Notebooks [tutorials].
Example
PyIRI can calculate monthly mean ionospheric parameters for the user provided grid. The estimation of the parameters occurs simultaneously at all grid points and for all desired diurnal time frames,
``` import numpy as np import PyIRI import PyIRI.edp_update as ml import PyIRI.plotting as plot
year = 2020 month = 4 ccirorursi = 0
Create any horizontal grid (regular or irregular, global or regional).
The grid arrays (alon and alat) should be flattened to be 1-D arrays.
This is an example of a regular global grid:
dlon = 5 dlat = 5 alon2d, alat2d = np.mgrid[-180:180 + dlon:dlon, -90:90 + dlat:dlat] alon = np.reshape(alon2d, alon2d.size) alat = np.reshape(alat2d, alat2d.size)
Create any temporal array expressed in decimal hours (regular or irregular).
For this example we use regularly spaced time array:
hrres = 1 ahr = np.arange(0, 24, hrres)
Find ionospheric parameters for F2, F1, E, and Es regions by
calling IRImonthlymean_par function:
f2, f1, epeak, espeak, sun, mag = ml.IRImonthlymeanpar(year, month, ahr, alon, alat, PyIRI.coeffdir, ccirorursi)
```

PyIRI can calculate daily ionospheric parameters for the user provided grid. The estimation of the parameters occurs simultaneously at all grid points and for all desired diurnal time frames. The parameters are obtained by linearly interpolating between min and max levels of solar activity, and by interpolation between median monthly values to the day of interest. The user should provide the F10.7 value for the day of interest.
f107 = 100
f2, f1, e_peak, es_peak, sun, mag, edp = ml.IRI_density_1day(year, month, day, ahr, alon, alat, aalt, f107, PyIRI.coeff_dir, ccir_or_ursi)

PyIRI does not calculate the Total Electron Content (TEC) automatically, as the altitude array is provided by the user. If the user supplies an array with low resolution, the resulting TEC values may be inaccurate. The edptovtec function can be used to calculate the vTEC from the edp output.
```
Find TEC in shape [Ntime, Ngrid]
TEC = main.edptovtec(edp, aalt, minalt=0.0, maxalt=202000.0)
```

In case you are interested in a single location (as opposed to the grid) PyIRI can evaluate parameters at this location if it is passed as a 1-element NumPy array.
``` alon = np.array([10.]) alat = np.array([20.])
f2, f1, epeak, espeak, sun, mag, edp = ml.IRIdensity1day(year, month, day, ahr, alon, alat, aalt, f107, PyIRI.coeffdir, cciror_ursi) ```

Owner
- Login: victoriyaforsythe
- Kind: user
- Repositories: 1
- Profile: https://github.com/victoriyaforsythe
Citation (CITATION.cff)
cff-version: 0.0.4
message: "If you use this software, please cite it as below."
authors:
- family-names: Forsythe
given-names: Victoriya V.
orcid: https://orcid.org/0000-0003-0894-2951
affiliation: U.S. Naval Research Laboratory
- family-names: Burrell
given-names: Angeline G.
orcid: https://orcid.org/0000-0001-8875-9326
affiliation: U.S. Naval Research Laboratory
title: victoriyaforsythe/PyIRI: v0.0.4
version: v0.0.4
date-released: 2025-06-04
GitHub Events
Total
- Create event: 8
- Release event: 2
- Issues event: 4
- Watch event: 7
- Delete event: 5
- Member event: 1
- Issue comment event: 4
- Push event: 59
- Pull request review event: 8
- Pull request review comment event: 8
- Pull request event: 14
- Fork event: 4
Last Year
- Create event: 8
- Release event: 2
- Issues event: 4
- Watch event: 7
- Delete event: 5
- Member event: 1
- Issue comment event: 4
- Push event: 59
- Pull request review event: 8
- Pull request review comment event: 8
- Pull request event: 14
- Fork event: 4
Packages
- Total packages: 1
-
Total downloads:
- pypi 832 last-month
- Total dependent packages: 1
- Total dependent repositories: 1
- Total versions: 4
- Total maintainers: 2
pypi.org: pyiri
Python implementation of International Reference Ionosphere
- Documentation: https://pyiri.readthedocs.io/en/latest/
- License: MIT License Copyright (c) 2023 victoriyaforsythe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
Latest release: 0.0.4
published about 1 year ago
Rankings
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- fortranformat *
- matplotlib *
- numpy *