<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing with OASIS Tables v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpub-oasis3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oasis="http://docs.oasis-open.org/ns/oasis-exchange/table" xml:lang="en" dtd-version="3.0" article-type="research-article">
  <front>
    <journal-meta><journal-id journal-id-type="publisher">ANGEO</journal-id><journal-title-group>
    <journal-title>Annales Geophysicae</journal-title>
    <abbrev-journal-title abbrev-type="publisher">ANGEO</abbrev-journal-title><abbrev-journal-title abbrev-type="nlm-ta">Ann. Geophys.</abbrev-journal-title>
  </journal-title-group><issn pub-type="epub">1432-0576</issn><publisher>
    <publisher-name>Copernicus Publications</publisher-name>
    <publisher-loc>Göttingen, Germany</publisher-loc>
  </publisher></journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.5194/angeo-44-123-2026</article-id><title-group><article-title>Effect of Ionospheric Variability on the Electron Energy Spectrum estimated from Incoherent Scatter Radar Measurements</article-title><alt-title>Effect of Ionospheric Variability on the Electron Energy Spectrum</alt-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes" rid="aff1">
          <name><surname>Stalder</surname><given-names>Oliver</given-names></name>
          <email>ostalder@outlook.com</email>
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Gustavsson</surname><given-names>Björn</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff2">
          <name><surname>Virtanen</surname><given-names>Ilkka</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-7111-8888</ext-link></contrib>
        <aff id="aff1"><label>1</label><institution>Department of Physics and Technology, University of Tromsø, Tromsø, Norway</institution>
        </aff>
        <aff id="aff2"><label>2</label><institution>Space Physics and Astronomy research unit, University of Oulu, Oulu, Finland</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Oliver Stalder (ostalder@outlook.com)</corresp></author-notes><pub-date><day>17</day><month>February</month><year>2026</year></pub-date>
      
      <volume>44</volume>
      <issue>1</issue>
      <fpage>123</fpage><lpage>135</lpage>
      <history>
        <date date-type="received"><day>19</day><month>May</month><year>2025</year></date>
           <date date-type="rev-request"><day>28</day><month>May</month><year>2025</year></date>
           <date date-type="rev-recd"><day>2</day><month>December</month><year>2025</year></date>
           <date date-type="accepted"><day>22</day><month>January</month><year>2026</year></date>
      </history>
      <permissions>
        <copyright-statement>Copyright: © 2026 Oliver Stalder et al.</copyright-statement>
        <copyright-year>2026</copyright-year>
      <license license-type="open-access"><license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p></license></permissions><self-uri xlink:href="https://angeo.copernicus.org/articles/angeo-44-123-2026.html">This article is available from https://angeo.copernicus.org/articles/angeo-44-123-2026.html</self-uri><self-uri xlink:href="https://angeo.copernicus.org/articles/angeo-44-123-2026.pdf">The full text article is available as a PDF file from https://angeo.copernicus.org/articles/angeo-44-123-2026.pdf</self-uri>
      <abstract><title>Abstract</title>

      <p id="d2e104">The ion composition in the E-region is modified by auroral precipitation. This affects the inversion of electron density profiles from field-aligned incoherent scatter radar measurements to differential energy spectra of precipitating electrons. Here a fully dynamic ionospheric chemistry model (IonChem) is developed that integrates the coupled continuity equations for 6 ion and 9 neutral species, modeling the rapid ionospheric variability during active aurora. IonChem is used to produce accurate, time-dependent recombination rates for ELSPEC to improve the inversion of electron density profiles to primary electron energy spectra. The improvement of the dynamic recombination rates on the inversion is compared with static recombination rates from the International Reference Ionosphere (IRI) and the steady-state recombination rates from an ionospheric chemistry model, FlipChem. A systematic overestimation at high electron energies can be removed using a dynamic model. The comparison with FlipChem shows that short-timescale density variations are missed in a steady-state chemistry model.</p>
  </abstract>
    </article-meta>
  </front>
<body>
      

<sec id="Ch1.S1" sec-type="intro">
  <label>1</label><title>Introduction</title>
      <p id="d2e116">The aurora is a dynamical high-latitude phenomenon caused by magnetospheric electrons and protons with energies in the range of <inline-formula><mml:math id="M1" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">keV</mml:mi></mml:mrow></mml:math></inline-formula> precipitating into the ionosphere. Precipitation leads to rapidly varying ionization, excitation and heating over a large range of spatial scales, with higher primary electron energy causing more ionization at lower heights. Precipitation also impacts the E-region substantially by inducing compositional changes and increasing conductivities. Spatial and temporal changes in ionospheric conductivities affect currents and field-aligned potentials. Precipitation can dominate power deposition at small spatial and temporal scales <xref ref-type="bibr" rid="bib1.bibx17" id="paren.1"><named-content content-type="pre">e.g.,</named-content></xref>, and, for all these reasons, plays an important role in magnetosphere-ionosphere (MI) coupling. The energy spectrum of primary electrons and its time variation make it possible to investigate the acceleration process in the magnetosphere causing aurora. Understanding the dynamics of MI coupling and the ionospheric response to rapid variation of precipitation are active research topics.</p>
      <p id="d2e132">Ground-based measurements complement in-situ observations of electron precipitation. Satellites and rockets can measure the electron energy distribution directly, but their high velocities do not allow for extended measurements at a single location. Disentangling spatial from temporal variations can be challenging, and, for satellites, the resulting spatial resolution may be limited. Incoherent Scatter Radars (ISR) can follow the temporal evolution of auroral precipitation above the radar's field of view for extended time periods. On the other hand, ISR measurements for this purpose are restricted to the magnetic zenith direction, and at high time resolutions one needs to adapt to high noise levels. Optical observations can complement ISR in the horizontal direction <xref ref-type="bibr" rid="bib1.bibx29" id="paren.2"><named-content content-type="pre">e.g.,</named-content></xref>.</p>
      <p id="d2e140">The electron energy spectrum can be estimated from the time-variation of E-region electron density profiles measured with ISR. The inversion starts from the electron continuity equation:

          <disp-formula id="Ch1.E1" content-type="numbered"><label>1</label><mml:math id="M2" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="bold-italic">v</mml:mi><mml:mi>e</mml:mi></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:msubsup><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:math></disp-formula>

        where <inline-formula><mml:math id="M3" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the ionization rate, <inline-formula><mml:math id="M4" display="inline"><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:math></inline-formula> the effective recombination rate and <inline-formula><mml:math id="M5" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold-italic">v</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the electron drift velocity. Transport of energetic electrons along the magnetic field and ionization are governed by a set of coupled linear differential equations <xref ref-type="bibr" rid="bib1.bibx13" id="paren.3"><named-content content-type="pre">e.g.,</named-content></xref>. The superposition principle applies for direct ionospheric responses such as ionization. Therefore it is possible to calculate the ionization profile as a matrix product with a discretized representation of the differential electron flux <inline-formula><mml:math id="M6" display="inline"><mml:mrow><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>(</mml:mo><mml:mi>E</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> at the top of the ionosphere:

          <disp-formula id="Ch1.E2" content-type="numbered"><label>2</label><mml:math id="M7" display="block"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi>z</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mi mathvariant="bold">A</mml:mi><mml:mo>⋅</mml:mo><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>(</mml:mo><mml:mi>E</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula>

        where <inline-formula><mml:math id="M8" display="inline"><mml:mi mathvariant="bold">A</mml:mi></mml:math></inline-formula> is the ionization-profile matrix with the ionization rates at discrete energies <inline-formula><mml:math id="M9" display="inline"><mml:mi>E</mml:mi></mml:math></inline-formula> and altitudes <inline-formula><mml:math id="M10" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> <xref ref-type="bibr" rid="bib1.bibx6 bib1.bibx23 bib1.bibx24 bib1.bibx18" id="paren.4"><named-content content-type="pre">e.g.,</named-content></xref>. Quantifying the ionization rate profile <inline-formula><mml:math id="M11" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi>z</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> makes it possible to solve for the energy spectrum <inline-formula><mml:math id="M12" display="inline"><mml:mrow><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>(</mml:mo><mml:mi>E</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>. For small-scale aurora, the convection of plasma in and out of the radar beam can be significant. However, since no full-profile multi-static velocity measurements have been available, the convective term <inline-formula><mml:math id="M13" display="inline"><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="bold-italic">v</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is usually neglected.</p>
      <p id="d2e371">The first methods to perform this inversion estimated <inline-formula><mml:math id="M14" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi>z</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>) assuming steady-state, i.e., that ion production and recombination are in balance at all times, e.g., UNTANGLE by <xref ref-type="bibr" rid="bib1.bibx34" id="text.5"/> and CARD by <xref ref-type="bibr" rid="bib1.bibx3" id="text.6"/>. <xref ref-type="bibr" rid="bib1.bibx10" id="text.7"/> first considered non-steady-state conditions in the SPECTRUM algorithm, enabling reasonable estimates even when the electron precipitation varies on time-scales shorter than the recombination time, i.e., during auroral precipitation. <xref ref-type="bibr" rid="bib1.bibx23" id="text.8"/> first formulated this as a general inverse problem and used the maximum entropy method to regularize the solution. However, these direct methods run into two problems: The amplification of measurement noise when <inline-formula><mml:math id="M15" display="inline"><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:mi mathvariant="normal">d</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M16" display="inline"><mml:mrow><mml:msubsup><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:math></inline-formula> in Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>) are taken directly from the measurements, and the ill-conditioned nature of the inverse problem from ionization profile to energy spectrum. Those are addressed with the ELSPEC method by <xref ref-type="bibr" rid="bib1.bibx33" id="text.9"/>, where the electron density is modeled by integrating the continuity equation, using Eq. (<xref ref-type="disp-formula" rid="Ch1.E2"/>) for the production term. Thereby the explicit calculation of <inline-formula><mml:math id="M17" display="inline"><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:mi mathvariant="normal">d</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:math></inline-formula> is avoided. The inversion is recast into a non-linear minimization problem, selecting for the best energy spectrum that minimizes differences between measured and modeled electron density.</p>
      <p id="d2e466">In this work we present a refined ELSPEC version, where a dynamic ionospheric composition model, IonChem, is added. IonChem integrates the continuity equation for 15 ionospheric species, capturing the full dynamics in composition even during rapidly varying auroral precipitation. This enables us to study the effects of variation in ionospheric composition and, in consequence, the effective recombination rate on the estimation of primary electron spectra from ISR data. The method we present here aims to improve the electron energy spectra estimates and to study the effects of ionospheric variation.</p>
</sec>
<sec id="Ch1.S2">
  <label>2</label><title>Method</title>
      <p id="d2e478">This section begins with a description of ELSPEC, the method used to estimate electron energy spectra from electron density profiles. The following section describes the ion chemistry model. In Sect. <xref ref-type="sec" rid="Ch1.S2.SS3"/> the coupling of IonChem into ELSPEC is explained. Next, the robustness of the technique under uncertain initial compositions is analyzed. In the last section a steady-state ion chemistry model, FlipChem, is introduced, which will be used for comparison.</p>
<sec id="Ch1.S2.SS1">
  <label>2.1</label><title>ELSPEC</title>
      <p id="d2e490">In this study, the ELSPEC algorithm <xref ref-type="bibr" rid="bib1.bibx33" id="paren.10"/> is used for inversion, extended by a robust statistics implementation (Björn Gustavsson, unpublished). ELSPEC estimates the primary electron differential number flux <inline-formula><mml:math id="M18" display="inline"><mml:mrow><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>(</mml:mo><mml:mi>E</mml:mi><mml:mo>)</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mo>[</mml:mo><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">eV</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mo>]</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> by searching for the parameterized spectrum that minimizes the corrected Akaike information criterion (cAIC). The cAIC is calculated as the residual sum-of-squares of the difference between observed (<inline-formula><mml:math id="M19" display="inline"><mml:mrow><mml:msubsup><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi><mml:mi mathvariant="normal">o</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula>) and modeled (<inline-formula><mml:math id="M20" display="inline"><mml:mrow><mml:msubsup><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula>) electron density profiles during a time period, with a cost term for the number of free parameters <inline-formula><mml:math id="M21" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> that prevents overfitting for small sample sizes:

            <disp-formula id="Ch1.E3" content-type="numbered"><label>3</label><mml:math id="M22" display="block"><mml:mrow><mml:mi mathvariant="normal">cAIC</mml:mi><mml:mo>=</mml:mo><mml:mo movablelimits="false">∑</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mfenced open="(" close=")"><mml:mrow><mml:msubsup><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi><mml:mi mathvariant="normal">o</mml:mi></mml:msubsup><mml:mo>-</mml:mo><mml:msubsup><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msubsup></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:msubsup><mml:mi mathvariant="italic">σ</mml:mi><mml:mrow><mml:msubsup><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi><mml:mi mathvariant="normal">o</mml:mi></mml:msubsup></mml:mrow><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>(</mml:mo><mml:mi>L</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>)</mml:mo><mml:mo>(</mml:mo><mml:mi>L</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mi>M</mml:mi><mml:mo>-</mml:mo><mml:mi>L</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></disp-formula>

          with <inline-formula><mml:math id="M23" display="inline"><mml:mrow><mml:msubsup><mml:mi mathvariant="italic">σ</mml:mi><mml:mrow><mml:msubsup><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi><mml:mi mathvariant="normal">o</mml:mi></mml:msubsup></mml:mrow><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:math></inline-formula> being the variance in the observed electron density, and <inline-formula><mml:math id="M24" display="inline"><mml:mi>M</mml:mi></mml:math></inline-formula> the number of measurements. The modeled electron density is obtained by integrating Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>). Allowing for a variable number of free parameters, the cAIC selects for the best-fitting parametrization of the electron spectrum. The robust statistics implementation starts with a coarse time interval, assuming a constant energy spectrum over 128 electron density profiles, in this case corresponding to <inline-formula><mml:math id="M25" display="inline"><mml:mrow><mml:mn mathvariant="normal">56</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>. The time interval is recursively refined to the point where dividing an interval is not decreasing its cAIC anymore, or the time resolution imposed by the measurements is reached.</p>
      <p id="d2e700">Typically an altitude-dependent, but time-constant recombination rate is used for the inversion. However, the effective recombination rate depends on the ion composition, in particular <inline-formula><mml:math id="M26" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M27" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, being the most abundant diatomic ions.

            <disp-formula id="Ch1.E4" content-type="numbered"><label>4</label><mml:math id="M28" display="block"><mml:mrow><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></disp-formula>

          where <inline-formula><mml:math id="M29" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M30" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are the recombination rates of <inline-formula><mml:math id="M31" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M32" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> with electrons, respectively. It has been shown that the ionospheric composition varies greatly during auroral precipitation <xref ref-type="bibr" rid="bib1.bibx8 bib1.bibx37" id="paren.11"><named-content content-type="pre">e.g.,</named-content></xref>. This impacts electron energy spectra <xref ref-type="bibr" rid="bib1.bibx33" id="paren.12"/>. Newer versions of ELSPEC account for that to some extent, allowing <inline-formula><mml:math id="M33" display="inline"><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:math></inline-formula> to be calculated with FlipChem <xref ref-type="bibr" rid="bib1.bibx19" id="paren.13"/>, a steady-state model for ionospheric composition.</p>
</sec>
<sec id="Ch1.S2.SS2">
  <label>2.2</label><title>IonChem</title>
      <p id="d2e886">To model the ionospheric response to the precipitation, the coupled continuity equations for electrons, ions and minor neutral species (<inline-formula><mml:math id="M34" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">e</mml:mi><mml:mo>-</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M35" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M36" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">N</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M37" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M38" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">N</mml:mi><mml:msup><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M39" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M40" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">O</mml:mi><mml:msup><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M41" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">H</mml:mi></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M42" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">N</mml:mi><mml:mo>(</mml:mo><mml:mn mathvariant="normal">4</mml:mn><mml:mi mathvariant="normal">S</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M43" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">N</mml:mi><mml:mo>(</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="normal">D</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M44" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">O</mml:mi><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="normal">D</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M45" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">O</mml:mi><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="normal">S</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M46" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">NO</mml:mi></mml:mrow></mml:math></inline-formula>) are integrated in time:

            <disp-formula id="Ch1.E5" content-type="numbered"><label>5</label><mml:math id="M47" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:msub><mml:mi>n</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>l</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:math></disp-formula>

          where production <inline-formula><mml:math id="M48" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and loss <inline-formula><mml:math id="M49" display="inline"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> terms for the ion species <inline-formula><mml:math id="M50" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula> are of the form

                <disp-formula specific-use="gather" content-type="numbered"><mml:math id="M51" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E6"><mml:mtd><mml:mtext>6</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi>q</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi>A</mml:mi><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:munder><mml:mo movablelimits="false">∑</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi><mml:mo>)</mml:mo><mml:mo>→</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:munder><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>n</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>n</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E7"><mml:mtd><mml:mtext>7</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi>l</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:munder><mml:mo movablelimits="false">∑</mml:mo><mml:mi>i</mml:mi></mml:munder><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>n</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

          summed over all reactions relevant for the species <inline-formula><mml:math id="M52" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula>. Convection, as for electrons, is neglected. Table <xref ref-type="table" rid="TA1a"/> shows the reactions, their rates <inline-formula><mml:math id="M53" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and yields taken into account. The reaction rates are generally temperature dependent. The ion chemistry is driven by impact ionization <inline-formula><mml:math id="M54" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi>A</mml:mi><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> of the major neutral species <xref ref-type="bibr" rid="bib1.bibx18" id="paren.14"/>:

                <disp-formula specific-use="gather" content-type="numbered"><mml:math id="M55" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E8"><mml:mtd><mml:mtext>8</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi>A</mml:mi><mml:mo>,</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">0.56</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:mi mathvariant="normal">O</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn mathvariant="normal">0.92</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.56</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:mi mathvariant="normal">O</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E9"><mml:mtd><mml:mtext>9</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi>A</mml:mi><mml:mo>,</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">0.92</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn mathvariant="normal">0.92</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.56</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:mi mathvariant="normal">O</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E10"><mml:mtd><mml:mtext>10</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi>A</mml:mi><mml:mo>,</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn mathvariant="normal">0.92</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.56</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:mi mathvariant="normal">O</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

          Density profiles of the major species (<inline-formula><mml:math id="M56" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M57" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M58" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">O</mml:mi></mml:mrow></mml:math></inline-formula>) are assumed to be unaffected by the precipitation. The initial composition is taken from the NRLMSIS2.1 and IRI-2012 models <xref ref-type="bibr" rid="bib1.bibx5 bib1.bibx2" id="paren.15"/>, or the FlipChem model.</p>
      <p id="d2e1539">The reaction rates and densities span over a wide range of magnitudes. This can lead numerical ODE solvers to choose excessively small integration steps. The integration therefore may take a long time, or fails to integrate the system of coupled, non-linear, ordinary differential equations described in Eq. (<xref ref-type="disp-formula" rid="Ch1.E5"/>)  <xref ref-type="bibr" rid="bib1.bibx16" id="paren.16"/>. This is called a stiff problem, and a stiff solver may be used to address it. Here we use the BDF solver from the Python SciPy package.</p>
</sec>
<sec id="Ch1.S2.SS3">
  <label>2.3</label><title>Coupling ELSPEC and IonChem</title>
      <p id="d2e1555">ELSPEC solves an optimization problem for every time interval over which the energy spectrum is assumed to be fixed, evaluating the cAIC many times to find the best fitting electron spectrum. Ideally, the electron continuity equation should be integrated together with the other continuity equations, as they are coupled. However, this would be computationally expensive.</p>
      <p id="d2e1558">Instead, an iterative approach was adopted, illustrated in Fig. <xref ref-type="fig" rid="F1"/>. ELSPEC only integrates the electron continuity equation, assuming fixed recombination rates over the duration of the measurement's time resolution. The electron continuity equation is thereby effectively decoupled from the ionospheric chemistry, simplifying the problem substantially. The resulting energy spectra <inline-formula><mml:math id="M59" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>i</mml:mi></mml:msup><mml:mo>(</mml:mo><mml:mi>E</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> of the <inline-formula><mml:math id="M60" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula>th iteration are used to calculate the ionization rates <inline-formula><mml:math id="M61" display="inline"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mrow><mml:mi>A</mml:mi><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow><mml:mi>i</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> in altitude and time. IonChem then uses these ionization rates to calculate the evolution of the minor species <inline-formula><mml:math id="M62" display="inline"><mml:mrow><mml:msubsup><mml:mi>n</mml:mi><mml:mi>k</mml:mi><mml:mi>i</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> and effective recombination rate <inline-formula><mml:math id="M63" display="inline"><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> for every measurement in altitude and time. The updated recombination rates are then used by ELSPEC in the <inline-formula><mml:math id="M64" display="inline"><mml:mrow><mml:mo>(</mml:mo><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>th iteration to find the optimal energy spectrum <inline-formula><mml:math id="M65" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mo>(</mml:mo><mml:mi>E</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>. When a repeated iteration over ELSPEC and IonChem converges, i.e., <inline-formula><mml:math id="M66" display="inline"><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msup><mml:mo>≈</mml:mo><mml:msup><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M67" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>i</mml:mi></mml:msup><mml:mo>(</mml:mo><mml:mi>E</mml:mi><mml:mo>)</mml:mo><mml:mo>≈</mml:mo><mml:msup><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mo>(</mml:mo><mml:mi>E</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, a solution is found.</p>

      <fig id="F1"><label>Figure 1</label><caption><p id="d2e1737">The iterative approach to resolve the computational challenge of pairing ELSPEC and IonChem is shown. ELSPEC is initialized with a model composition, and finds the optimal ionization rates. These are used by IonChem to find the ion densities, which then serve as the next model composition for ELSPEC. After several iterations <inline-formula><mml:math id="M68" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula>, the result is expected to converge.</p></caption>
          <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f01.png"/>

        </fig>

      <p id="d2e1754">The convergence of this method is shown in Fig. <xref ref-type="fig" rid="F2"/> for a test case. Over a few iterations, the effective recombination rate is converging to negligibly small deviations between iterations, measured in relative variation between iterations <inline-formula><mml:math id="M69" display="inline"><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub><mml:mo>)</mml:mo><mml:mo>/</mml:mo><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. A relative accuracy of <inline-formula><mml:math id="M70" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">7</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> is achieved, corresponding to the solver's relative accuracy setting.</p>

      <fig id="F2"><label>Figure 2</label><caption><p id="d2e1818">The relative variation in effective recombination rate between iterations <inline-formula><mml:math id="M71" display="inline"><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub><mml:mo>)</mml:mo><mml:mo>/</mml:mo><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">α</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> shows clear convergence, both in the mean over all altitude and time bins, as well as the maximum value in all bins.</p></caption>
          <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f02.png"/>

        </fig>

</sec>
<sec id="Ch1.S2.SS4">
  <label>2.4</label><title>Initial Composition</title>
      <p id="d2e1879">The system of coupled continuity equations is non-linear and can, in principle, be sensitive to the initial conditions. In addition, the ionospheric composition can change significantly during auroral precipitation. The IRI model does not account for local auroral precipitation, it represents quiet-time conditions. IonChem therefore adds 30 min in front of the data set, during which a constant ionization rate is assumed, equal to that of the first ionization rate determined by ELSPEC. The model ionosphere thereby approaches a steady-state consistent with the prevalent precipitation. Figure <xref ref-type="fig" rid="F3"/> shows the <inline-formula><mml:math id="M72" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> density and ionization rates at <inline-formula><mml:math id="M73" display="inline"><mml:mrow><mml:mn mathvariant="normal">96</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">km</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> altitude for the first iteration of ELSPEC and IonChem. ELSPEC starts at <inline-formula><mml:math id="M74" display="inline"><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>, integrating the continuity equation to determine the electron density. For the first iteration, ELSPEC initializes with IRI composition, i.e., the <inline-formula><mml:math id="M75" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> density scales linearly with the electron density. The IonChem model starts at <inline-formula><mml:math id="M76" display="inline"><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1800</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>, keeping the ionization rate constant for the first 30 min. The <inline-formula><mml:math id="M77" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> density plateaus at a steady-state until <inline-formula><mml:math id="M78" display="inline"><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>, when the ionization rate varies again.</p>

      <fig id="F3"><label>Figure 3</label><caption><p id="d2e1982">The effect of the 30 min settling phase is shown on the example of <inline-formula><mml:math id="M79" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> at <inline-formula><mml:math id="M80" display="inline"><mml:mrow><mml:mn mathvariant="normal">96</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">km</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> altitude. The orange line shows the <inline-formula><mml:math id="M81" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> density model used in ELSPEC, and the blue line shows the first iteration of IonChem. The green line shows the ionization rate. Before <inline-formula><mml:math id="M82" display="inline"><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>, the ionization rate is held constant, leading the IonChem composition to approach a steady-state, before the ionization rate is allowed to vary again.</p></caption>
          <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f03.png"/>

        </fig>

      <p id="d2e2041">For some species, such as <inline-formula><mml:math id="M83" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">NO</mml:mi></mml:mrow></mml:math></inline-formula> or <inline-formula><mml:math id="M84" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">N</mml:mi><mml:mo>(</mml:mo><mml:mn mathvariant="normal">4</mml:mn><mml:mi mathvariant="normal">S</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, 30 min will not be enough to reach steady-state. It is preferable to have a good estimate of the initial conditions, but in the limited time between auroral events, some species will never reach steady state. In a test for the implementation, IonChem was initialized with constant production rates and temperature and run until steady-state. A steady-state at constant production and without photodissociation was approached after roughly 50 h, consistent with earlier studies <xref ref-type="bibr" rid="bib1.bibx22 bib1.bibx1" id="paren.17"/>. Furthermore, the rapid variations during auroral precipitation will cause the densities to deviate further from steady-state. The exact state of the ionosphere is not known and will not be at steady-state, making it difficult to find the exact initial conditions for IonChem. A limited time to approach a steady-state allows the densities to reach reasonable levels, placing them in the right range with the prevalent conditions.</p>
      <p id="d2e2073">The robustness of this approach with regard to uncertain initial conditions is tested by running IonChem with different initial compositions, specified in Table <xref ref-type="table" rid="T1"/>. These test cases should cover a fairly wide range of possible initial conditions, while still being reasonably close to reality. Cases 1–5 change the initial ion composition while leaving the plasma density unchanged. Cases 6–8 also change the plasma density, purposely generating a state rather far from steady-state. The effect of the <inline-formula><mml:math id="M85" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">NO</mml:mi></mml:mrow></mml:math></inline-formula> initial density is investigated in cases 9–11.</p>

<table-wrap id="T1" specific-use="star"><label>Table 1</label><caption><p id="d2e2089">Start conditions.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="justify" colwidth="5cm"/>
     <oasis:colspec colnum="3" colname="col3" align="justify" colwidth="10cm"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Case</oasis:entry>
         <oasis:entry colname="col2">Initial Composition</oasis:entry>
         <oasis:entry colname="col3" align="left">Comments</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">1</oasis:entry>
         <oasis:entry colname="col2">IRI-2012, NRLMSIS2.1 composition</oasis:entry>
         <oasis:entry colname="col3" align="left">Reference for comparison.</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">2</oasis:entry>
         <oasis:entry colname="col2">Swapping <inline-formula><mml:math id="M86" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M87" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> densities compared to IRI composition.</oasis:entry>
         <oasis:entry colname="col3" align="left">During intense precipitation, the directly produced <inline-formula><mml:math id="M88" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> densities may surpass <inline-formula><mml:math id="M89" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> levels.</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">3</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M90" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3" align="left">Starting with <inline-formula><mml:math id="M91" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M92" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> ions in equal amounts at all altitudes</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">4</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M93" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IRI</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>  <inline-formula><mml:math id="M94" display="inline"><mml:mrow><mml:mo>∑</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">ions</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3" align="left">An increased fraction of <inline-formula><mml:math id="M95" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> is assumed due to ongoing precipitation. The densities of the other ions are re-scaled to maintain the plasma density.</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">5</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M96" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1.5</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IRI</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>  <inline-formula><mml:math id="M97" display="inline"><mml:mrow><mml:mo>∑</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">ions</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3" align="left">An increased fraction of <inline-formula><mml:math id="M98" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> is assumed due to ongoing precipitation. The densities of the other ions are re-scaled to maintain the plasma density.</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">6</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M99" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IRI</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>  <inline-formula><mml:math id="M100" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo>∑</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">ions</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3" align="left">An increased <inline-formula><mml:math id="M101" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> density is assumed due to ongoing precipitation. The plasma density is increased by the additional ion density.</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">7</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M102" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">i</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">i</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IRI</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>  <inline-formula><mml:math id="M103" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo>∑</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">ions</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3" align="left">All ion densities are increased. The plasma density is increased by the additional ion density.</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">8</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M104" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.002</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>  <inline-formula><mml:math id="M105" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo>∑</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">ions</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3" align="left">The starting density of <inline-formula><mml:math id="M106" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is set to be non-zero. The plasma density is increased by the additional ion density.</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">9</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M107" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:mi mathvariant="normal">NO</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">10</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mrow class="chem"><mml:mi mathvariant="normal">NO</mml:mi></mml:mrow><mml:mo>,</mml:mo><mml:mi mathvariant="normal">NRLMSIS</mml:mi><mml:mn mathvariant="normal">2.1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3" align="left">Increased NO density is assumed due to ongoing precipitation.</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">10</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M108" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:mi mathvariant="normal">NO</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">100</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mrow class="chem"><mml:mi mathvariant="normal">NO</mml:mi></mml:mrow><mml:mo>,</mml:mo><mml:mi mathvariant="normal">NRLMSIS</mml:mi><mml:mn mathvariant="normal">2.1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3" align="left">Increased NO density is assumed due to ongoing precipitation.</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">11</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M109" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:mi mathvariant="normal">NO</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3" align="left">No NO density for comparison with earlier MSIS models.</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d2e2756">All initial compositions produce very similar final ion composition variations. Figure <xref ref-type="fig" rid="F4"/> shows the <inline-formula><mml:math id="M110" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M111" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M112" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> densities for all test cases. All lines are coinciding, showing that IonChem results are robust even when the initial ion composition unknown. Uncertain initial conditions do not seem to severely impact the solutions of this non-linear problem.</p>

      <fig id="F4"><label>Figure 4</label><caption><p id="d2e2798">The integrated ion densities starting from different initial compositions are shown. The ion fractions <inline-formula><mml:math id="M113" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> of the most important ions <inline-formula><mml:math id="M114" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M115" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M116" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> are plotted for 2 different altitudes. The densities coincide for all runs, showing that all initial conditions produce the same densities.</p></caption>
          <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f04.png"/>

        </fig>

</sec>
<sec id="Ch1.S2.SS5">
  <label>2.5</label><title>FlipChem</title>
      <p id="d2e2868">To compare the effect of a dynamic ion chemistry model on the inversion, we use a steady-state ionospheric chemistry model FlipChem <xref ref-type="bibr" rid="bib1.bibx19" id="paren.18"/> for reference. FlipChem is a Python interface to the Ion Density Calculator, a steady-state model for ionospheric composition <xref ref-type="bibr" rid="bib1.bibx21 bib1.bibx20" id="paren.19"/>. It uses electron density profiles to calculate production profiles and ion densities in the lower ionosphere, under the assumption that production and losses are balanced at any time (meaning the species are in “steady-state”). It is primarily intended to calculate density variations due to slowly varying photoionisation.</p>
      <p id="d2e2877">FlipChem allows the ion composition to adjust to slow variations in ionization, a non-linear process due to the chemical reactions. In contrast, using IRI composition corresponds to a linear scaling of quiet-time ion densities.</p>
      <p id="d2e2880">Still, rapid variations in ionization may cause an imbalance of production and loss terms, causing the short-timescale dynamics to be missed under steady-state assumptions.</p>
      <p id="d2e2883">FlipChem is already implemented in newer versions of ELSPEC. Usually, it is used to calculate the ionospheric composition from the measured electron density in a pre-processing step.</p>
      <p id="d2e2887">Here, we use FlipChem to investigate the differences between a steady-state and a fully dynamic ion chemistry. To avoid propagating noise from the raw electron density measurements into the ion densities, in this work we first run ELSPEC with IRI ion composition to produce smooth electron density profiles, which are used to run FlipChem. The resulting, smooth FlipChem ion densities replace the IRI model in a second run of ELSPEC. This corresponds to a one-step iteration with the IonChem method presented above. This way, no noise in the electron density measurements affects either IonChem or FlipChem directly, making for a fairer comparison between the models.</p>
</sec>
</sec>
<sec id="Ch1.S3">
  <label>3</label><title>Results</title>
      <p id="d2e2899">To test this method and analyze the impact of ion composition variations on the electron energy spectra, we look at an event with rapid electron density variations in the E-region. Figure <xref ref-type="fig" rid="F5"/> shows enhanced electron densities when several auroral arcs passed over the radar at about <inline-formula><mml:math id="M117" display="inline"><mml:mn mathvariant="normal">50</mml:mn></mml:math></inline-formula> and <inline-formula><mml:math id="M118" display="inline"><mml:mrow><mml:mn mathvariant="normal">125</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>. The data was recorded on the 12 December 2006, 19:30–19:35 UT with the EISCAT UHF radar in Tromsø <xref ref-type="bibr" rid="bib1.bibx4" id="paren.20"/>. GUISDAP <xref ref-type="bibr" rid="bib1.bibx12" id="paren.21"/> is used to evaluate EISCAT lag profile data. A time resolution of <inline-formula><mml:math id="M119" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.44</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> in electron density is achieved, with the ISR operating in the arc1 experiment mode. At this time resolution the raw back-scattered power is used as a measure for electron density, under the assumption that electron and ion temperature are equal. The reaction rates are calculated using ion and electron temperatures estimated from the ion line spectra, integrated for <inline-formula><mml:math id="M120" display="inline"><mml:mrow><mml:mn mathvariant="normal">4</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> to achieve an acceptable noise level. They are interpolated to match the time resolution of the electron density.</p>
      <p id="d2e2954">The measured electron density as well as the ELSPEC electron density models based on IRI and on IonChem composition are shown in Fig. <xref ref-type="fig" rid="F5"/>, along with the relative variation <inline-formula><mml:math id="M121" display="inline"><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">e</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IRI</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">e</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IC</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo><mml:mo>/</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">e</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IC</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>. ELSPEC produces very similar electron densities with both composition models, modeling the measurements well in both cases.</p>

      <fig id="F5"><label>Figure 5</label><caption><p id="d2e3005">The measured electron density <bold>(a)</bold> is compared to the ELSPEC electron density models, using IRI composition <bold>(b)</bold> and IonChem composition <bold>(c)</bold>. The measurements are reproduced well in both models. The relative variation <inline-formula><mml:math id="M122" display="inline"><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">e</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IRI</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">e</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IC</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo><mml:mo>/</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">e</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IC</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> between the models in panel <bold>(d)</bold> shows that differences are small, with the biggest deviations occurring where the electron density is small.</p></caption>
        <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f05.png"/>

      </fig>

      <p id="d2e3071">The differential energy flux <inline-formula><mml:math id="M123" display="inline"><mml:mrow><mml:msub><mml:mi>I</mml:mi><mml:mi mathvariant="normal">E</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>E</mml:mi><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>(</mml:mo><mml:mi>E</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> produced using the IRI and IonChem models is shown in Fig. <xref ref-type="fig" rid="F6"/>, along with the difference <inline-formula><mml:math id="M124" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:msub><mml:mi>I</mml:mi><mml:mi mathvariant="normal">E</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>I</mml:mi><mml:mrow><mml:mi mathvariant="normal">E</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IRI</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>I</mml:mi><mml:mrow><mml:mi mathvariant="normal">E</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IC</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> between the two. For three different slices in time, the results are also shown as a line plot, with the time marked in dashed lines in panel (c). The absolute difference (c) shows systematic negative values at the high energy tail, around <inline-formula><mml:math id="M125" display="inline"><mml:mrow><mml:mn mathvariant="normal">10</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">keV</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>. The differences are substantial as can be seen in the line plots, with a relative correction of about 50 %. Therefore, using IonChem composition, ELSPEC produces a lower flux at high energies for all time intervals. This systematic difference is explained by the ratio <inline-formula><mml:math id="M126" display="inline"><mml:mrow><mml:mi>r</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, shown in Fig. <xref ref-type="fig" rid="F7"/>. The IonChem composition has a higher ratio than IRI, especially towards the lower E-region. This is expected, since IRI does not take auroral precipitation into account and therefore represents quiet conditions where <inline-formula><mml:math id="M127" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> is more abundant. During auroral precipitation, however, the direct production of <inline-formula><mml:math id="M128" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> makes it the dominant species at lower altitudes. Due to the lower recombination rate of <inline-formula><mml:math id="M129" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>, a lower flux of primary electrons is sufficient to produce the same electron density. Using the IRI composition, representing the ionosphere at a quiet state, therefore leads to a systematic bias in the energy distribution, overestimating the energy flux at higher energies.</p>

      <fig id="F6"><label>Figure 6</label><caption><p id="d2e3222">The energy flux spectrum using IRI composition <bold>(a)</bold> is compared to the one calculated with IonChem composition <bold>(b)</bold>. Panel <bold>(c)</bold> shows the difference between the IRI and IonChem derived spectra <inline-formula><mml:math id="M130" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:msub><mml:mi>I</mml:mi><mml:mi mathvariant="normal">E</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>I</mml:mi><mml:mrow><mml:mi mathvariant="normal">E</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IRI</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>I</mml:mi><mml:mrow><mml:mi mathvariant="normal">E</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IC</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>. The three lowest panels show slices at different times. Those time slices are marked with a dashed black line in panel <bold>(c)</bold>. The negative values at around <inline-formula><mml:math id="M131" display="inline"><mml:mrow><mml:mn mathvariant="normal">10</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">keV</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> in <bold>(c)</bold> show that with the IonChem model, a lower flux at higher energies is necessary to reproduce the electron density measurements. The difference is significant, reaching up to 50 %.</p></caption>
        <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f06.png"/>

      </fig>

      <fig id="F7"><label>Figure 7</label><caption><p id="d2e3298">The ratio <inline-formula><mml:math id="M132" display="inline"><mml:mrow><mml:mi>r</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is shown for <bold>(a)</bold> IRI composition and <bold>(b)</bold> IonChem composition. IonChem produces a much higher ratio at low altitudes, and also transient elevated ratios at higher altitudes. This change in <inline-formula><mml:math id="M133" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> ratio implies differences in the effective recombination rate.</p></caption>
        <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f07.png"/>

      </fig>

      <p id="d2e3373">Another comparison is made with FlipChem. Being a steady-state model, it adapts to auroral precipitation, as illustrated in Fig. <xref ref-type="fig" rid="F8"/> showing the <inline-formula><mml:math id="M134" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> density for both models. FlipChem predicts a large <inline-formula><mml:math id="M135" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> fraction, overestimating it above 120 km. Furthermore, it does not capture the short-timescale variation correctly. This can be seen during times of strong and rapidly varying precipitation, e.g. at <inline-formula><mml:math id="M136" display="inline"><mml:mrow><mml:mn mathvariant="normal">125</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> in Fig. <xref ref-type="fig" rid="F8"/>. When IonChem models a reduction in <inline-formula><mml:math id="M137" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> fraction, FlipChem sees an increase. Lastly, noise in the temperature measurements affects reaction rates, leading to different steady-state densities. The noise in temperature is thereby propagated into the FlipChem densities. The noise in temperature is not affecting IonChem densities as much, as IonChem integrates the continuity equation dynamically. With the high time resolution (in this case <inline-formula><mml:math id="M138" display="inline"><mml:mrow><mml:mn mathvariant="normal">4</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> for temperature), IonChem tends towards, but does not reach, steady-state in that interval, dampening the effect of noise in temperature. Furthermore, the noise in subsequent time bins has an equalizing effect.</p>
      <p id="d2e3444">The differential energy fluxes produced using FlipChem and IonChem are compared in Fig. <xref ref-type="fig" rid="F9"/>. Again, a systematic shift of the flux at 10–20 <inline-formula><mml:math id="M139" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">keV</mml:mi></mml:mrow></mml:math></inline-formula> to slightly lower energies can be seen at all time-steps, due to the higher <inline-formula><mml:math id="M140" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> fraction at heights below <inline-formula><mml:math id="M141" display="inline"><mml:mrow><mml:mn mathvariant="normal">100</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">km</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> in the IonChem model (see Fig. <xref ref-type="fig" rid="F8"/>). Furthermore, between 30–70 <inline-formula><mml:math id="M142" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:math></inline-formula> into the event, the flux at intermediate energies of 3–9 <inline-formula><mml:math id="M143" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">keV</mml:mi></mml:mrow></mml:math></inline-formula> increases, due to the decreased <inline-formula><mml:math id="M144" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> fraction.</p>

      <fig id="F8"><label>Figure 8</label><caption><p id="d2e3517">The top panel <bold>(a)</bold> shows the <inline-formula><mml:math id="M145" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> fraction produced by FlipChem, the middle panel <bold>(b)</bold> shows the IonChem model, and the lowest panel <bold>(c)</bold> shows the electron density for context, retrieved from the IonChem model. The noise in temperature is propagated to the fractions in the FlipChem model, causing the patches in the uppermost panel.</p></caption>
        <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f08.png"/>

      </fig>

      <fig id="F9"><label>Figure 9</label><caption><p id="d2e3550">The energy flux spectrum using FlipChem composition <bold>(a)</bold> is compared to the one calculated with IonChem composition <bold>(b)</bold>. Panel <bold>(c)</bold> shows the difference between the FlipChem and IonChem derived spectra <inline-formula><mml:math id="M146" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:msub><mml:mi>I</mml:mi><mml:mi mathvariant="normal">E</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>I</mml:mi><mml:mrow><mml:mi mathvariant="normal">E</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">FC</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>I</mml:mi><mml:mrow><mml:mi mathvariant="normal">E</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">IC</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>. The three lowest panels show a slice at different times. A systematic downshift from the highest energies (around <inline-formula><mml:math id="M147" display="inline"><mml:mrow><mml:mn mathvariant="normal">10</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">keV</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>) in each timestep can be seen. Additionally, e.g., at around 50 s, the intermediate energies around <inline-formula><mml:math id="M148" display="inline"><mml:mrow><mml:mn mathvariant="normal">5</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">keV</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> are enhanced.</p></caption>
        <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f09.png"/>

      </fig>

      <p id="d2e3630">The difference in <inline-formula><mml:math id="M149" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> fraction between the two models during strong precipitation has been investigated further, as the decrease seen in IonChem during intense precipitation might seem counterintuitive  at first. Since <inline-formula><mml:math id="M150" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> is produced directly by impact ionization, one might also expect its mixing ratio to increase. Instead, we find the <inline-formula><mml:math id="M151" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> fraction temporarily decreasing, while <inline-formula><mml:math id="M152" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M153" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> fractions are increasing, as shown in Fig. <xref ref-type="fig" rid="F10"/>.</p>
      <p id="d2e3697">To study why the <inline-formula><mml:math id="M154" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> fraction increases, while <inline-formula><mml:math id="M155" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> decreases, a simulation with constant, strong precipitation is run. IonChem is initialized with the densities found just before <inline-formula><mml:math id="M156" display="inline"><mml:mrow><mml:mn mathvariant="normal">125</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> in Fig. <xref ref-type="fig" rid="F10"/>, and the precipitation is set to what we find at <inline-formula><mml:math id="M157" display="inline"><mml:mrow><mml:mn mathvariant="normal">125</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>. Both <inline-formula><mml:math id="M158" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M159" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> densities rise, as shown in Fig. <xref ref-type="fig" rid="F11"/>. <inline-formula><mml:math id="M160" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> has a faster initial growth rate, which lowers the <inline-formula><mml:math id="M161" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M162" display="inline"><mml:mo>/</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M163" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> ratio, before it recovers. Having a higher recombination rate, <inline-formula><mml:math id="M164" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> tends to the steady-state quicker than <inline-formula><mml:math id="M165" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>. Furthermore, as atomic oxygen becomes more abundant with height, <inline-formula><mml:math id="M166" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> predominantly reacts with atomic oxygen producing <inline-formula><mml:math id="M167" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> <xref ref-type="bibr" rid="bib1.bibx30" id="paren.22"/>. The large reaction rate enables the <inline-formula><mml:math id="M168" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> fraction to increase rapidly. This causes <inline-formula><mml:math id="M169" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> to become more abundant at high altitudes. After a period of high steady ionization a steady-state with an increased <inline-formula><mml:math id="M170" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M171" display="inline"><mml:mo>/</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M172" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> mixing ratio is approached again.</p>
      <p id="d2e3925">Lastly, we find a significant <inline-formula><mml:math id="M173" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> fraction down to <inline-formula><mml:math id="M174" display="inline"><mml:mrow><mml:mn mathvariant="normal">120</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">km</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> during strong precipitation, impacting the mean ion mass (Fig. <xref ref-type="fig" rid="F10"/>). This has consequences in fitting the electron and ion temperatures in ISR measurements, as they depend on the mean ion mass. Fitting the temperatures and mean ion mass simultaneously is difficult <xref ref-type="bibr" rid="bib1.bibx35" id="paren.23"><named-content content-type="pre">e.g.,</named-content></xref>, therefore, a model for the ion mass is commonly used. Even though the surges are  short-lived, they may affect, for example, high-resolution analysis as in <xref ref-type="bibr" rid="bib1.bibx26" id="text.24"/>.</p>

      <fig id="F10"><label>Figure 10</label><caption><p id="d2e3964">The fractions of <inline-formula><mml:math id="M175" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> <bold>(a)</bold>, <inline-formula><mml:math id="M176" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> <bold>(b)</bold> and <inline-formula><mml:math id="M177" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> <bold>(c)</bold> are shown. When precipitation spikes, we find enhancements in the mixing ratio of <inline-formula><mml:math id="M178" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M179" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>. Furthermore, significant <inline-formula><mml:math id="M180" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> densities down to <inline-formula><mml:math id="M181" display="inline"><mml:mrow><mml:mn mathvariant="normal">110</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">km</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> are found. This has an effect on the mean ion mass shown in <bold>(d)</bold>.</p></caption>
        <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f10.png"/>

      </fig>

      <fig id="F11" specific-use="star"><label>Figure 11</label><caption><p id="d2e4068">The evolution of <inline-formula><mml:math id="M182" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M183" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> densities during strong precipitation is shown at two altitudes. In both cases <inline-formula><mml:math id="M184" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> tends quicker towards a steady-state, decreasing the <inline-formula><mml:math id="M185" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M186" display="inline"><mml:mo>/</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M187" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> ratio temporarily. At lower heights, <inline-formula><mml:math id="M188" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> remains the dominating species. </p></caption>
        <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-f11.png"/>

      </fig>

</sec>
<sec id="Ch1.S4">
  <label>4</label><title>Discussion</title>
      <p id="d2e4165">A new method to improve the inversion of electron density profiles to primary electron spectra is presented, that couples the fully dynamic ionospheric chemistry model IonChem with the time-dependent inversion algorithm ELSPEC. The iterative approach to simultaneously obtain electron energy spectra and ion compositions used here shows good results. It converges over a few iterations and is robust against uncertain initial conditions. The importance of using a dynamic model is shown with an example of transient effects in the <inline-formula><mml:math id="M189" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M190" display="inline"><mml:mo>/</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M191" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> ratio and the <inline-formula><mml:math id="M192" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">O</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> fraction.</p>
      <p id="d2e4210">ELSPEC presents an improvement compared to steady-state inversion procedures <xref ref-type="bibr" rid="bib1.bibx34 bib1.bibx3 bib1.bibx15 bib1.bibx9" id="paren.25"/>, as it integrates the electron continuity equation numerically without assuming balanced ionization and recombination rate at all times. Time-dependent inversion algorithms have been used, but assumed time-constant recombination rates <xref ref-type="bibr" rid="bib1.bibx10 bib1.bibx23" id="paren.26"/>. ELSPEC integrates the electron continuity equation instead of using it to explicitly calculate ionization profiles, similar to <xref ref-type="bibr" rid="bib1.bibx4" id="text.27"/>. This reduces the impact of measurement noise. Here, ELSPEC and IonChem adjust the ion composition iteratively, while <xref ref-type="bibr" rid="bib1.bibx4" id="text.28"/> used the Southampton ion-chemistry model to calculate the ion densities once, corresponding to one iteration. A similar method is used by <xref ref-type="bibr" rid="bib1.bibx28" id="text.29"/>, where the Sodankylä Ion-Neutral Chemistry model (SIC) is employed. The best-fitting ionization profile is found iteratively by integrating the coupled continuity equations of electrons and ions. The energy spectrum is then calculated using the CARD method, assuming steady-state conditions.</p>
      <p id="d2e4228">The method presented here is a tool that can help to improve studies of auroral precipitation, such as <xref ref-type="bibr" rid="bib1.bibx27" id="text.30"/>, and will be of interest for research with EISCAT_3D radar <xref ref-type="bibr" rid="bib1.bibx14" id="paren.31"/>. ELSPEC can be used to provide additional insight in conjunction with other observations, complementing the field-aligned ISR measurements, for example, with optical measurements in the horizontal direction <xref ref-type="bibr" rid="bib1.bibx36 bib1.bibx29" id="paren.32"/> or satellite conjunctions <xref ref-type="bibr" rid="bib1.bibx11" id="paren.33"/>.</p>
      <p id="d2e4243">Further improvements to the IonChem model could be made by taking production of excited states and spontaneous emissions into account; photoionization can be added to make it compatible with daylight conditions. With EISCAT_3Ds capability for volumetric measurements of both electron densities and plasma drifts, it should be possible to account for convection. Diffusion of neutral and ion species can be taken into account, in particular to account for transport of NO <xref ref-type="bibr" rid="bib1.bibx1" id="paren.34"/>. Plasmaline measurements already allow for more precise determination of electron density profiles today, see <xref ref-type="bibr" rid="bib1.bibx31" id="text.35"/>. They should become routinely available with the higher sensitivity of EISCAT_3D.</p>
</sec>
<sec id="Ch1.S5" sec-type="conclusions">
  <label>5</label><title>Conclusions</title>
      <p id="d2e4261">Improved estimates of electron energy spectra from electron density profiles can be made by combining a dynamical ion chemistry model (IonChem) with the ELSPEC algorithm. The improvement of the dynamical chemistry is that it captures the variation of the ion composition during periods of rapidly changing precipitation. We find a systematic reduction of the electron fluxes at higher energies, in our test case at around <inline-formula><mml:math id="M193" display="inline"><mml:mrow><mml:mn mathvariant="normal">10</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">keV</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>, resulting from a dynamical variation of the ion composition. The cause of this reduction is due to the variability of the <inline-formula><mml:math id="M194" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> to <inline-formula><mml:math id="M195" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> mixing ratio. We have also made a comparison between our dynamical chemistry and a steady-state chemistry, FlipChem. The results show that variations in ion composition during rapid variations of ionization captured by the dynamical chemistry are not captured by a steady-state model. A rapid increase of ionization rate leads to a faster transient response of <inline-formula><mml:math id="M196" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">NO</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> compared to <inline-formula><mml:math id="M197" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">2</mml:mn><mml:mo>+</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> density. Also here, a systematic reduction of the high energy tail is found when using a dynamic model, albeit to a lesser extend. Overall, modeling the ionospheric composition improves the quality of the inversion from electron density profiles to energy spectra.</p>
</sec>

      
      </body>
    <back><app-group>

<app id="App1.Ch1.S1">
  <label>Appendix A</label><title>Chemical reactions.</title>

<table-wrap id="TA1a"><label>Table A1</label><caption><p id="d2e4340">Chemical reactions in the E-region and reaction rates, as well as branching ratios for reactions with several possible products. From <xref ref-type="bibr" rid="bib1.bibx20" id="text.36"/> and <xref ref-type="bibr" rid="bib1.bibx18" id="text.37"/>. </p></caption>
  <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-t02-part01.png"/>
</table-wrap>

<table-wrap id="TA1b"><label>Table A1</label><caption><p id="d2e4359">Continued.</p></caption>
  <graphic xlink:href="https://angeo.copernicus.org/articles/44/123/2026/angeo-44-123-2026-t02-part02.png"/>
</table-wrap>


</app>
  </app-group><notes notes-type="codedataavailability"><title>Code and data availability</title>

      <p id="d2e4373">IonChem is an open-source software, that is easily extended with more reactions. All code is available on Github: <uri>https://github.com/ostald/juliaIC</uri> <xref ref-type="bibr" rid="bib1.bibx25" id="paren.38"/>.</p>

      <p id="d2e4382">ELSPEC is available on GitHub: <uri>https://github.com/ilkkavir/ELSPEC</uri> <xref ref-type="bibr" rid="bib1.bibx32" id="paren.39"/>. The robust statistics fork used here can be found on <uri>https://github.com/ostald/ELSPEC/tree/recursive</uri> <xref ref-type="bibr" rid="bib1.bibx7" id="paren.40"/>.</p>

      <p id="d2e4397">EISCAT data supporting this research can be found in the EISCAT archives: <uri>https://portal.eiscat.se/schedule</uri>, last access: 2 December 2023.</p>
  </notes><notes notes-type="authorcontribution"><title>Author contributions</title>

      <p id="d2e4406">OS wrote the IonChem algorithm and its integration into ELSPEC. BG and IV wrote the ELSPEC algorithm on which this work builds. Both were contributing to this project through numerous discussions and ideas. OS prepared the manuscript, with contrition from both co-authors.</p>
  </notes><notes notes-type="competinginterests"><title>Competing interests</title>

      <p id="d2e4412">The contact author has declared that none of the authors has any competing interests.</p>
  </notes><notes notes-type="disclaimer"><title>Disclaimer</title>

      <p id="d2e4418">Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. The authors bear the ultimate responsibility for providing appropriate place names. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.</p>
  </notes><ack><title>Acknowledgements</title><p id="d2e4424">EISCAT was an international association supported by research organisations in China (CRIRP), Finland (SA), Japan (NIPR and ISEE), Norway (NFR), Sweden (VR), and the United Kingdom (UKRI). EISCAT AB is now the successor.</p></ack><notes notes-type="reviewstatement"><title>Review statement</title>

      <p id="d2e4429">This paper was edited by Ana G. Elias and reviewed by two anonymous referees.</p>
  </notes><ref-list>
    <title>References</title>

      <ref id="bib1.bibx1"><label>Bailey et al.(2002)Bailey, Barth, and Solomon</label><mixed-citation>Bailey, S. M., Barth, C. A., and Solomon, S. C.: A model of nitric oxide in the lower thermosphere, Journal of Geophysical Research: Space Physics, 107, SIA 22-1–SIA 22-12, <ext-link xlink:href="https://doi.org/10.1029/2001JA000258" ext-link-type="DOI">10.1029/2001JA000258</ext-link>, 2002.</mixed-citation></ref>
      <ref id="bib1.bibx2"><label>Bilitza et al.(2014)Bilitza, Altadill, Zhang, Mertens, Truhlik, Richards, McKinnell, and Reinisch</label><mixed-citation>Bilitza, D., Altadill, D., Zhang, Y., Mertens, C., Truhlik, V., Richards, P., McKinnell, L.-A., and Reinisch, B.: The International Reference Ionosphere 2012 – a model of international collaboration, Journal of Space Weather and Space Climate, 4, A07, <ext-link xlink:href="https://doi.org/10.1051/swsc/2014004" ext-link-type="DOI">10.1051/swsc/2014004</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bibx3"><label>Brekke et al.(1989)Brekke, Hall, and Hansen</label><mixed-citation>Brekke, A., Hall, C., and Hansen, T. L.: Auroral ionospheric conductances during disturbed conditions, Annales Geophysicae, 7, 269–280, <uri>https://ui.adsabs.harvard.edu/abs/1989AnGeo...7..269B</uri> (last access: 10 August 2022),  1989.</mixed-citation></ref>
      <ref id="bib1.bibx4"><label>Dahlgren et al.(2011)Dahlgren, Gustavsson, Lanchester, Ivchenko, Brändström, Whiter, Sergienko, Sandahl, and Marklund</label><mixed-citation>Dahlgren, H., Gustavsson, B., Lanchester, B. S., Ivchenko, N., Brändström, U., Whiter, D. K., Sergienko, T., Sandahl, I., and Marklund, G.: Energy and flux variations across thin auroral arcs, Annales Geophysicae, 29, 1699–1712, <ext-link xlink:href="https://doi.org/10.5194/angeo-29-1699-2011" ext-link-type="DOI">10.5194/angeo-29-1699-2011</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bibx5"><label>Emmert et al.(2022)Emmert, Jones Jr, Siskind, Drob, Picone, Stevens, Bailey, Bender, Bernath, Funke, Hervig, and Pérot</label><mixed-citation>Emmert, J. T., Jones Jr, M., Siskind, D. E., Drob, D. P., Picone, J. M., Stevens, M. H., Bailey, S. M., Bender, S., Bernath, P. F., Funke, B., Hervig, M. E., and Pérot, K.: NRLMSIS 2.1: An Empirical Model of Nitric Oxide Incorporated Into MSIS, Journal of Geophysical Research: Space Physics, 127, e2022JA030896, <ext-link xlink:href="https://doi.org/10.1029/2022JA030896" ext-link-type="DOI">10.1029/2022JA030896</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bibx6"><label>Fang et al.(2010)Fang, Randall, Lummerzheim, Wang, Lu, Solomon, and Frahm</label><mixed-citation>Fang, X., Randall, C. E., Lummerzheim, D., Wang, W., Lu, G., Solomon, S. C., and Frahm, R. A.: Parameterization of monoenergetic electron impact ionization, Geophysical Research Letters, 37, <ext-link xlink:href="https://doi.org/10.1029/2010GL045406" ext-link-type="DOI">10.1029/2010GL045406</ext-link>, 2010.</mixed-citation></ref>
      <ref id="bib1.bibx7"><label>Gustavsson et al.(2026)</label><mixed-citation>Gustavsson, B., Virtanen, I., and Stalder, O.:  ELSPEC_recursive,  Github [data set], <uri>https://github.com/ostald/ELSPEC/tree/recursive</uri>, last access: 11 February 2026.</mixed-citation></ref>
      <ref id="bib1.bibx8"><label>Jones and Rees(1973)</label><mixed-citation>Jones, R. A. and Rees, M. H.: Time dependent studies of the aurora – I. Ion density and composition, Planetary and Space Science, 21, 537–557, <ext-link xlink:href="https://doi.org/10.1016/0032-0633(73)90069-X" ext-link-type="DOI">10.1016/0032-0633(73)90069-X</ext-link>, 1973.</mixed-citation></ref>
      <ref id="bib1.bibx9"><label>Kaeppler et al.(2015)Kaeppler, Hampton, Nicolls, Strømme, Solomon, Hecht, and Conde</label><mixed-citation>Kaeppler, S. R., Hampton, D. L., Nicolls, M. J., Strømme, A., Solomon, S. C., Hecht, J. H., and Conde, M. G.: An investigation comparing ground-based techniques that quantify auroral electron flux and conductance, Journal of Geophysical Research: Space Physics, 120, 9038–9056, <ext-link xlink:href="https://doi.org/10.1002/2015JA021396" ext-link-type="DOI">10.1002/2015JA021396</ext-link>,  2015.</mixed-citation></ref>
      <ref id="bib1.bibx10"><label>Kirkwood(1988)</label><mixed-citation>Kirkwood, S.: SPECTRUM: A computer algorithm to derive the flux-energy spectrum of precipitating particles from EISCAT electron density profiles, Tech. rep., <uri>https://ui.adsabs.harvard.edu/abs/1988scad.rept.....K</uri> (last access: 22 January 2024), 1988.</mixed-citation></ref>
      <ref id="bib1.bibx11"><label>Kirkwood and Eliasson(1990)</label><mixed-citation>Kirkwood, S. and Eliasson, L.: Energetic particle precipitation in the substorm growth phase measured by EISCAT and Viking, Journal of Geophysical Research: Space Physics, 95, 6025–6037, <ext-link xlink:href="https://doi.org/10.1029/JA095iA05p06025" ext-link-type="DOI">10.1029/JA095iA05p06025</ext-link>, 1990.</mixed-citation></ref>
      <ref id="bib1.bibx12"><label>Lehtinen and Huuskonen(1996)</label><mixed-citation>Lehtinen, M. S. and Huuskonen, A.: General incoherent scatter analysis and GUISDAP, Journal of Atmospheric and Terrestrial Physics, 58, 435–452, <ext-link xlink:href="https://doi.org/10.1016/0021-9169(95)00047-X" ext-link-type="DOI">10.1016/0021-9169(95)00047-X</ext-link>, 1996.</mixed-citation></ref>
      <ref id="bib1.bibx13"><label>Lummerzheim et al.(1989)Lummerzheim, Rees, and Anderson</label><mixed-citation>Lummerzheim, D., Rees, M. H., and Anderson, H. R.: Angular dependent transport of auroral electrons in the upper atmosphere, Planetary and Space Science, 37, 109–129, <ext-link xlink:href="https://doi.org/10.1016/0032-0633(89)90074-3" ext-link-type="DOI">10.1016/0032-0633(89)90074-3</ext-link>, 1989.</mixed-citation></ref>
      <ref id="bib1.bibx14"><label>McCrea et al.(2015)McCrea, Aikio, Alfonsi, Belova, Buchert, Clilverd, Engler, Gustavsson, Heinselman, Kero, Kosch, Lamy, Leyser, Ogawa, Oksavik, Pellinen-Wannberg, Pitout, Rapp, Stanislawska, and Vierinen</label><mixed-citation>McCrea, I., Aikio, A., Alfonsi, L., Belova, E., Buchert, S., Clilverd, M., Engler, N., Gustavsson, B., Heinselman, C., Kero, J., Kosch, M., Lamy, H., Leyser, T., Ogawa, Y., Oksavik, K., Pellinen-Wannberg, A., Pitout, F., Rapp, M., Stanislawska, I., and Vierinen, J.: The science case for the EISCAT_3D radar, Progress in Earth and Planetary Science, 2, 21, <ext-link xlink:href="https://doi.org/10.1186/s40645-015-0051-8" ext-link-type="DOI">10.1186/s40645-015-0051-8</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx15"><label>Miyoshi et al.(2015)Miyoshi, Oyama, Saito, Kurita, Fujiwara, Kataoka, Ebihara, Kletzing, Reeves, Santolik, Clilverd, Rodger, Turunen, and Tsuchiya</label><mixed-citation>Miyoshi, Y., Oyama, S., Saito, S., Kurita, S., Fujiwara, H., Kataoka, R., Ebihara, Y., Kletzing, C., Reeves, G., Santolik, O., Clilverd, M., Rodger, C. J., Turunen, E., and Tsuchiya, F.: Energetic electron precipitation associated with pulsating aurora: EISCAT and Van Allen Probe observations, Journal of Geophysical Research: Space Physics, 120, 2754–2766, <ext-link xlink:href="https://doi.org/10.1002/2014JA020690" ext-link-type="DOI">10.1002/2014JA020690</ext-link>,  2015.</mixed-citation></ref>
      <ref id="bib1.bibx16"><label>Nikolaeva et al.(2021)Nikolaeva, Gordeev, Sergienko, Makarova, and Kotikov</label><mixed-citation>Nikolaeva, V., Gordeev, E., Sergienko, T., Makarova, L., and Kotikov, A.: AIM-E: E-Region Auroral Ionosphere Model, Atmosphere, 12, 748, <ext-link xlink:href="https://doi.org/10.3390/atmos12060748" ext-link-type="DOI">10.3390/atmos12060748</ext-link>,  2021.</mixed-citation></ref>
      <ref id="bib1.bibx17"><label>Palmroth et al.(2006)Palmroth, Janhunen, Germany, Lummerzheim, Liou, Baker, Barth, Weatherwax, and Watermann</label><mixed-citation>Palmroth, M., Janhunen, P., Germany, G., Lummerzheim, D., Liou, K., Baker, D. N., Barth, C., Weatherwax, A. T., and Watermann, J.: Precipitation and total power consumption in the ionosphere: Global MHD simulation results compared with Polar and SNOE observations, Annales Geophysicae, 24, 861–872, <ext-link xlink:href="https://doi.org/10.5194/angeo-24-861-2006" ext-link-type="DOI">10.5194/angeo-24-861-2006</ext-link>, 2006.</mixed-citation></ref>
      <ref id="bib1.bibx18"><label>Rees(1989)</label><mixed-citation>Rees, M. H.: Physics and Chemistry of the Upper Atmosphere, Cambridge Atmospheric and Space Science Series, Cambridge University Press, Cambridge, ISBN 978-0-521-36848-3, <ext-link xlink:href="https://doi.org/10.1017/CBO9780511573118" ext-link-type="DOI">10.1017/CBO9780511573118</ext-link>, 1989.</mixed-citation></ref>
      <ref id="bib1.bibx19"><label>Reimer et al.(2021)Reimer, amisr user, and FGuenzkofer</label><mixed-citation>Reimer, A., amisr user, and FGuenzkofer: amisr/flipchem: v2021.2.2 Bugfix Release, Zenodo, <ext-link xlink:href="https://doi.org/10.5281/zenodo.5719844" ext-link-type="DOI">10.5281/zenodo.5719844</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bibx20"><label>Richards and Voglozin(2011)</label><mixed-citation>Richards, P. G. and Voglozin, D.: Reexamination of ionospheric photochemistry, Journal of Geophysical Research: Space Physics, 116, <ext-link xlink:href="https://doi.org/10.1029/2011JA016613" ext-link-type="DOI">10.1029/2011JA016613</ext-link>,  2011.</mixed-citation></ref>
      <ref id="bib1.bibx21"><label>Richards et al.(2010)Richards, Bilitza, and Voglozin</label><mixed-citation>Richards, P. G., Bilitza, D., and Voglozin, D.: Ion density calculator (IDC): A new efficient model of ionospheric ion densities, Radio Science, 45, <ext-link xlink:href="https://doi.org/10.1029/2009RS004332" ext-link-type="DOI">10.1029/2009RS004332</ext-link>,  2010.</mixed-citation></ref>
      <ref id="bib1.bibx22"><label>Roble and Rees(1977)</label><mixed-citation>Roble, R. G. and Rees, M. H.: Time-dependent studies of the aurora: Effects of particle precipitation on the dynamic morphology of ionospheric and atmospheric properties, Planetary and Space Science, 25, 991–1010, <ext-link xlink:href="https://doi.org/10.1016/0032-0633(77)90146-5" ext-link-type="DOI">10.1016/0032-0633(77)90146-5</ext-link>, 1977.</mixed-citation></ref>
      <ref id="bib1.bibx23"><label>Semeter and Kamalabadi(2005)</label><mixed-citation>Semeter, J. and Kamalabadi, F.: Determination of primary electron spectra from incoherent scatter radar measurements of the auroral E region, Radio Science, 40, <ext-link xlink:href="https://doi.org/10.1029/2004RS003042" ext-link-type="DOI">10.1029/2004RS003042</ext-link>,  2005.</mixed-citation></ref>
      <ref id="bib1.bibx24"><label>Sergienko and Ivanov(1993)</label><mixed-citation> Sergienko, T. and Ivanov, V.: A new approach to calculate the excitation of atmospheric gases by auroral electrons, Annales Geophysicae, 11, 717–727, 1993.</mixed-citation></ref>
      <ref id="bib1.bibx25"><label>Stalder(2026)</label><mixed-citation>Stalder, O.:  ostald/juliaIC: IonChem first release, Zenodo [code], <ext-link xlink:href="https://doi.org/10.5281/zenodo.18631983" ext-link-type="DOI">10.5281/zenodo.18631983</ext-link>, 2026.</mixed-citation></ref>
      <ref id="bib1.bibx26"><label>Tesfaw et al.(2022)Tesfaw, Virtanen, Aikio, Nel, Kosch, and Ogawa</label><mixed-citation>Tesfaw, H. W., Virtanen, I. I., Aikio, A. T., Nel, A., Kosch, M., and Ogawa, Y.: Precipitating Electron Energy Spectra and Auroral Power Estimation by Incoherent Scatter Radar With High Temporal Resolution, Journal of Geophysical Research: Space Physics, 127, e2021JA029880, <ext-link xlink:href="https://doi.org/10.1029/2021JA029880" ext-link-type="DOI">10.1029/2021JA029880</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bibx27"><label>Tesfaw et al.(2023)Tesfaw, Virtanen, and Aikio</label><mixed-citation>Tesfaw, H. W., Virtanen, I. I., and Aikio, A. T.: Characteristics of Auroral Electron Precipitation at Geomagnetic Latitude 67° Over Tromsø, Journal of Geophysical Research: Space Physics, 128, e2023JA031382, <ext-link xlink:href="https://doi.org/10.1029/2023JA031382" ext-link-type="DOI">10.1029/2023JA031382</ext-link>,  2023. </mixed-citation></ref>
      <ref id="bib1.bibx28"><label>Turunen et al.(2016)Turunen, Kero, Verronen, Miyoshi, Oyama, and Saito</label><mixed-citation>Turunen, E., Kero, A., Verronen, P. T., Miyoshi, Y., Oyama, S.-I., and Saito, S.: Mesospheric ozone destruction by high-energy electron precipitation associated with pulsating aurora, Journal of Geophysical Research: Atmospheres, 121, 11852–11861, <ext-link xlink:href="https://doi.org/10.1002/2016JD025015" ext-link-type="DOI">10.1002/2016JD025015</ext-link>,  2016.</mixed-citation></ref>
      <ref id="bib1.bibx29"><label>Tuttle et al.(2014)Tuttle, Gustavsson, and Lanchester</label><mixed-citation>Tuttle, S., Gustavsson, B., and Lanchester, B.: Temporal and spatial evolution of auroral electron energy spectra in a region surrounding the magnetic zenith, Journal of Geophysical Research: Space Physics, 119, 2318–2327, <ext-link xlink:href="https://doi.org/10.1002/2013JA019627" ext-link-type="DOI">10.1002/2013JA019627</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bibx30"><label>Ulich et al.(2000)Ulich, Turunen, and Nygrén</label><mixed-citation>Ulich, T., Turunen, E., and Nygrén, T.: Effective recombination coefficient in the lower ionosphere during bursts of auroral electrons, Advances in Space Research, 25, 47–50, <ext-link xlink:href="https://doi.org/10.1016/S0273-1177(99)00896-0" ext-link-type="DOI">10.1016/S0273-1177(99)00896-0</ext-link>, 2000.</mixed-citation></ref>
      <ref id="bib1.bibx31"><label>Vierinen et al.(2016)Vierinen, Bhatt, Hirsch, Strømme, Semeter, Zhang, and Erickson</label><mixed-citation>Vierinen, J., Bhatt, A., Hirsch, M. A., Strømme, A., Semeter, J. L., Zhang, S.-R., and Erickson, P. J.: High temporal resolution observations of auroral electron density using superthermal electron enhancement of Langmuir waves, Geophysical Research Letters, 43, 5979–5987, <ext-link xlink:href="https://doi.org/10.1002/2016GL069283" ext-link-type="DOI">10.1002/2016GL069283</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx32"><label>Virtanen and Gustavsson(2026)</label><mixed-citation>Virtanen, I. and  Gustavsson, B.: ELSPEC, Zenodo [data set], <ext-link xlink:href="https://doi.org/10.5281/zenodo.6644454" ext-link-type="DOI">10.5281/zenodo.6644454</ext-link>, 2026.</mixed-citation></ref>
      <ref id="bib1.bibx33"><label>Virtanen et al.(2018)Virtanen, Gustavsson, Aikio, Kero, Asamura, and Ogawa</label><mixed-citation>Virtanen, I. I., Gustavsson, B., Aikio, A., Kero, A., Asamura, K., and Ogawa, Y.: Electron Energy Spectrum and Auroral Power Estimation From Incoherent Scatter Radar Measurements, Journal of Geophysical Research: Space Physics, 123, 6865–6887, <ext-link xlink:href="https://doi.org/10.1029/2018JA025636" ext-link-type="DOI">10.1029/2018JA025636</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bibx34"><label>Vondrak and Baron(1977)</label><mixed-citation> Vondrak, R. and Baron, M.: A method of obtaining the energy distribution of auroral electrons from incoherent scatter radar measurements, Universitetsforlaget, Norway, iNIS Reference Number: 11499528, ISBN: 82-00-0241-0, 1977.</mixed-citation></ref>
      <ref id="bib1.bibx35"><label>Waldteufel(1971)</label><mixed-citation>Waldteufel, P.: Combined incoherent-scatter F 1-region observations, Journal of Geophysical Research, 76, 6995–6999, <ext-link xlink:href="https://doi.org/10.1029/JA076i028p06995" ext-link-type="DOI">10.1029/JA076i028p06995</ext-link>, 1971.</mixed-citation></ref>
      <ref id="bib1.bibx36"><label>Wedlund et al.(2013)Wedlund, Lamy, Gustavsson, Sergienko, and Brändström</label><mixed-citation>Wedlund, C. S., Lamy, H., Gustavsson, B., Sergienko, T., and Brändström, U.: Estimating energy spectra of electron precipitation above auroral arcs from ground-based observations with radar and optics, Journal of Geophysical Research: Space Physics, 118, 3672–3691, <ext-link xlink:href="https://doi.org/10.1002/jgra.50347" ext-link-type="DOI">10.1002/jgra.50347</ext-link>,  2013.</mixed-citation></ref>
      <ref id="bib1.bibx37"><label>Zettergren et al.(2010)Zettergren, Semeter, Burnett, Oliver, Heinselman, Blelly, and Diaz</label><mixed-citation>Zettergren, M., Semeter, J., Burnett, B., Oliver, W., Heinselman, C., Blelly, P.-L., and Diaz, M.: Dynamic variability in F-region ionospheric composition at auroral arc boundaries, Annales Geophysicae, 28, 651–664, <ext-link xlink:href="https://doi.org/10.5194/angeo-28-651-2010" ext-link-type="DOI">10.5194/angeo-28-651-2010</ext-link>, 2010.</mixed-citation></ref>

  </ref-list></back>
    <!--<article-title-html>Effect of Ionospheric Variability on the Electron Energy Spectrum estimated from Incoherent Scatter Radar Measurements</article-title-html>
<abstract-html/>
<ref-html id="bib1.bib1"><label>Bailey et al.(2002)Bailey, Barth, and Solomon</label><mixed-citation>
      
Bailey, S. M., Barth, C. A., and Solomon, S. C.: A model of nitric oxide in the
lower thermosphere, Journal of Geophysical Research: Space Physics, 107, SIA
22-1–SIA 22-12, <a href="https://doi.org/10.1029/2001JA000258" target="_blank">https://doi.org/10.1029/2001JA000258</a>, 2002.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>Bilitza et al.(2014)Bilitza, Altadill, Zhang, Mertens, Truhlik,
Richards, McKinnell, and Reinisch</label><mixed-citation>
      
Bilitza, D., Altadill, D., Zhang, Y., Mertens, C., Truhlik, V., Richards, P.,
McKinnell, L.-A., and Reinisch, B.: The International Reference
Ionosphere 2012 – a model of international collaboration, Journal of
Space Weather and Space Climate, 4, A07, <a href="https://doi.org/10.1051/swsc/2014004" target="_blank">https://doi.org/10.1051/swsc/2014004</a>,
2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>Brekke et al.(1989)Brekke, Hall, and Hansen</label><mixed-citation>
      
Brekke, A., Hall, C., and Hansen, T. L.: Auroral ionospheric conductances
during disturbed conditions, Annales Geophysicae, 7, 269–280,
<a href="https://ui.adsabs.harvard.edu/abs/1989AnGeo...7..269B" target="_blank"/> (last access: 10 August 2022),  1989.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>Dahlgren et al.(2011)Dahlgren, Gustavsson, Lanchester, Ivchenko,
Brändström, Whiter, Sergienko, Sandahl, and
Marklund</label><mixed-citation>
      
Dahlgren, H., Gustavsson, B., Lanchester, B. S., Ivchenko, N., Brändström,
U., Whiter, D. K., Sergienko, T., Sandahl, I., and Marklund, G.: Energy and
flux variations across thin auroral arcs, Annales Geophysicae, 29,
1699–1712, <a href="https://doi.org/10.5194/angeo-29-1699-2011" target="_blank">https://doi.org/10.5194/angeo-29-1699-2011</a>,
2011.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>Emmert et al.(2022)Emmert, Jones Jr, Siskind, Drob, Picone, Stevens,
Bailey, Bender, Bernath, Funke, Hervig, and Pérot</label><mixed-citation>
      
Emmert, J. T., Jones Jr, M., Siskind, D. E., Drob, D. P., Picone, J. M.,
Stevens, M. H., Bailey, S. M., Bender, S., Bernath, P. F., Funke, B., Hervig,
M. E., and Pérot, K.: NRLMSIS 2.1: An Empirical Model of Nitric
Oxide Incorporated Into MSIS, Journal of Geophysical Research: Space
Physics, 127, e2022JA030896, <a href="https://doi.org/10.1029/2022JA030896" target="_blank">https://doi.org/10.1029/2022JA030896</a>, 2022.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>Fang et al.(2010)Fang, Randall, Lummerzheim, Wang, Lu, Solomon, and
Frahm</label><mixed-citation>
      
Fang, X., Randall, C. E., Lummerzheim, D., Wang, W., Lu, G., Solomon, S. C.,
and Frahm, R. A.: Parameterization of monoenergetic electron impact
ionization, Geophysical Research Letters, 37, <a href="https://doi.org/10.1029/2010GL045406" target="_blank">https://doi.org/10.1029/2010GL045406</a>, 2010.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>Gustavsson et al.(2026)</label><mixed-citation>
      
Gustavsson, B., Virtanen, I., and Stalder, O.:  ELSPEC_recursive,  Github [data set],
<a href="https://github.com/ostald/ELSPEC/tree/recursive" target="_blank"/>, last access: 11 February 2026.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>Jones and Rees(1973)</label><mixed-citation>
      
Jones, R. A. and Rees, M. H.: Time dependent studies of the aurora – I. Ion
density and composition, Planetary and Space Science, 21, 537–557,
<a href="https://doi.org/10.1016/0032-0633(73)90069-X" target="_blank">https://doi.org/10.1016/0032-0633(73)90069-X</a>, 1973.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>Kaeppler et al.(2015)Kaeppler, Hampton, Nicolls, Strømme, Solomon,
Hecht, and Conde</label><mixed-citation>
      
Kaeppler, S. R., Hampton, D. L., Nicolls, M. J., Strømme, A., Solomon, S. C.,
Hecht, J. H., and Conde, M. G.: An investigation comparing ground-based
techniques that quantify auroral electron flux and conductance, Journal of
Geophysical Research: Space Physics, 120, 9038–9056,
<a href="https://doi.org/10.1002/2015JA021396" target="_blank">https://doi.org/10.1002/2015JA021396</a>,  2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>Kirkwood(1988)</label><mixed-citation>
      
Kirkwood, S.: SPECTRUM: A computer algorithm to derive the flux-energy
spectrum of precipitating particles from EISCAT electron density profiles,
Tech. rep.,
<a href="https://ui.adsabs.harvard.edu/abs/1988scad.rept.....K" target="_blank"/> (last access: 22 January 2024),
1988.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>Kirkwood and Eliasson(1990)</label><mixed-citation>
      
Kirkwood, S. and Eliasson, L.: Energetic particle precipitation in the substorm
growth phase measured by EISCAT and Viking, Journal of Geophysical
Research: Space Physics, 95, 6025–6037, <a href="https://doi.org/10.1029/JA095iA05p06025" target="_blank">https://doi.org/10.1029/JA095iA05p06025</a>,
1990.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>Lehtinen and Huuskonen(1996)</label><mixed-citation>
      
Lehtinen, M. S. and Huuskonen, A.: General incoherent scatter analysis and
GUISDAP, Journal of Atmospheric and Terrestrial Physics, 58, 435–452,
<a href="https://doi.org/10.1016/0021-9169(95)00047-X" target="_blank">https://doi.org/10.1016/0021-9169(95)00047-X</a>, 1996.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>Lummerzheim et al.(1989)Lummerzheim, Rees, and
Anderson</label><mixed-citation>
      
Lummerzheim, D., Rees, M. H., and Anderson, H. R.: Angular dependent transport
of auroral electrons in the upper atmosphere, Planetary and Space Science,
37, 109–129, <a href="https://doi.org/10.1016/0032-0633(89)90074-3" target="_blank">https://doi.org/10.1016/0032-0633(89)90074-3</a>, 1989.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>McCrea et al.(2015)McCrea, Aikio, Alfonsi, Belova, Buchert, Clilverd,
Engler, Gustavsson, Heinselman, Kero, Kosch, Lamy, Leyser, Ogawa, Oksavik,
Pellinen-Wannberg, Pitout, Rapp, Stanislawska, and
Vierinen</label><mixed-citation>
      
McCrea, I., Aikio, A., Alfonsi, L., Belova, E., Buchert, S., Clilverd, M.,
Engler, N., Gustavsson, B., Heinselman, C., Kero, J., Kosch, M., Lamy, H.,
Leyser, T., Ogawa, Y., Oksavik, K., Pellinen-Wannberg, A., Pitout, F., Rapp,
M., Stanislawska, I., and Vierinen, J.: The science case for the EISCAT_3D
radar, Progress in Earth and Planetary Science, 2, 21,
<a href="https://doi.org/10.1186/s40645-015-0051-8" target="_blank">https://doi.org/10.1186/s40645-015-0051-8</a>, 2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>Miyoshi et al.(2015)Miyoshi, Oyama, Saito, Kurita, Fujiwara, Kataoka,
Ebihara, Kletzing, Reeves, Santolik, Clilverd, Rodger, Turunen, and
Tsuchiya</label><mixed-citation>
      
Miyoshi, Y., Oyama, S., Saito, S., Kurita, S., Fujiwara, H., Kataoka, R.,
Ebihara, Y., Kletzing, C., Reeves, G., Santolik, O., Clilverd, M., Rodger,
C. J., Turunen, E., and Tsuchiya, F.: Energetic electron precipitation
associated with pulsating aurora: EISCAT and Van Allen Probe
observations, Journal of Geophysical Research: Space Physics, 120,
2754–2766, <a href="https://doi.org/10.1002/2014JA020690" target="_blank">https://doi.org/10.1002/2014JA020690</a>,  2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib16"><label>Nikolaeva et al.(2021)Nikolaeva, Gordeev, Sergienko, Makarova, and
Kotikov</label><mixed-citation>
      
Nikolaeva, V., Gordeev, E., Sergienko, T., Makarova, L., and Kotikov, A.:
AIM-E: E-Region Auroral Ionosphere Model, Atmosphere, 12, 748,
<a href="https://doi.org/10.3390/atmos12060748" target="_blank">https://doi.org/10.3390/atmos12060748</a>,  2021.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib17"><label>Palmroth et al.(2006)Palmroth, Janhunen, Germany, Lummerzheim, Liou,
Baker, Barth, Weatherwax, and Watermann</label><mixed-citation>
      
Palmroth, M., Janhunen, P., Germany, G., Lummerzheim, D., Liou, K., Baker,
D. N., Barth, C., Weatherwax, A. T., and Watermann, J.: Precipitation and
total power consumption in the ionosphere: Global MHD simulation results
compared with Polar and SNOE observations, Annales Geophysicae, 24,
861–872, <a href="https://doi.org/10.5194/angeo-24-861-2006" target="_blank">https://doi.org/10.5194/angeo-24-861-2006</a>, 2006.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib18"><label>Rees(1989)</label><mixed-citation>
      
Rees, M. H.: Physics and Chemistry of the Upper Atmosphere, Cambridge
Atmospheric and Space Science Series, Cambridge University Press,
Cambridge, ISBN 978-0-521-36848-3, <a href="https://doi.org/10.1017/CBO9780511573118" target="_blank">https://doi.org/10.1017/CBO9780511573118</a>, 1989.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib19"><label>Reimer et al.(2021)Reimer, amisr user, and
FGuenzkofer</label><mixed-citation>
      
Reimer, A., amisr user, and FGuenzkofer: amisr/flipchem: v2021.2.2 Bugfix
Release, Zenodo, <a href="https://doi.org/10.5281/zenodo.5719844" target="_blank">https://doi.org/10.5281/zenodo.5719844</a>, 2021.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib20"><label>Richards and Voglozin(2011)</label><mixed-citation>
      
Richards, P. G. and Voglozin, D.: Reexamination of ionospheric photochemistry,
Journal of Geophysical Research: Space Physics, 116,
<a href="https://doi.org/10.1029/2011JA016613" target="_blank">https://doi.org/10.1029/2011JA016613</a>,  2011.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib21"><label>Richards et al.(2010)Richards, Bilitza, and
Voglozin</label><mixed-citation>
      
Richards, P. G., Bilitza, D., and Voglozin, D.: Ion density calculator (IDC):
A new efficient model of ionospheric ion densities, Radio Science, 45,
<a href="https://doi.org/10.1029/2009RS004332" target="_blank">https://doi.org/10.1029/2009RS004332</a>,  2010.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib22"><label>Roble and Rees(1977)</label><mixed-citation>
      
Roble, R. G. and Rees, M. H.: Time-dependent studies of the aurora: Effects
of particle precipitation on the dynamic morphology of ionospheric and
atmospheric properties, Planetary and Space Science, 25, 991–1010,
<a href="https://doi.org/10.1016/0032-0633(77)90146-5" target="_blank">https://doi.org/10.1016/0032-0633(77)90146-5</a>, 1977.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib23"><label>Semeter and Kamalabadi(2005)</label><mixed-citation>
      
Semeter, J. and Kamalabadi, F.: Determination of primary electron spectra from
incoherent scatter radar measurements of the auroral E region, Radio
Science, 40, <a href="https://doi.org/10.1029/2004RS003042" target="_blank">https://doi.org/10.1029/2004RS003042</a>,  2005.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib24"><label>Sergienko and Ivanov(1993)</label><mixed-citation>
      
Sergienko, T. and Ivanov, V.: A new approach to calculate the excitation of
atmospheric gases by auroral electrons, Annales Geophysicae, 11, 717–727,
1993.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib25"><label>Stalder(2026)</label><mixed-citation>
      
Stalder, O.:  ostald/juliaIC: IonChem first release, Zenodo [code], <a href="https://doi.org/10.5281/zenodo.18631983" target="_blank">https://doi.org/10.5281/zenodo.18631983</a>, 2026.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib26"><label>Tesfaw et al.(2022)Tesfaw, Virtanen, Aikio, Nel, Kosch, and
Ogawa</label><mixed-citation>
      
Tesfaw, H. W., Virtanen, I. I., Aikio, A. T., Nel, A., Kosch, M., and Ogawa,
Y.: Precipitating Electron Energy Spectra and Auroral Power
Estimation by Incoherent Scatter Radar With High Temporal
Resolution, Journal of Geophysical Research: Space Physics, 127,
e2021JA029880, <a href="https://doi.org/10.1029/2021JA029880" target="_blank">https://doi.org/10.1029/2021JA029880</a>, 2022.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib27"><label>Tesfaw et al.(2023)Tesfaw, Virtanen, and
Aikio</label><mixed-citation>
      
Tesfaw, H. W., Virtanen, I. I., and Aikio, A. T.: Characteristics of Auroral
Electron Precipitation at Geomagnetic Latitude 67° Over Tromsø,
Journal of Geophysical Research: Space Physics, 128, e2023JA031382,
<a href="https://doi.org/10.1029/2023JA031382" target="_blank">https://doi.org/10.1029/2023JA031382</a>,  2023.


    </mixed-citation></ref-html>
<ref-html id="bib1.bib28"><label>Turunen et al.(2016)Turunen, Kero, Verronen, Miyoshi, Oyama, and
Saito</label><mixed-citation>
      
Turunen, E., Kero, A., Verronen, P. T., Miyoshi, Y., Oyama, S.-I., and Saito,
S.: Mesospheric ozone destruction by high-energy electron precipitation
associated with pulsating aurora, Journal of Geophysical Research:
Atmospheres, 121, 11852–11861, <a href="https://doi.org/10.1002/2016JD025015" target="_blank">https://doi.org/10.1002/2016JD025015</a>,  2016.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib29"><label>Tuttle et al.(2014)Tuttle, Gustavsson, and
Lanchester</label><mixed-citation>
      
Tuttle, S., Gustavsson, B., and Lanchester, B.: Temporal and spatial evolution
of auroral electron energy spectra in a region surrounding the magnetic
zenith, Journal of Geophysical Research: Space Physics, 119, 2318–2327,
<a href="https://doi.org/10.1002/2013JA019627" target="_blank">https://doi.org/10.1002/2013JA019627</a>, 2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib30"><label>Ulich et al.(2000)Ulich, Turunen, and Nygrén</label><mixed-citation>
      
Ulich, T., Turunen, E., and Nygrén, T.: Effective recombination coefficient in
the lower ionosphere during bursts of auroral electrons, Advances in Space
Research, 25, 47–50, <a href="https://doi.org/10.1016/S0273-1177(99)00896-0" target="_blank">https://doi.org/10.1016/S0273-1177(99)00896-0</a>, 2000.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib31"><label>Vierinen et al.(2016)Vierinen, Bhatt, Hirsch, Strømme, Semeter,
Zhang, and Erickson</label><mixed-citation>
      
Vierinen, J., Bhatt, A., Hirsch, M. A., Strømme, A., Semeter, J. L., Zhang,
S.-R., and Erickson, P. J.: High temporal resolution observations of auroral
electron density using superthermal electron enhancement of Langmuir waves,
Geophysical Research Letters, 43, 5979–5987, <a href="https://doi.org/10.1002/2016GL069283" target="_blank">https://doi.org/10.1002/2016GL069283</a>, 2016.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib32"><label>Virtanen and Gustavsson(2026)</label><mixed-citation>
      
Virtanen, I. and  Gustavsson, B.: ELSPEC, Zenodo [data set], <a href="https://doi.org/10.5281/zenodo.6644454" target="_blank">https://doi.org/10.5281/zenodo.6644454</a>, 2026.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib33"><label>Virtanen et al.(2018)Virtanen, Gustavsson, Aikio, Kero, Asamura, and
Ogawa</label><mixed-citation>
      
Virtanen, I. I., Gustavsson, B., Aikio, A., Kero, A., Asamura, K., and Ogawa,
Y.: Electron Energy Spectrum and Auroral Power Estimation From
Incoherent Scatter Radar Measurements, Journal of Geophysical
Research: Space Physics, 123, 6865–6887, <a href="https://doi.org/10.1029/2018JA025636" target="_blank">https://doi.org/10.1029/2018JA025636</a>, 2018.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib34"><label>Vondrak and Baron(1977)</label><mixed-citation>
      
Vondrak, R. and Baron, M.: A method of obtaining the energy distribution of
auroral electrons from incoherent scatter radar measurements,
Universitetsforlaget, Norway, iNIS Reference Number: 11499528, ISBN: 82-00-0241-0, 1977.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib35"><label>Waldteufel(1971)</label><mixed-citation>
      
Waldteufel, P.: Combined incoherent-scatter F 1-region observations, Journal
of Geophysical Research, 76, 6995–6999,
<a href="https://doi.org/10.1029/JA076i028p06995" target="_blank">https://doi.org/10.1029/JA076i028p06995</a>, 1971.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib36"><label>Wedlund et al.(2013)Wedlund, Lamy, Gustavsson, Sergienko, and
Brändström</label><mixed-citation>
      
Wedlund, C. S., Lamy, H., Gustavsson, B., Sergienko, T., and Brändström, U.:
Estimating energy spectra of electron precipitation above auroral arcs from
ground-based observations with radar and optics, Journal of Geophysical
Research: Space Physics, 118, 3672–3691, <a href="https://doi.org/10.1002/jgra.50347" target="_blank">https://doi.org/10.1002/jgra.50347</a>,  2013.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib37"><label>Zettergren et al.(2010)Zettergren, Semeter, Burnett, Oliver,
Heinselman, Blelly, and Diaz</label><mixed-citation>
      
Zettergren, M., Semeter, J., Burnett, B., Oliver, W., Heinselman, C., Blelly,
P.-L., and Diaz, M.: Dynamic variability in F-region ionospheric
composition at auroral arc boundaries, Annales Geophysicae, 28, 651–664,
<a href="https://doi.org/10.5194/angeo-28-651-2010" target="_blank">https://doi.org/10.5194/angeo-28-651-2010</a>, 2010.

    </mixed-citation></ref-html>--></article>
