From 57d5ac928b0ef4fd9f980eaf1d2613cf07e53d7e Mon Sep 17 00:00:00 2001 From: Peter Mao Date: Fri, 7 Jan 2022 15:02:57 -0800 Subject: [PATCH 1/2] [issue #26] use AMTB instead of hmF2-old for F-peak height see https://github.com/space-physics/iri2016/issues/26 this change brings output in line with [CCMC website](https://ccmc.gsfc.nasa.gov/modelweb/models/iri2016_vitmo.php) --- src/iri2016/src/iri2016_driver.f90 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/iri2016/src/iri2016_driver.f90 b/src/iri2016/src/iri2016_driver.f90 index 71cc577..d40aed1 100644 --- a/src/iri2016/src/iri2016_driver.f90 +++ b/src/iri2016/src/iri2016_driver.f90 @@ -23,6 +23,7 @@ jf(26) = .true. ! jf(26) == jf(8) == .true. for foF2 jf(28:30) = .false. jf(33:35) = .false. +jf(39) = .false. !hmF2-old -> AMTB-model ! --- command line input if (command_argument_count() < 12) then From 065355a78b8950efab3c9bdd688f2c07de2086e6 Mon Sep 17 00:00:00 2001 From: Peter Mao Date: Fri, 7 Jan 2022 15:09:20 -0800 Subject: [PATCH 2/2] [issue #31]: call build() only on first run see https://github.com/space-physics/iri2016/issues/31 build can be explicitly called later with ``` from iri2016.build import build build() ``` --- src/iri2016/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iri2016/base.py b/src/iri2016/base.py index 1ae76be..06d0fa8 100644 --- a/src/iri2016/base.py +++ b/src/iri2016/base.py @@ -26,8 +26,8 @@ def IRI(time: str | datetime, altkmrange: list[float], glat: float, glon: float) iri_name = "iri2016_driver" if os.name == "nt": iri_name += ".exe" - - build() + if not importlib.resources.is_resource(__package__, iri_name): + build() # %% run IRI with importlib.resources.path(__package__, iri_name) as exe: cmd = [