<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing with OASIS Tables v3.0 20080202//EN" "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" dtd-version="3.0"><?xmltex \hack{\allowdisplaybreaks}?>
  <front>
    <journal-meta>
<journal-id journal-id-type="publisher">NHESS</journal-id>
<journal-title-group>
<journal-title>Natural Hazards and Earth System Sciences</journal-title>
<abbrev-journal-title abbrev-type="publisher">NHESS</abbrev-journal-title>
<abbrev-journal-title abbrev-type="nlm-ta">Nat. Hazards Earth Syst. Sci.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">1684-9981</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/nhess-17-305-2017</article-id><title-group><article-title>Spatio-temporal modelling of lightning climatologies <?xmltex \hack{\newline}?> for complex terrain</article-title>
      </title-group><?xmltex \runningtitle{Spatio-temporal modelling of lightning climatologies}?><?xmltex \runningauthor{T.~Simon et al.}?>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes" rid="aff1 aff2">
          <name><surname>Simon</surname><given-names>Thorsten</given-names></name>
          <email>thorsten.simon@uibk.ac.at</email>
        <ext-link>https://orcid.org/0000-0002-3778-7738</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff2">
          <name><surname>Umlauf</surname><given-names>Nikolaus</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff2">
          <name><surname>Zeileis</surname><given-names>Achim</given-names></name>
          
        <ext-link>https://orcid.org/0000-0003-0918-3766</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Mayr</surname><given-names>Georg J.</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-6661-9453</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff3">
          <name><surname>Schulz</surname><given-names>Wolfgang</given-names></name>
          
        <ext-link>https://orcid.org/0000-0003-1389-0607</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff3">
          <name><surname>Diendorfer</surname><given-names>Gerhard</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-1970-5452</ext-link></contrib>
        <aff id="aff1"><label>1</label><institution>Institute of Atmospheric and Cryospheric Sciences, University of Innsbruck, Innsbruck, Austria</institution>
        </aff>
        <aff id="aff2"><label>2</label><institution>Department of Statistics, University of Innsbruck, Innsbruck, Austria</institution>
        </aff>
        <aff id="aff3"><label>3</label><institution>OVE-ALDIS, Vienna, Austria</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Thorsten Simon (thorsten.simon@uibk.ac.at)</corresp></author-notes><pub-date><day>6</day><month>March</month><year>2017</year></pub-date>
      
      <volume>17</volume>
      <issue>3</issue>
      <fpage>305</fpage><lpage>314</lpage>
      <history>
        <date date-type="received"><day>1</day><month>June</month><year>2016</year></date>
           <date date-type="rev-request"><day>4</day><month>July</month><year>2016</year></date>
           <date date-type="rev-recd"><day>16</day><month>January</month><year>2017</year></date>
           <date date-type="accepted"><day>8</day><month>February</month><year>2017</year></date>
      </history>
      <permissions>
<license license-type="open-access">
<license-p>This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/3.0/">http://creativecommons.org/licenses/by/3.0/</ext-link></license-p>
</license>
</permissions><self-uri xlink:href="https://nhess.copernicus.org/articles/.html">This article is available from https://nhess.copernicus.org/articles/.html</self-uri>
<self-uri xlink:href="https://nhess.copernicus.org/articles/.pdf">The full text article is available as a PDF file from https://nhess.copernicus.org/articles/.pdf</self-uri>


      <abstract>
    <p>This study develops methods for estimating lightning climatologies on the
day<inline-formula><mml:math id="M1" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> km<inline-formula><mml:math id="M2" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> scale for regions with complex terrain and applies them
to summertime observations (2010–2015) of the lightning location system
ALDIS in the Austrian state of Carinthia in the Eastern Alps.</p>
    <p>Generalized additive models (GAMs) are used to model both the probability of
occurrence and the intensity of lightning. Additive effects are set up for
altitude, day of the year (season) and geographical location (longitude/latitude).
The performance of the models is verified by 6-fold cross-validation.</p>
    <p>The altitude effect of the occurrence model suggests higher probabilities of
lightning for locations on higher elevations. The seasonal effect peaks in
mid-July. The spatial effect models several local features, but there is a
pronounced minimum in the north-west and a clear maximum in the eastern part
of Carinthia. The estimated effects of the intensity model reveal similar
features, though they are not equal. The main difference is that the spatial
effect varies more strongly than the analogous effect of the occurrence model.</p>
    <p>A major asset of the introduced method is that the resulting climatological
information varies smoothly over space, time and altitude. Thus, the
climatology is capable of serving as a useful tool in quantitative
applications, i.e. risk assessment and weather prediction.</p>
  </abstract>
    </article-meta>
  </front>
<body>
      

<sec id="Ch1.S1" sec-type="intro">
  <title>Introduction</title>
      <p>Severe weather, associated with thunderstorms and lightning, causes
fatalities, injuries and financial losses <xref ref-type="bibr" rid="bib1.bibx4" id="paren.1"/>. Thus,
the private and the insurance sector have a strong interest in reliable
climatologies for such events, i.e. for risk assessment or as a benchmark
forecast of a warning system.</p>
      <p>Lightning is a transient, high-current (typically tens of kiloamperes)
electric discharge in the air with a typical length in kilometres. The
lightning discharge in its entirety is usually termed a lightning
flash or just a flash. Each flash typically contains several
strokes , which are the basic elements of a lightning discharge
<xref ref-type="bibr" rid="bib1.bibx17" id="paren.2"/>. Lightning flashes are rare events. Around
0.5–4 km<inline-formula><mml:math id="M3" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> yr<inline-formula><mml:math id="M4" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> occur in the Austrian Alps <xref ref-type="bibr" rid="bib1.bibx20" id="paren.3"/>.
Lightning location data that are homogeneously detected – with the same network and
selection algorithm – typically cover on the order of 10 years. Consequently
not enough data are available to compute a spatially resolved climatology on
the km<inline-formula><mml:math id="M5" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> scale by simply taking the mean of each cell – even less so if
a finer temporal resolution than yr<inline-formula><mml:math id="M6" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> is desired, which is the case for
lighting following a prominent annual cycle. Thus there is the need to
develop methods to robustly estimate lightning climatologies by exploiting
information contained not only in each analysis cell and maybe its
neighbouring cells but in the complete data set. Lightning might, e.g. depend
on the altitude of the grid cells so that combining the information from all
cells at a particular altitude band increases the sample size and leads to a
more robust estimate. Other common effects that might be exploited are
geographical location, day of the year, time of day, slope orientation,
distance from the nearest mountain ridge, etc.</p>
      <p>One possibility of harnessing the complete data set to produce a lightning
climatology in such a manner is using generalized additive models <xref ref-type="bibr" rid="bib1.bibx9 bib1.bibx25" id="paren.4"><named-content content-type="pre">GAMs; see</named-content></xref>. They can include these
common effects as additive terms. Each of these terms might be of arbitrary
complexity and represent the potentially non-linear relationship between
lightning and the covariate. An additional advantage of GAMs is the ability
for inference. It can be tested whether each of the included effects
is actually an effect – or not significant and thus not exploiting
common information in the whole data set. GAMs allow the inclusion of expert
knowledge through the choice of the covariates. GAMs have been used to
compile climatologies of extremes <xref ref-type="bibr" rid="bib1.bibx3 bib1.bibx28" id="paren.5"/> and full precipitation distributions
<xref ref-type="bibr" rid="bib1.bibx19 bib1.bibx22" id="paren.6"/>. A further benefit of GAMs is
that all the parameters of a distribution, e.g. scale and shape, can be
modelled and not only the expected value <xref ref-type="bibr" rid="bib1.bibx22" id="paren.7"/>.</p>
      <p>In this study GAMs are applied to estimate a climatology of the probability
of lightning and a climatology of the expected numbers of flashes with a
spatial resolution of 1 km<inline-formula><mml:math id="M7" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> and a temporal resolution of 1 day. They
also serve as proxies for climatologies of the occurrence of thunderstorms
<xref ref-type="bibr" rid="bib1.bibx7 bib1.bibx15 bib1.bibx13" id="paren.8"><named-content content-type="pre">e.g.</named-content></xref> and
thunderstorm intensity. The climatologies will be compiled for
a region in the south-eastern Alps.</p>
      <p>A study investigating lightning data for the period 1992 to 2001
<xref ref-type="bibr" rid="bib1.bibx20" id="paren.9"/> found that flash densities over the complex
topography of Austria vary between 0.5 and 4 flashes km<inline-formula><mml:math id="M8" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> yr<inline-formula><mml:math id="M9" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>
depending on the terrain. Data from the same lightning location system (LLS)
were also analysed to obtain thunderstorm tracks <xref ref-type="bibr" rid="bib1.bibx1" id="paren.10"/>.
The key finding is that thunderstorms are often initialized at mountains of
moderate altitude and propagate towards flat areas afterwards.</p>
      <p>Other studies focus on lightning detected in the vicinity of the Alps: a
6-year analysis of lightning detection data over Germany reveals that the highest
activity is in the northern foothills of the Alps and during the summer months,
when the number of thunderstorm days goes up to 7.5 yr<inline-formula><mml:math id="M10" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>
<xref ref-type="bibr" rid="bib1.bibx24" id="paren.11"/>. Lightning activity is also high along the southern
rim of the Alps. <xref ref-type="bibr" rid="bib1.bibx6" id="text.12"/> found ground flash densities of up to
11 flashes km<inline-formula><mml:math id="M11" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> yr<inline-formula><mml:math id="M12" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> in north-eastern Italy, which is south of our
region of interest, Carinthia.</p>
      <p>The paper is structured as follows: the lightning detection data, the
region of interest, Carinthia, and the pre-processing of the data are
described in Sect. <xref ref-type="sec" rid="Ch1.S2"/>. The methods for estimating the lightning
climatologies from the data are based on generalized additive models
(Sect. <xref ref-type="sec" rid="Ch1.S3"/>). The non-linear effects estimated for occurrence and
intensity model and exemplary climatologies are presented afterwards
(Sect. <xref ref-type="sec" rid="Ch1.S4"/>). Some special aspects of interest for end-users are
discussed in Sect. <xref ref-type="sec" rid="Ch1.S5"/>. The study is summarized and
concluded at the end of the paper (Sect. <xref ref-type="sec" rid="Ch1.S6"/>).</p>
</sec>
<sec id="Ch1.S2">
  <title>Data</title>
      <p>In this study 6 years of data (2010–2015) from the ALDIS detection network
<xref ref-type="bibr" rid="bib1.bibx20" id="paren.13"/> are included. The data within this period are
processed in real time by the same lightning location algorithm ensuring
stationarity with respect to data processing. The summer months May to August
are selected, as this is the dominant lightning season in the Eastern Alps.
The original ALDIS data contain single strokes and information on which strokes
belong to a flash. In order to analyse flashes, only the very first stroke
of a flash is taken into account. Both cloud-to-ground and intra-cloud
lightning strikes are considered, as both typically indicate thunderstorms
which are of interest in this study.</p>
      <p>ALDIS is part of the European cooperation for lightning detection (EUCLID)
<xref ref-type="bibr" rid="bib1.bibx16 bib1.bibx21" id="paren.14"/>, which bundles European
efforts in lightning detection. <xref ref-type="bibr" rid="bib1.bibx21" id="text.15"/> present an
evaluation of the performance of lightning detection in Europe and the Alps
by comparison against direct tower observations with respect to detection
efficiency, peak current estimation and location accuracy. The median
location error was found to be in the order of 100 m. Furthermore, they
show that the flash detection efficiency is greater than 96 % (100 %) if one
of the return strokes in a flash had a peak current greater than 2 kA (10 kA).
However, it is impossible to determine the detection efficiency of
intra-cloud flashes without a locally installed very high frequency (VHF) network. Thus no attempt
is made in <xref ref-type="bibr" rid="bib1.bibx21" id="text.16"/> to characterize the detection efficiency
of intra-cloud flashes.</p>
      <p>The region of interest is the state of Carinthia in the south of Austria at
the border with Italy and Slovenia. Carinthia extends 180 km in an east–west
direction and 80 km in a north–south direction. The elevation varies between
339 m and 3798 m a.m.s.l. (above mean sea level). For invoking elevation
as a covariate into the statistical model (Sect. <xref ref-type="sec" rid="Ch1.S3"/>) digital
elevation model (DEM) data <xref ref-type="bibr" rid="bib1.bibx11" id="paren.17"/>, which are on hand on a 10 m <inline-formula><mml:math id="M13" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 10 m
resolution, are averaged over 1 km <inline-formula><mml:math id="M14" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 1 km cells
(Fig. <xref ref-type="fig" rid="Ch1.F1"/>), which leads to a maximum elevation of 3419 m a.m.s.l. with
respect to this resolution. As the distribution of the altitude
is highly skewed, the logarithm of the altitude serves as covariate, which is
distributed more uniformly in the range 6 to 8.</p>
      <p>The lightning data, for May to August of the 6 years, are transferred to the
same 1 km <inline-formula><mml:math id="M15" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 1 km raster by counting the flashes within one spatial
cell and per day. This procedure yields 9904 cells and 738 days for a
total of <inline-formula><mml:math id="M16" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> <inline-formula><mml:math id="M17" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 7 309 152 data points, from which 157 440 (2.15 %) show
lightning activity. The number of cells in which a specific number of flashes
was detected decreases rapidly for increasing count numbers. The most extreme
data point has 37 flashes per cell and day (Fig. <xref ref-type="fig" rid="Ch1.F2"/>). The
mean number of detected flashes in the cells given lightning
activity is 1.75.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F1"><caption><p>Altitude of Carinthia (m a.m.s.l.) averaged over
1 km <inline-formula><mml:math id="M18" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 1 km cells. Attributes of sample locations are listed in
Table <xref ref-type="table" rid="Ch1.T1"/>. The location map shows the location of Carinthia
(black) in Austria (light grey).</p></caption>
        <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://nhess.copernicus.org/articles/17/305/2017/nhess-17-305-2017-f01.pdf"/>

      </fig>

      <?xmltex \floatpos{t}?><fig id="Ch1.F2"><caption><p>Daily frequency of 1 km <inline-formula><mml:math id="M19" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 1 km grid cells with counts of
flashes (excluding zeros). The right panel <bold>(b)</bold> zooms into the
tail of the distribution. The percentage of boxes with no flashes detected is
97.85 %.</p></caption>
        <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://nhess.copernicus.org/articles/17/305/2017/nhess-17-305-2017-f02.pdf"/>

      </fig>

      <?xmltex \floatpos{t}?><fig id="Ch1.F3"><caption><p>Empirical climatological probability of lightning for a day in July
in Carinthia on the 1 km <inline-formula><mml:math id="M20" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 1 km scale computed from counting the
days with lightning over all July days in the 6-year period and dividing by
the number of all July days.</p></caption>
        <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://nhess.copernicus.org/articles/17/305/2017/nhess-17-305-2017-f03.pdf"/>

      </fig>

      <p>Figure <xref ref-type="fig" rid="Ch1.F3"/> shows an example for a climatology based on
empirical estimates for July. Here the number of days with lightning is
divided by the total number of days for every single grid cell. While some
patterns emerge, a large amount of noise is visibly superimposed.</p>
</sec>
<sec id="Ch1.S3">
  <title>Methods</title>
      <p>This section introduces the statistical models for estimating the
climatologies for lightning occurrence and lightning intensity. The aim of
the statistical model is to explain the response, i.e. the probability of
occurrence or counts of flashes, by appropriate spatio-temporal covariates,
i.e. logarithm of the altitude (logalt), day of the year
(doy) and geographical location (lon,lat). Since the
response might non-linearly depend on the covariates, we choose generalized
additive models (GAMs) as a statistical framework, for which a brief
introduction is presented in Sect. <xref ref-type="sec" rid="Ch1.S3.SS1"/>.</p>
      <p>It is assumed that the number of flashes detected within a cell and day are
generated by a random process <inline-formula><mml:math id="M21" display="inline"><mml:mi>Y</mml:mi></mml:math></inline-formula>. Realizations of the random process are
denoted by <inline-formula><mml:math id="M22" display="inline"><mml:mrow><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M23" display="inline"><mml:mo>∈</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M24" display="inline"><mml:mo mathvariant="italic">{</mml:mo></mml:math></inline-formula>0, 1, 2, …<inline-formula><mml:math id="M25" display="inline"><mml:mo mathvariant="italic">}</mml:mo></mml:math></inline-formula>, where <inline-formula><mml:math id="M26" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula> <inline-formula><mml:math id="M27" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 1, 2, …, <inline-formula><mml:math id="M28" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> indicates the
observation. Two distinct models are set up: first, a model for the
probability of the occurrence of lightning Pr(<inline-formula><mml:math id="M29" display="inline"><mml:mi>Y</mml:mi></mml:math></inline-formula> <inline-formula><mml:math id="M30" display="inline"><mml:mo>&gt;</mml:mo></mml:math></inline-formula> 0) within a cell
and a day; second, a truncated count model to assess the expected number of
flashes within a cell given lightning activity <inline-formula><mml:math id="M31" display="inline"><mml:mrow><mml:mi>E</mml:mi><mml:mo>[</mml:mo><mml:mi>Y</mml:mi><mml:mo>|</mml:mo><mml:mi>Y</mml:mi></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M32" display="inline"><mml:mo>&gt;</mml:mo></mml:math></inline-formula> 0].
This procedure refers to a hurdle model <xref ref-type="bibr" rid="bib1.bibx14 bib1.bibx30" id="paren.18"/>
which has the further benefit to be able to handle the
large amount of zero-valued data points (97.85 %, in our case). The
occurrence model and the intensity model are specified in
Sects. <xref ref-type="sec" rid="Ch1.S3.SS2"/> and <xref ref-type="sec" rid="Ch1.S3.SS3"/>.</p>
      <p>In Sect. <xref ref-type="sec" rid="Ch1.S3.SS4"/> a short overview over the applied
verification techniques is given, i.e. cross-validation, scoring rules and bootstrapping.</p>
<sec id="Ch1.S3.SS1">
  <title>Generalized additive model</title>
      <p>The main motivation for using a GAM is the possibility to estimate
(potentially) non-linear relationships between the response and the
covariates. In the following, the basic concept of GAMs is introduced for an
arbitrary parameter <inline-formula><mml:math id="M33" display="inline"><mml:mi mathvariant="italic">θ</mml:mi></mml:math></inline-formula> of some probability density function
<inline-formula><mml:math id="M34" display="inline"><mml:mrow><mml:mi>d</mml:mi><mml:mo>(</mml:mo><mml:mo>⋅</mml:mo><mml:mo>;</mml:mo><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mi mathvariant="italic">θ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> (PDF). A GAM aiming at modelling a spatio-temporal
climatology over complex terrain would have the form,

                <disp-formula id="Ch1.E1" content-type="numbered"><mml:math id="M35" display="block"><mml:mstyle displaystyle="true" class="stylechange"/><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mi>g</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="italic">θ</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>(</mml:mo><mml:mi mathvariant="normal">logalt</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>(</mml:mo><mml:mi mathvariant="normal">doy</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub><mml:mo>(</mml:mo><mml:mi mathvariant="normal">lon</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">lat</mml:mi><mml:mo>)</mml:mo><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

          where <inline-formula><mml:math id="M36" display="inline"><mml:mrow><mml:mi>g</mml:mi><mml:mo>(</mml:mo><mml:mo>⋅</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is a link function that maps the scale of the parameter <inline-formula><mml:math id="M37" display="inline"><mml:mi mathvariant="italic">θ</mml:mi></mml:math></inline-formula>
to the real line. The right-hand side is called the additive
predictor, where <inline-formula><mml:math id="M38" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> is the intercept term and <inline-formula><mml:math id="M39" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are unspecified
(potentially) non-linear smooth functions that are modelled using regression
splines <xref ref-type="bibr" rid="bib1.bibx25 bib1.bibx5" id="paren.19"/>. For each <inline-formula><mml:math id="M40" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> a
design matrix <inline-formula><mml:math id="M41" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold">X</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> containing spline basis functions is constructed. Thus
the GAM can be written as generalized linear model (GLM),

                <disp-formula id="Ch1.E2" content-type="numbered"><mml:math id="M42" display="block"><mml:mstyle class="stylechange" displaystyle="true"/><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mi>g</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="italic">θ</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:munderover><mml:mo movablelimits="false">∑</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow><mml:mn mathvariant="normal">3</mml:mn></mml:munderover><mml:msub><mml:mi mathvariant="bold">X</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="bold-italic">β</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>

          The coefficients <inline-formula><mml:math id="M43" display="inline"><mml:mi mathvariant="bold-italic">β</mml:mi></mml:math></inline-formula> <inline-formula><mml:math id="M44" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> (<inline-formula><mml:math id="M45" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M46" display="inline"><mml:mrow><mml:msubsup><mml:mi mathvariant="bold-italic">β</mml:mi><mml:mn mathvariant="normal">1</mml:mn><mml:mo>⊤</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M47" display="inline"><mml:mrow><mml:msubsup><mml:mi mathvariant="bold-italic">β</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="M48" display="inline"><mml:mrow><mml:msubsup><mml:mi mathvariant="bold-italic">β</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>⊤</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>) are
estimated by maximizing the penalized log-likelihood,

                <disp-formula specific-use="align" content-type="numbered"><mml:math id="M49" display="block"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mi>l</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="italic">β</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>=</mml:mo><mml:munderover><mml:mo movablelimits="false">∑</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow><mml:mi>n</mml:mi></mml:munderover><mml:mi>log⁡</mml:mi><mml:mfenced open="(" close=")"><mml:mi>d</mml:mi><mml:mfenced open="(" close=")"><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>;</mml:mo><mml:msup><mml:mi>g</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mfenced close=")" open="("><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:munderover><mml:mo movablelimits="false">∑</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow><mml:mn mathvariant="normal">3</mml:mn></mml:munderover><mml:msub><mml:mi mathvariant="bold">X</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="bold-italic">β</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mfenced></mml:mfenced></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mlabeledtr id="Ch1.E3"><mml:mtd/><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:munderover><mml:mo movablelimits="false">∑</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow><mml:mn mathvariant="normal">3</mml:mn></mml:munderover><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:msubsup><mml:mi mathvariant="bold-italic">β</mml:mi><mml:mi>j</mml:mi><mml:mo>⊤</mml:mo></mml:msubsup><mml:msub><mml:mi mathvariant="bold">S</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="bold-italic">β</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

            where the first term on the right-hand side is the unpenalized
log-likelihood. The second term is added to prevent overfitting by penalizing
too-abrupt jumps of the functional forms. <inline-formula><mml:math id="M50" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are the smoothing
parameters corresponding to the functions <inline-formula><mml:math id="M51" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. For
<inline-formula><mml:math id="M52" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M53" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 0 the log-likelihood is unpenalized with respect to <inline-formula><mml:math id="M54" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. When
<inline-formula><mml:math id="M55" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M56" display="inline"><mml:mo>→</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M57" display="inline"><mml:mi mathvariant="normal">∞</mml:mi></mml:math></inline-formula> the fitting procedure will select a linear effect for <inline-formula><mml:math id="M58" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. The
selection of the smoothing parameters <inline-formula><mml:math id="M59" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is performed by
cross-validation (Sect. <xref ref-type="sec" rid="Ch1.S3.SS4"/>).</p>
      <p>The value of <inline-formula><mml:math id="M60" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> determines the degrees of freedom of the associated
effect. Lower values of <inline-formula><mml:math id="M61" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, e.g. small penalization, lead to an
effect with more degrees of freedom, which might explain more features but is
also prone to overfitting. High values of <inline-formula><mml:math id="M62" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, e.g. strong
penalization, result in an effect with fewer degrees of freedom. Thus fewer
features can be explained. The balance between small and strong penalization
and thus the corresponding degrees of freedom is found by performing
cross-validation (Sect. <xref ref-type="sec" rid="Ch1.S3.SS4"/>).</p>
      <p><inline-formula><mml:math id="M63" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold">S</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> in Eq. (<xref ref-type="disp-formula" rid="Ch1.E3"/>) are prespecified penalty matrices,
which depend on the choice of spline basis for the single terms. The reader
is referred to <xref ref-type="bibr" rid="bib1.bibx25" id="text.20"/> for more details.</p>
      <p>Estimation of a GAM for such a large data set, i.e. 7 309 152 data points, is
feasible, e.g. via function <monospace>bam</monospace>() (for big additive
models) implemented in the <bold>mgcv</bold> package <xref ref-type="bibr" rid="bib1.bibx27 bib1.bibx26" id="paren.21"/> of the statistical software R <xref ref-type="bibr" rid="bib1.bibx18" id="paren.22"/>.</p>
</sec>
<sec id="Ch1.S3.SS2">
  <title>Occurrence model</title>
      <p>The first component models the probability of lightning Pr(<inline-formula><mml:math id="M64" display="inline"><mml:mi>Y</mml:mi></mml:math></inline-formula> <inline-formula><mml:math id="M65" display="inline"><mml:mo>&gt;</mml:mo></mml:math></inline-formula> 0) <inline-formula><mml:math id="M66" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M67" display="inline"><mml:mi mathvariant="italic">π</mml:mi></mml:math></inline-formula>
occurring within a 1 km <inline-formula><mml:math id="M68" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 1 km cell and a day. The Bernoulli
distribution with the parameter <inline-formula><mml:math id="M69" display="inline"><mml:mi mathvariant="italic">π</mml:mi></mml:math></inline-formula> of the probability density function (PDF),

                <disp-formula id="Ch1.E4" content-type="numbered"><mml:math id="M70" display="block"><mml:mstyle displaystyle="true" class="stylechange"/><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi>d</mml:mi><mml:mi mathvariant="normal">Be</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi>y</mml:mi><mml:mo>;</mml:mo><mml:mi mathvariant="italic">π</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:msup><mml:mi mathvariant="italic">π</mml:mi><mml:mi>y</mml:mi></mml:msup><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mi mathvariant="italic">π</mml:mi><mml:msup><mml:mo>)</mml:mo><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

          will be fitted. Since the data are binomial, <inline-formula><mml:math id="M71" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula> <inline-formula><mml:math id="M72" display="inline"><mml:mo>∈</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M73" display="inline"><mml:mo mathvariant="italic">{</mml:mo></mml:math></inline-formula>0, 1<inline-formula><mml:math id="M74" display="inline"><mml:mo mathvariant="italic">}</mml:mo></mml:math></inline-formula> indicates no
lightning and lightning within the cells. The model for <inline-formula><mml:math id="M75" display="inline"><mml:mi mathvariant="italic">π</mml:mi></mml:math></inline-formula>
takes the form of Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>) with <inline-formula><mml:math id="M76" display="inline"><mml:mi mathvariant="italic">π</mml:mi></mml:math></inline-formula> replacing <inline-formula><mml:math id="M77" display="inline"><mml:mi mathvariant="italic">θ</mml:mi></mml:math></inline-formula>. The
complementary log-log <inline-formula><mml:math id="M78" display="inline"><mml:mrow><mml:mi>g</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="italic">π</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M79" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M80" display="inline"><mml:mrow><mml:mi>log⁡</mml:mi><mml:mo>(</mml:mo><mml:mo>-</mml:mo><mml:mi>log⁡</mml:mi></mml:mrow></mml:math></inline-formula>(1 <inline-formula><mml:math id="M81" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M82" display="inline"><mml:mrow><mml:mi mathvariant="italic">π</mml:mi><mml:mo>)</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is implemented as link function.</p>
</sec>
<sec id="Ch1.S3.SS3">
  <title>Intensity model</title>
      <p>The second part is the truncated count component for the expected number of
flashes given lightning activity. We will refer to this component as
the intensity model. It is assumed that the positive counts of flashes within
a spatial cell and day follow a zero-truncated Poisson distribution with the PDF,

                <disp-formula id="Ch1.E5" content-type="numbered"><mml:math id="M83" display="block"><mml:mstyle displaystyle="true" class="stylechange"/><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi>d</mml:mi><mml:mi mathvariant="normal">ZTP</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi>y</mml:mi><mml:mo>;</mml:mo><mml:mi mathvariant="italic">μ</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi mathvariant="normal">Pois</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="italic">μ</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mi>d</mml:mi><mml:mi mathvariant="normal">Pois</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="italic">μ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

          where <inline-formula><mml:math id="M84" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula> <inline-formula><mml:math id="M85" display="inline"><mml:mo>∈</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M86" display="inline"><mml:mo mathvariant="italic">{</mml:mo></mml:math></inline-formula>1, 2, …<inline-formula><mml:math id="M87" display="inline"><mml:mo mathvariant="italic">}</mml:mo></mml:math></inline-formula>, and <inline-formula><mml:math id="M88" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi mathvariant="normal">Pois</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mo>⋅</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">μ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is the PDF of
the Poisson distribution with expectation <inline-formula><mml:math id="M89" display="inline"><mml:mi mathvariant="italic">μ</mml:mi></mml:math></inline-formula>. The conditional expectation
is <inline-formula><mml:math id="M90" display="inline"><mml:mrow><mml:mi>E</mml:mi><mml:mo>[</mml:mo><mml:mi>Y</mml:mi><mml:mo>|</mml:mo><mml:mi>Y</mml:mi></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M91" display="inline"><mml:mo>&gt;</mml:mo></mml:math></inline-formula> 0] <inline-formula><mml:math id="M92" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M93" display="inline"><mml:mrow><mml:mi mathvariant="italic">μ</mml:mi><mml:mo>/</mml:mo></mml:mrow></mml:math></inline-formula>(1 <inline-formula><mml:math id="M94" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M95" display="inline"><mml:mrow><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mi mathvariant="italic">μ</mml:mi></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>. The GAM for this component has the
form of Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>) with <inline-formula><mml:math id="M96" display="inline"><mml:mi mathvariant="italic">μ</mml:mi></mml:math></inline-formula> replacing <inline-formula><mml:math id="M97" display="inline"><mml:mi mathvariant="italic">θ</mml:mi></mml:math></inline-formula>. The logarithm serves
as link function <inline-formula><mml:math id="M98" display="inline"><mml:mrow><mml:mi>g</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="italic">μ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M99" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M100" display="inline"><mml:mrow><mml:mi>log⁡</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="italic">μ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.</p>
      <p>The family for modelling the zero-truncated Poisson distribution
<monospace>ztpoisson</monospace>()  within a GLM or GAM framework is implemented in the
R-package <bold>countreg</bold> <xref ref-type="bibr" rid="bib1.bibx29" id="paren.23"/>. For more
information on and a formal definition of hurdle models the reader is
referred to <xref ref-type="bibr" rid="bib1.bibx30" id="text.24"/>.</p>
</sec>
<sec id="Ch1.S3.SS4">
  <title>Verification</title>
      <p>In this section the verification procedures are briefly introduced, namely
the cross-validation, the applied scores and the block-bootstrapping.</p>
      <p>In order to ensure the verification of the model along independent data, we
applied a 6-fold cross-validation <xref ref-type="bibr" rid="bib1.bibx10" id="paren.25"/>. Six years of data
are available. The parameters of the model are estimated based on 5 years of
the data and validated on the remaining year. This is done 6 times with every
single year serving as a validation period once.</p>
      <p>The log-likelihood is applied as scoring function, which is also called
logarithmic score in the literature on proper scoring rules <xref ref-type="bibr" rid="bib1.bibx8" id="paren.26"/>.</p>
      <p>To assess confidence intervals of the estimated parameters and effects,
<italic>day-wise block-bootstrapping</italic> was performed. By day-wise
block-bootstrapping we mean the following: we resample the 738 dates of all
available days with repetition and pick all the data observed on these days
spatially. This procedure is executed 1000 times in order to assess confidence intervals.</p>
</sec>
</sec>
<sec id="Ch1.S4">
  <title>Results</title>
      <p>This section presenting the results of the statistical models is structured
as follows: first, the non-linear effects of the occurrence model are
described in Sect. <xref ref-type="sec" rid="Ch1.S4.SS1"/>; second, the effects of the
intensity model are presented in Sect. <xref ref-type="sec" rid="Ch1.S4.SS2"/>. Finally, exemplary
applications illustrate in Sect. <xref ref-type="sec" rid="Ch1.S4.SS3"/> how climatological
information can be drawn from the models.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F4"><caption><p>The effects of the occurrence model on the scale of the additive
predictor. <bold>(a)</bold> The altitude (logalt) effect. Ticks on the
<inline-formula><mml:math id="M101" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula> axis are set in 100 m intervals. The grey lines show 1000 estimates from
day-wise block-bootstrapping. The solid red line is the median of the
1000 estimates, the dashed red lines are the 95 % confidence intervals.
<bold>(b)</bold> The seasonal (doy) effect. <bold>(c)</bold> The spatial
(lon,lat) effect. The plot shows the median of 1000 estimates from
day-wise block-bootstrapping. The difference between two contour lines
is 0.1. Dashed contour lines indicate negative values.</p></caption>
        <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://nhess.copernicus.org/articles/17/305/2017/nhess-17-305-2017-f04.png"/>

      </fig>

<sec id="Ch1.S4.SS1">
  <title>Occurrence model</title>
      <p>The estimates of the effect of the occurrence model (Sect. <xref ref-type="sec" rid="Ch1.S3.SS2"/>)
are depicted in Fig. <xref ref-type="fig" rid="Ch1.F4"/>. The values are on the scale of the
additive predictor, i.e. the right-hand side of Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>). The
additive predictor takes the value of the intercept term <inline-formula><mml:math id="M102" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> if the
sum of all other effects is equal to zero. Its estimate is <inline-formula><mml:math id="M103" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M104" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M105" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>3.97
(<inline-formula><mml:math id="M106" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>4.15, <inline-formula><mml:math id="M107" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>3.80) on the complementary log-log scale, which is 1.87 %
(1.56, 2.21 %) in terms of the probability of lightning. The numbers in
parentheses are the 95 % confidence intervals computed from 1000 day-wise
block-bootstrapping estimates.</p>
      <p>How the effects in Fig. <xref ref-type="fig" rid="Ch1.F4"/> can be interpreted to obtain the
probability of lightning at a particular location and day is shown for the
location E (Rosennock in Fig. <xref ref-type="fig" rid="Ch1.F1"/>) and 20 July. The location is at
an altitude of 2440 m (Table <xref ref-type="table" rid="Ch1.T1"/>), for which the altitude
effect is roughly 0.34 (Fig. <xref ref-type="fig" rid="Ch1.F4"/>a). The contribution of the
seasonal effect (Fig. <xref ref-type="fig" rid="Ch1.F4"/>b) for 20 July is about 0.64. The
spatial effect (Fig. <xref ref-type="fig" rid="Ch1.F4"/>c) has a value of <inline-formula><mml:math id="M108" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.03 at this
geographical location (13.71<inline-formula><mml:math id="M109" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> E,
46.88<inline-formula><mml:math id="M110" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N). Adding these values to the intercept
<inline-formula><mml:math id="M111" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M112" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M113" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>3.97 yields <inline-formula><mml:math id="M114" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>3.02, which is on the scale of the additive
predictor. It needs to be transferred with the inverse of the complementary
log-log function to obtain the value in probability space, which is 4.76 %.</p>
      <p>The second term <inline-formula><mml:math id="M115" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>(logalt) of the additive predictor models the
effect of the logarithm of the altitude. <inline-formula><mml:math id="M116" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>(logalt) varies from
roughly <inline-formula><mml:math id="M117" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.2 for low altitudes to values greater than 0.5 for altitudes
above 2800 m (Fig. <xref ref-type="fig" rid="Ch1.F4"/>a). This function takes 7.9 degrees
of freedom. Its shape is close to exponential, which suggests that a linear
term for the altitude might be sufficient. For altitudes above 2000 m,
however, the non-linear term leads to larger values than a linear term
<inline-formula><mml:math id="M118" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>alt would do.</p>
      <p>The temporal or seasonal effect <inline-formula><mml:math id="M119" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>(doy), i.e. the dependence of
the target on the day of the year (doy), shows a steep increase
during May, reaches its maximum in mid-July and decreases slowly during
August (Fig. <xref ref-type="fig" rid="Ch1.F4"/>b). This result indicates that the main
lightning season in Carinthia lasts from mid-June until end of August. The
estimated degrees of freedom are 2.5, which leads to the simple shape of
the seasonal effect with one clear maximum.</p>
      <p>The spatial effect <inline-formula><mml:math id="M120" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>(lon,lat), which explains the spatial
variations of the linear predictor that cannot be explained by the altitude
term <inline-formula><mml:math id="M121" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>(logalt), requires 138 degrees of freedom.
(Fig. <xref ref-type="fig" rid="Ch1.F4"/>c). Most prominent features are the minimum near the
north-west and the maximum in the middle to eastern part of Carinthia. In the
north-west the highest mountains, the High Tauern, of Carinthia are located.
The minimum with values less than <inline-formula><mml:math id="M122" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.3 on the complementary log-log scale
suggests that lightning activity is less pronounced in this region. This
finding is in line with former analyses of the lightning activity in Austria
<xref ref-type="bibr" rid="bib1.bibx23 bib1.bibx20" id="paren.27"/>, which stated that the main alpine crest
is an area with a minimum in flash density. The maximum zone with values
exceeding 0.3 in the middle to eastern part of Carinthia covers the so-called
Gurktal Alps. In comparison with the High Tauern, the Gurktal Alps have a
lower average elevation and the mountains are not as steep. Such maxima at
moderate or low altitude are mostly modelled by the spatial effect, not by the
altitude effect.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T1"><caption><p>Coordinates of the sample locations in Fig. <xref ref-type="fig" rid="Ch1.F1"/>.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="5">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="center"/>
     <oasis:colspec colnum="4" colname="col4" align="center"/>
     <oasis:colspec colnum="5" colname="col5" align="right"/>
     <oasis:thead>
       <oasis:row>  
         <oasis:entry colname="col1">Id</oasis:entry>  
         <oasis:entry colname="col2">Name</oasis:entry>  
         <oasis:entry colname="col3">Lon</oasis:entry>  
         <oasis:entry colname="col4">Lat</oasis:entry>  
         <oasis:entry colname="col5">Alt</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">  
         <oasis:entry colname="col1"/>  
         <oasis:entry colname="col2"/>  
         <oasis:entry colname="col3">(<inline-formula><mml:math id="M123" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> E)</oasis:entry>  
         <oasis:entry colname="col4">(<inline-formula><mml:math id="M124" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N)</oasis:entry>  
         <oasis:entry colname="col5">(m a.m.s.l.)</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>  
         <oasis:entry colname="col1">A</oasis:entry>  
         <oasis:entry colname="col2">Heiligenblut</oasis:entry>  
         <oasis:entry colname="col3">12.84</oasis:entry>  
         <oasis:entry colname="col4">47.04</oasis:entry>  
         <oasis:entry colname="col5">1315</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1">B</oasis:entry>  
         <oasis:entry colname="col2">Nassfeld</oasis:entry>  
         <oasis:entry colname="col3">13.28</oasis:entry>  
         <oasis:entry colname="col4">46.56</oasis:entry>  
         <oasis:entry colname="col5">1525</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1">C</oasis:entry>  
         <oasis:entry colname="col2">Dobratsch</oasis:entry>  
         <oasis:entry colname="col3">13.67</oasis:entry>  
         <oasis:entry colname="col4">46.60</oasis:entry>  
         <oasis:entry colname="col5">2166</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1">D</oasis:entry>  
         <oasis:entry colname="col2">Klagenfurt</oasis:entry>  
         <oasis:entry colname="col3">14.31</oasis:entry>  
         <oasis:entry colname="col4">46.62</oasis:entry>  
         <oasis:entry colname="col5">447</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1">E</oasis:entry>  
         <oasis:entry colname="col2">Rosennock</oasis:entry>  
         <oasis:entry colname="col3">13.71</oasis:entry>  
         <oasis:entry colname="col4">46.88</oasis:entry>  
         <oasis:entry colname="col5">2440</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <?xmltex \floatpos{t}?><fig id="Ch1.F5"><caption><p>The effects of the intensity model on the scale of the additive
predictor. Labelling is analogue to Fig. <xref ref-type="fig" rid="Ch1.F4"/>. <bold>(a)</bold> The
altitude (logalt) effect. <bold>(b)</bold> The seasonal (doy)
effect. <bold>(c)</bold> The spatial (lon,lat)
effect.</p></caption>
          <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://nhess.copernicus.org/articles/17/305/2017/nhess-17-305-2017-f05.png"/>

        </fig>

      <p>As the altitude is a function of longitude and latitude, one could ask
whether it would be sufficient to only take spatial effect into account that
implicitly contains the altitude and skip the explicit altitude effect. In
general the presented method would be capable of modelling the influence of the
altitude within the spatial effect implicitly. However, the shape of the
altitude in the region of interest is very complex. Thus, a spatial effect
with a large degree of freedom would be required in order to account for the
complex altitude shape. As we know the shape of the altitude we can pass it
to the GAM as an isolated effect. The altitude effect contains only
information associated with the altitude while the remaining effects are
captured by the spatial term.</p>
      <p><?xmltex \hack{\newpage}?>The introduced model (Eq. 1) could also be extended by potentially non-linear
functions of other covariates that are meaningful for a climatological assessment,
e.g. surface roughness, slope and aspect of topography. However, in the
present case, adding these covariates was not improving the model.</p>
</sec>
<sec id="Ch1.S4.SS2">
  <title>Intensity model</title>
      <p>The non-linear effects of the intensity model (Sect. <xref ref-type="sec" rid="Ch1.S3.SS3"/>) are
depicted in Fig. <xref ref-type="fig" rid="Ch1.F5"/>. The estimate of the intercept term takes
the value <inline-formula><mml:math id="M125" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M126" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> <inline-formula><mml:math id="M127" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.01 (<inline-formula><mml:math id="M128" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.19, 0.14) which leads to a expected number
of flashes given lightning activity of 1.57 (1.47, 1.68) when
the sum of all other effects is equal to zero.</p>
      <p>The altitude effect <inline-formula><mml:math id="M129" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>(logalt) (Fig. <xref ref-type="fig" rid="Ch1.F5"/>a), with
5.4 degrees of freedom, reveals a similar functional form as the altitude
effect of the occurrence model (Fig. <xref ref-type="fig" rid="Ch1.F4"/>a). However, it has a
flatter shape for the terrain between 600 and 1200 m and a steeper
increase for high altitudes above 2000 m a.m.s.l.</p>
      <p>The seasonal effect <inline-formula><mml:math id="M130" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>(doy) is <inline-formula><mml:math id="M131" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.5 in early May, reaches a
maximum of 0.3 in early July and decreases to values around <inline-formula><mml:math id="M132" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.3 until
the end of August (Fig. <xref ref-type="fig" rid="Ch1.F5"/>b). Thus the amplitude of this
effect is not as strong as the seasonal effect of the occurrence model
(Fig. <xref ref-type="fig" rid="Ch1.F4"/>b) and the location of the maximum is earlier. It has
2.1 degrees of freedom.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F6"><caption><p>Climatological probability (expected values) of lightning in
Carinthia on the 1 km <inline-formula><mml:math id="M133" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 1 km scale for 20 July computed with a
generalized additive model (GAM).</p></caption>
          <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://nhess.copernicus.org/articles/17/305/2017/nhess-17-305-2017-f06.pdf"/>

        </fig>

      <p>The spatial effect <inline-formula><mml:math id="M134" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>(lon,lat) varies strongly and requires
166 degrees of freedom which is more than the corresponding effect of the
occurrence model. However, there are some features in common for both effects.
For instance, the prominent maximum visible in Fig. <xref ref-type="fig" rid="Ch1.F5"/>c in
the Gurktal Alps also appears in the spatial effect of the count model
(Fig. <xref ref-type="fig" rid="Ch1.F4"/>c). The strong minimum in the western
part of the domain is also common. The most pronounced new feature is the strong local
maximum with values exceeding 0.9 in the south of Carinthia. A 165 m
radio tower is installed on the peak of the Dobratsch mountain (location C in
Fig. <xref ref-type="fig" rid="Ch1.F1"/>), which triggers lightning strokes under suitable
conditions, i.e. occurrence of a thunderstorm. Other maxima of this effect
could also be attributed to sites of radio towers, which suggests that the
number of flashes is more sensitive to local constructions than the
probability of lightning.</p>
</sec>
<sec id="Ch1.S4.SS3">
  <title>Applications</title>
      <p>In order to illustrate how climatological information can be drawn from the
GAMs, two different kinds of applications are presented. First, maps show
spatial climatologies (Figs. <xref ref-type="fig" rid="Ch1.F6"/> and <xref ref-type="fig" rid="Ch1.F7"/>).
Here, the occurrence model and/or the intensity model are evaluated for one
specific day. Second, the seasonal climatology for selected 1 km <inline-formula><mml:math id="M135" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 1 km
grid cells are discussed (Fig. <xref ref-type="fig" rid="Ch1.F8"/>). Here, the models are
evaluated with respect to the geographical location of the point of interest
and its altitude.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F7"><caption><p>Climatological number of flashes (expected values) in Carinthia on
the 1 km <inline-formula><mml:math id="M136" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 1 km scale for 20 July.</p></caption>
          <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://nhess.copernicus.org/articles/17/305/2017/nhess-17-305-2017-f07.pdf"/>

        </fig>

      <p>The spatial distribution of climatological probabilities of lightning
occurring in a cell for 20 July (close to the seasonal peak) varies from 1.8 to
6.5 % (Fig. <xref ref-type="fig" rid="Ch1.F6"/>). In the western part of the domain, local
valleys and mountain ridges become visible through the altitude effect
(Fig. <xref ref-type="fig" rid="Ch1.F4"/>a). However, the highest probabilities do not occur
over the highest terrain in the north-west, where the spatial effect
counteracts the altitude effect, leading to moderate probabilities around
2 to 3 %. The spatial effect (Fig. <xref ref-type="fig" rid="Ch1.F4"/>c) is responsible
for the maximum over the moderate altitude region of the Gurktal Alps. Such a
map can also serve as thunderstorm climatology when lightning is taken as a
proxy for thunderstorms.</p>
      <p>A comparison of Figs. <xref ref-type="fig" rid="Ch1.F6"/> and <xref ref-type="fig" rid="Ch1.F3"/>
illustrates some of the benefits of using GAMs instead of taking averages in
each grid cell for computing expected values of lightning occurrence.
Harnessing the information from the complete data set instead of using only
information contained in each grid cell removes the noise and makes the
overall pattern visible, e.g. the difference between lightning over valleys
and ridges.</p>
      <p>For the same day, 20 July, the expected number of flashes is depicted in
Fig. <xref ref-type="fig" rid="Ch1.F7"/>. This is the product of probabilities of lightning <inline-formula><mml:math id="M137" display="inline"><mml:mi mathvariant="italic">π</mml:mi></mml:math></inline-formula>
from the occurrence model and the expected number of flashes
given lightning activity, which is derived from the intensity model.
Values range from 0.028 to 0.166. The lowest values can be found in
the north-western part of Carinthia where the spatial effects of both models
reveal a minimum. Next to the maximum in the Gurktal Alps, where maxima
in the spatial effects of both models can also be found, a second peak appears at
the Dobratsch mountain (location C in Fig. <xref ref-type="fig" rid="Ch1.F1"/>), which is due to
the local maximum in the spatial effect of the intensity model (Fig. <xref ref-type="fig" rid="Ch1.F5"/>c).</p>
      <p>Next to the spatial information one can extract seasonal climatologies for
different locations (Fig. <xref ref-type="fig" rid="Ch1.F8"/>). These are computed exemplary for
five sites (Table <xref ref-type="table" rid="Ch1.T1"/>). Figure <xref ref-type="fig" rid="Ch1.F8"/>a shows the
climatologies of lightning probability. Differences between the annual cycles
of the probabilities are due to the altitude effect and the spatial effect of
the occurrence model (Fig. <xref ref-type="fig" rid="Ch1.F4"/>). The highest probabilities
between 4 and 5 % are modelled in July for location B (dashed line),
which is located at the south-western border of Carinthia in the vicinity of a
local maximum of the spatial effect (Fig. <xref ref-type="fig" rid="Ch1.F4"/>c). This
climatology exhibits a strong seasonality, as probabilities fall below the
1 % level. Though located at a similar altitude, the climatology of
location A (solid line) reveals maximum values less than 2 %. This
difference is due to the spatial effect, which exhibits a clear minimum in
north-western Carinthia. The climatology of location D (dashed dotted line) in
the lower plains in the eastern part of Carinthia shows a moderate chance of
lightning with values around 3 % during the peak of the season.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T2"><caption><p>Relative frequencies (%) of number of flashes (columns) for 20 July
of the sample locations (rows) in Fig. <xref ref-type="fig" rid="Ch1.F1"/> derived from the occurrence
and intensity GAM.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="6">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="center"/>
     <oasis:colspec colnum="3" colname="col3" align="center"/>
     <oasis:colspec colnum="4" colname="col4" align="center"/>
     <oasis:colspec colnum="5" colname="col5" align="center"/>
     <oasis:colspec colnum="6" colname="col6" align="center"/>
     <oasis:thead>
       <oasis:row rowsep="1">  
         <oasis:entry colname="col1"/>  
         <oasis:entry colname="col2">0</oasis:entry>  
         <oasis:entry colname="col3">1</oasis:entry>  
         <oasis:entry colname="col4">2</oasis:entry>  
         <oasis:entry colname="col5">3</oasis:entry>  
         <oasis:entry colname="col6"><inline-formula><mml:math id="M138" display="inline"><mml:mo>&gt;</mml:mo></mml:math></inline-formula> 4</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>  
         <oasis:entry colname="col1">A</oasis:entry>  
         <oasis:entry colname="col2">98.16</oasis:entry>  
         <oasis:entry colname="col3">1.12</oasis:entry>  
         <oasis:entry colname="col4">0.52</oasis:entry>  
         <oasis:entry colname="col5">0.16</oasis:entry>  
         <oasis:entry colname="col6">0.04</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1">B</oasis:entry>  
         <oasis:entry colname="col2">95.37</oasis:entry>  
         <oasis:entry colname="col3">1.74</oasis:entry>  
         <oasis:entry colname="col4">1.49</oasis:entry>  
         <oasis:entry colname="col5">0.86</oasis:entry>  
         <oasis:entry colname="col6">0.54</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1">C</oasis:entry>  
         <oasis:entry colname="col2">95.54</oasis:entry>  
         <oasis:entry colname="col3">0.76</oasis:entry>  
         <oasis:entry colname="col4">1.10</oasis:entry>  
         <oasis:entry colname="col5">1.06</oasis:entry>  
         <oasis:entry colname="col6">1.54</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1">D</oasis:entry>  
         <oasis:entry colname="col2">96.94</oasis:entry>  
         <oasis:entry colname="col3">1.81</oasis:entry>  
         <oasis:entry colname="col4">0.88</oasis:entry>  
         <oasis:entry colname="col5">0.28</oasis:entry>  
         <oasis:entry colname="col6">0.09</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1">E</oasis:entry>  
         <oasis:entry colname="col2">95.24</oasis:entry>  
         <oasis:entry colname="col3">2.24</oasis:entry>  
         <oasis:entry colname="col4">1.52</oasis:entry>  
         <oasis:entry colname="col5">0.69</oasis:entry>  
         <oasis:entry colname="col6">0.31</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <?xmltex \floatpos{t}?><fig id="Ch1.F8"><caption><p>Seasonal climatologies for sample locations, which are highlighted
in Fig. <xref ref-type="fig" rid="Ch1.F1"/>. <bold>(a)</bold> Occurrence model. <bold>(b)</bold> Expected
number of flashes. The legend shows expected number of flashes accumulated
over the lightning season.</p></caption>
          <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://nhess.copernicus.org/articles/17/305/2017/nhess-17-305-2017-f08.pdf"/>

        </fig>

      <p>The climatologies of the expected number of flashes are depicted in
Fig. <xref ref-type="fig" rid="Ch1.F8"/>b. The order of location has changed. In particular, the
highest number of flashes are expected for location C which is the Dobratsch
mountain. This is caused by the strong local maximum in the spatial effect of
the intensity model (Fig. <xref ref-type="fig" rid="Ch1.F5"/>c). The legend shows expected
number of flashes accumulated over the lightning season, which leads to
values between 2.1 for location A and 7.6 for location C. These values
are in good agreement with the analysis by <xref ref-type="bibr" rid="bib1.bibx20" id="text.28"><named-content content-type="post">Fig. 5 therein</named-content></xref>.</p>
      <p>Finally, it is also possible to derive relative frequencies of the number of
flashes of a specific location and day of the year from the GAM. The relative
frequencies have been derived for the five sample locations
(Table <xref ref-type="table" rid="Ch1.T2"/>). The first column of the table with the probabilities
of no flashes occurring only contains information from the occurrence model
(cf. Fig. <xref ref-type="fig" rid="Ch1.F8"/>a). All other probabilities for one or more flashes
are derived from both the occurrence and the intensity model. The influence
of the intensity model is especially dominant in the relative frequencies for
location C, where the probability of having four or more flashes on 20 July is 1.54 %.</p>
</sec>
</sec>
<sec id="Ch1.S5">
  <title>Discussion</title>
      <p>This section addresses two helpful points for end users. The first one is on
how to choose the cross-validation score in order to avoid overfitting of the
seasonal effect (technically speaking the selection of its smoothing
parameter <inline-formula><mml:math id="M139" display="inline"><mml:mi mathvariant="italic">λ</mml:mi></mml:math></inline-formula>). The second point is a discussion on how the introduced
model (Eq. <xref ref-type="disp-formula" rid="Ch1.E1"/>) can be extended towards a weather prediction tool,
i.e. for warning purposes.</p>
      <p>To illustrate the first point a subset of the large data set is
selected. We pick all data points in a 5 <inline-formula><mml:math id="M140" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 5 neighbourhood around the
location E. Thus, only 6 years <inline-formula><mml:math id="M141" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 123 days <inline-formula><mml:math id="M142" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 25 cells <inline-formula><mml:math id="M143" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 18 450 data
points remain. The probability of lightning <inline-formula><mml:math id="M144" display="inline"><mml:mi mathvariant="italic">π</mml:mi></mml:math></inline-formula> is the target
variable. Furthermore, altitude and spatial effects are omitted for
simplicity for such a small region (cf. the smooth spatial effect of the
occurrence model in Fig. <xref ref-type="fig" rid="Ch1.F4"/>c). Thus the GAM has the form,

              <disp-formula id="Ch1.E6" content-type="numbered"><mml:math id="M145" display="block"><mml:mstyle displaystyle="true" class="stylechange"/><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mi>g</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="italic">π</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">β</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:mi>f</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="normal">doy</mml:mi><mml:mo>)</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>

        The model is fitted twice: first, with the selection of the smoothing
parameter <inline-formula><mml:math id="M146" display="inline"><mml:mi mathvariant="italic">λ</mml:mi></mml:math></inline-formula> by 6-fold cross-validation where the observations made
on a single day are kept together in a block, e.g. the cross-validation
splits the 6 years <inline-formula><mml:math id="M147" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 123 days <inline-formula><mml:math id="M148" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 738 days into six parts; second,
<inline-formula><mml:math id="M149" display="inline"><mml:mi mathvariant="italic">λ</mml:mi></mml:math></inline-formula> is determined by 6-fold cross-validation without the
day-wise blocks, e.g. the cross-validation splits the
18 450 data points randomly into six parts. In both cases the maximal number
of degrees of freedom is set to 30.</p>
      <p>Figure <xref ref-type="fig" rid="Ch1.F9"/> shows the estimates of the two models. The estimate
resulting from the cross-validation with day-wise blocks is much
smoother (1.9 degrees of freedom) than the estimate resulting from the
cross-validation without daily blocks (29.9 degrees of freedom). Thus the
latter estimate takes roughly the maximal degree of freedom and is obviously overfitted.</p>
      <p>The reason for the distinct estimates lies in the dependence structure of the
data. For one cell the probability of detecting lightning on 1 day
given that lightning was detected on the previous day is 6.7 %. Spatial
dependence is much stronger. Provided that lightning occurs in one cell, the
probability of lightning occurring in the adjacent cell is 41 %. This strong
spatial dependence comes with a physical meaning. First, the preconditions
for thunderstorms and lightning to take place vary much stronger from
day to day than in the course of a single day. Second, thunderstorm systems,
i.e. multi-cell thunderstorms or super-cell thunderstorms, cover a large
area or even travel over a larger area <xref ref-type="bibr" rid="bib1.bibx12" id="paren.29"/>.</p>
      <p>For this reason we recommend exploring the dependence structure of the data
first and defining the cross-validation score according to this dependence structure.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F9"><caption><p>Local fits for the location E. Circles show empirical
estimates. For comparison the estimate of the full occurrence model is added
(dashed line). <bold>(a)</bold> Solid line is the GAM evaluated by
cross-validation with day-wise blocks. <bold>(b)</bold> Solid line is
the GAM evaluated by cross-validation without day-wise
blocks.</p></caption>
        <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://nhess.copernicus.org/articles/17/305/2017/nhess-17-305-2017-f09.pdf"/>

      </fig>

      <p>Finally, we discuss how the introduced model (Eq. <xref ref-type="disp-formula" rid="Ch1.E1"/>) can be
extended in order to serve as a weather prediction tool. It is possible to
add further predictors from a numerical weather prediction system to the
right-hand side of Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>). In the case of lightning and
thunderstorms suitable predictors could be convective inhibition energy (CIN),
convective available potential energy (CAPE), vertical shear of
horizontal winds or large scale circulation patterns
<xref ref-type="bibr" rid="bib1.bibx1 bib1.bibx2" id="paren.30"><named-content content-type="pre">e.g.</named-content></xref>. Within the GAM
framework non-linear effects and interactions of these predictors can be
modelled. Another major benefit of this procedure is that the climatology is
nested within the additive predictor. Thus the performance of the prediction
tool would be at least on the quality level of the climatology, but would not fall below.</p>
</sec>
<sec id="Ch1.S6" sec-type="conclusions">
  <title>Conclusions</title>
      <p>This study presented how generalized linear models (GAMs)
<xref ref-type="bibr" rid="bib1.bibx9 bib1.bibx25" id="paren.31"><named-content content-type="pre">e.g.</named-content></xref> provide a useful
tool for building a lightning climatology or a climatology for the occurrence
of thunderstorms. The main concept is to decompose the signal into different
effects: an altitude effect, a seasonal effect and a spatial effect. The most
beneficial aspect of this method is that smooth estimates for these effects
are obtained on such a fine spatial and temporal scale as 1 km<inline-formula><mml:math id="M150" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> and 1 day.
This makes the resulting climatology a valuable tool for quantitative
purposes, e.g. risk assessment or benchmarking in weather prediction. In
order to provide smooth effects, the method harnesses information from the
complete data set and not just separately in each cell as would be the case by
simply averaging the data. Even more effects than demonstrated in this paper
can be included, e.g. slope and aspect of topography or parameters
associated with land use. The choice of common effects allows
expert knowledge to be included. Additionally and importantly, applying GAMs will also show
which of these proposed effects is significant.</p>
      <p>A hurdle approach was employed to compute a climatology of the
intensity of lightning in order to properly handle the large number
of zeros in the data. Thus, two aspects of lightning are captured by the
models: the probability of lightning occurring and the number of flashes
detected within a grid cell. The effects of the two models are similar but
not equal. In particular, the spatial effect of the intensity model varies
more strongly than the corresponding effect of the occurrence model. For
instance, local intensity maxima are triggered in the vicinity of radio towers.</p>
      <p>In sum, the occurrence model and the count model took roughly 150 and
180 degrees of freedom, respectively. This is a relatively small number compared
to the degrees of freedom required by other methods. Counting and averaging
flashes with respect to a resolution of km<inline-formula><mml:math id="M151" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> yr<inline-formula><mml:math id="M152" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> would lead to
9904 degrees of freedom in the introduced case without capturing the seasonal
cycle. Thus the GAM approach leads to a smooth, non-linear and sparse
quantification of the climatologies.</p>
</sec>
<sec id="Ch1.S7">
  <title>Data availability</title>
      <p>ALDIS data are available on request from ALDIS (aldis@ove.at) – fees may be charged.</p>
</sec>

      
      </body>
    <back><notes notes-type="authorcontribution">

      <p>Thorsten Simon, Georg J. Mayr and Achim Zeileis defined the scientific scope
of this study. Thorsten Simon performed the statistical modelling, evaluation
of the results and wrote the paper. Georg J. Mayr provided support on the
meteorological analysis. Nikolaus Umlauf and Achim Zeileis contributed to the
development of the statistical methods. Wolfgang Schulz and
Gerhard Diendorfer were in charge of data quality and gave advice on the
lightning-related references. All authors discussed the results and commented
on the paper.</p>
  </notes><notes notes-type="competinginterests">

      <p>The authors declare that they have no conflict of interest.</p>
  </notes><ack><title>Acknowledgements</title><p>We acknowledge the funding of this work by the Austrian Research Promotion
Agency (FFG) project <italic>LightningPredict</italic> (Grant No. 846620). The
computational results presented have been achieved using the HPC
infrastructure LEO of the University of Innsbruck. Furthermore we are deeply
grateful to the editor and reviewers for their valuable comments. <?xmltex \hack{\newline}?><?xmltex \hack{\newline}?>
Edited by: A. Günther <?xmltex \hack{\newline}?>
Reviewed by: two anonymous referees</p></ack><ref-list>
    <title>References</title>

      <ref id="bib1.bibx1"><label>Bertram and Mayr(2004)</label><mixed-citation>Bertram, I. and Mayr, G. J.: Lightning in the Eastern Alps 1993–1999, Part I:
Thunderstorm tracks, Nat. Hazards Earth Syst. Sci., 4, 501–511, <ext-link xlink:href="http://dx.doi.org/10.5194/nhess-4-501-2004" ext-link-type="DOI">10.5194/nhess-4-501-2004</ext-link>, 2004.</mixed-citation></ref>
      <ref id="bib1.bibx2"><label>Chaudhuri and Middey(2012)</label><mixed-citation>Chaudhuri, S. and Middey, A.: A composite stability index for dichotomous forecast
of thunderstorms, Theor. Appl. Climatol., 110, 457–469, <ext-link xlink:href="http://dx.doi.org/10.1007/s00704-012-0640-z" ext-link-type="DOI">10.1007/s00704-012-0640-z</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx3"><label>Chavez-Demoulin and Davison(2005)</label><mixed-citation>Chavez-Demoulin, V. and Davison, A. C.: Generalized additive modelling of sample
extremes, J. Roy. Stat. Soc. Ser. C, 54, 207–222, <ext-link xlink:href="http://dx.doi.org/10.1111/j.1467-9876.2005.00479.x" ext-link-type="DOI">10.1111/j.1467-9876.2005.00479.x</ext-link>, 2005.</mixed-citation></ref>
      <ref id="bib1.bibx4"><label>Curran et al.(2000)Curran, Holle, and López</label><mixed-citation>Curran, E. B., Holle, R. L., and López, R. E.: Lightning casualties and
damages in the United States from 1959 to 1994, J. Climate, 13, 3448–3464,
<ext-link xlink:href="http://dx.doi.org/10.1175/1520-0442(2000)013&lt;3448:LCADIT&gt;2.0.CO;2" ext-link-type="DOI">10.1175/1520-0442(2000)013&lt;3448:LCADIT&gt;2.0.CO;2</ext-link>, 2000.</mixed-citation></ref>
      <ref id="bib1.bibx5"><label>Fahrmeir et al.(2013)Fahrmeir, Kneib, Lang, and Marx</label><mixed-citation>Fahrmeir, L., Kneib, T., Lang, S., and Marx, B.: Regression: Models, methods
and applications, Springer, Berlin, Heidelberg, <ext-link xlink:href="http://dx.doi.org/10.1007/978-3-642-34333-9" ext-link-type="DOI">10.1007/978-3-642-34333-9</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx6"><label>Feudale et al.(2013)Feudale, Manzato, and
Micheletti</label><mixed-citation>Feudale, L., Manzato, A., and Micheletti, S.: A cloud-to-ground lightning
climatology for north-eastern Italy, Adv. Sci. Res., 10, 77–84, <ext-link xlink:href="http://dx.doi.org/10.5194/asr-10-77-2013" ext-link-type="DOI">10.5194/asr-10-77-2013</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx7"><label>Gladich et al.(2011)Gladich, Gallai, Giaiotti, and
Stel</label><mixed-citation>Gladich, I., Gallai, I., Giaiotti, D., and Stel, F.: On the diurnal cycle of
deep moist convection in the southern side of the Alps analysed through
cloud-to-ground lightning activity, Atmos. Res., 100, 371–376, <ext-link xlink:href="http://dx.doi.org/10.1016/j.atmosres.2010.08.026" ext-link-type="DOI">10.1016/j.atmosres.2010.08.026</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bibx8"><label>Gneiting and Raftery(2007)</label><mixed-citation>Gneiting, T. and Raftery, A. E.: Strictly proper scoring rules, prediction, and
estimation, J. Am. Stat. Assoc., 102, 359–378, <ext-link xlink:href="http://dx.doi.org/10.1198/016214506000001437" ext-link-type="DOI">10.1198/016214506000001437</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bibx9"><label>Hastie and Tibshirani(1990)</label><mixed-citation>
Hastie, T. and Tibshirani, R.: Generalized additive models, vol. 43, CRC Press,
Boca Raton, 1990.</mixed-citation></ref>
      <ref id="bib1.bibx10"><label>Hastie et al.(2009)Hastie, Tibshirani, and Friedman</label><mixed-citation>Hastie, T., Tibshirani, R., and Friedman, J.: The elements of statistical
learning: data mining, inference and prediction, in: Springer Series in
Statistics, 2nd Edn., Springer, Berlin, <ext-link xlink:href="http://dx.doi.org/10.1007/978-0-387-84858-7" ext-link-type="DOI">10.1007/978-0-387-84858-7</ext-link>, 2009.</mixed-citation></ref>
      <ref id="bib1.bibx11"><label>Kärnten(2015)</label><mixed-citation>Kärnten, L.: Digital terrain model (DTM) Carinthia, CC-BY-3.0: Land
Kärnten – data.ktn.gv.at, ALS airborne measurements, Land Kärnten,
<uri>http://www.data.gv.at/katalog/dataset/25ab688b-5b8b-4363-a1a8-17662dc05db8</uri>
(last access: 16 January 2016), 2015.</mixed-citation></ref>
      <ref id="bib1.bibx12"><label>Markowski and Richardson(2011)</label><mixed-citation>
Markowski, P. and Richardson, Y.: Mesoscale meteorology in midlatitudes,
vol. 2, John Wiley &amp; Sons, 2011.</mixed-citation></ref>
      <ref id="bib1.bibx13"><label>Mona et al.(2016)Mona, Horváth, and Ács</label><mixed-citation>Mona, T., Horváth, Á., and Ács, F.: A thunderstorm cell-lightning
activity analysis: The new concept of air mass catchment, Atmos. Res., 169,
340–344, <ext-link xlink:href="http://dx.doi.org/10.1016/j.atmosres.2015.10.017" ext-link-type="DOI">10.1016/j.atmosres.2015.10.017</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx14"><label>Mullahy(1986)</label><mixed-citation>Mullahy, J.: Specification and testing of some modified count data models, J.
Econometr., 33, 341–365, <ext-link xlink:href="http://dx.doi.org/10.1016/0304-4076(86)90002-3" ext-link-type="DOI">10.1016/0304-4076(86)90002-3</ext-link>, 1986.</mixed-citation></ref>
      <ref id="bib1.bibx15"><label>Poelman(2014)</label><mixed-citation>Poelman, D. R.: A 10-year study on the characteristics of thunderstorms in
Belgium based on cloud-to-ground lightning data, Mon. Weather Rev., 142,
4839–4849, <ext-link xlink:href="http://dx.doi.org/10.1175/MWR-D-14-00202.1" ext-link-type="DOI">10.1175/MWR-D-14-00202.1</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bibx16"><label>Pohjola and Mäkelä(2013)</label><mixed-citation>Pohjola, H. and Mäkelä, A.: The comparison of GLD360 and EUCLID
lightning location systems in Europe, Atmos. Res., 123, 117–128, <ext-link xlink:href="http://dx.doi.org/10.1016/j.atmosres.2012.10.019" ext-link-type="DOI">10.1016/j.atmosres.2012.10.019</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx17"><label>Rakov(2016)</label><mixed-citation>Rakov, V. A.: Fundamentals of Lightning, Cambridge University Press, Cambridge,
<ext-link xlink:href="http://dx.doi.org/10.1017/CBO9781139680370" ext-link-type="DOI">10.1017/CBO9781139680370</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx18"><label>R Core Team(2016)</label><mixed-citation>R Core Team: R: A language and environment for statistical computing, R Foundation
for Statistical Computing, Vienna, Austria, <uri>https://www.R-project.org/</uri>,
last access: 16 January 2016.</mixed-citation></ref>
      <ref id="bib1.bibx19"><label>Rust et al.(2013)Rust, Vrac, Sultan, and Lengaigne</label><mixed-citation>Rust, H. W., Vrac, M., Sultan, B., and Lengaigne, M.: Mapping weather-type
influence on senegal precipitation based on a spatial-temporal statistical
model, J. Climate, 26, 8189–8209, <ext-link xlink:href="http://dx.doi.org/10.1175/JCLI-D-12-00302.1" ext-link-type="DOI">10.1175/JCLI-D-12-00302.1</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx20"><label>Schulz et al.(2005)Schulz, Cummins, Diendorfer, and Dorninger</label><mixed-citation>Schulz, W., Cummins, K., Diendorfer, G., and Dorninger, M.: Cloud-to-ground
lightning in Austria: A 10-year study using data from a lightning location
system, J. Geophys. Res.-Atmos., 110, D09101, <ext-link xlink:href="http://dx.doi.org/10.1029/2004JD005332" ext-link-type="DOI">10.1029/2004JD005332</ext-link>, 2005.</mixed-citation></ref>
      <ref id="bib1.bibx21"><label>Schulz et al.(2016)Schulz, Diendorfer, Pedeboy, and Poelman</label><mixed-citation>Schulz, W., Diendorfer, G., Pedeboy, S., and Poelman, D.: The European lightning
location system EUCLID – Part 1: Performance validation, Nat. Hazards Earth
Syst. Sci., 3, 5325–5355, <ext-link xlink:href="http://dx.doi.org/10.5194/nhess-16-595-2016" ext-link-type="DOI">10.5194/nhess-16-595-2016</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx22"><label>Stauffer et al.(2016)Stauffer, Messner, Mayr, Umlauf, and
Zeileis</label><mixed-citation>Stauffer, R., Messner, J. W., Mayr, G. J., Umlauf, N., and Zeileis, A.:
Spatio-temporal precipitation climatology over complex terrain using a censored
additive regression model, Int. J. Climatol., <ext-link xlink:href="http://dx.doi.org/10.1002/joc.4913" ext-link-type="DOI">10.1002/joc.4913</ext-link>, in press, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx23"><label>Troger(1998)</label><mixed-citation>
Troger, W.: Die Einbeziehung des Österreichischen Blitzortungssystems ALDIS
in die Meteorologische Analyse von Gewittern, MS thesis, Institut für
Meteorologie und Geophysik der Universität Innsbruck, Innsbruck, 1998.</mixed-citation></ref>
      <ref id="bib1.bibx24"><label>Wapler(2013)</label><mixed-citation>Wapler, K.: High-resolution climatology of lightning characteristics within
central Europe, Meteorol. Atmos. Phys., 122, 175–184, <ext-link xlink:href="http://dx.doi.org/10.1007/s00703-013-0285-1" ext-link-type="DOI">10.1007/s00703-013-0285-1</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx25"><label>Wood(2006)</label><mixed-citation>
Wood, S. N.: Generalized additive models: An introduction with R, CRC Press,
Boca Raton, 2006.</mixed-citation></ref>
      <ref id="bib1.bibx26"><label>Wood(2016)</label><mixed-citation>Wood, S. N.: mgcv: GAMs with GCV/AIC/REML smoothness estimation and GAMMs by PQL,
R package version 1.8-16, <uri>http://CRAN.R-project.org/package=mgcv</uri>,
last access: 16 January 2016.
</mixed-citation></ref><?xmltex \hack{\newpage}?>
      <ref id="bib1.bibx27"><label>Wood et al.(2015)Wood, Goude, and Shaw</label><mixed-citation>Wood, S. N., Goude, Y., and Shaw, S.: Generalized additive models for large
data sets, J. Roy. Stat. Soc. Ser. C, 64, 139–155, <ext-link xlink:href="http://dx.doi.org/10.1111/rssc.12068" ext-link-type="DOI">10.1111/rssc.12068</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx28"><label>Yang et al.(2016)Yang, Xu, and Li</label><mixed-citation>Yang, C., Xu, J., and Li, Y.: Bayesian geoadditive modelling of climate extremes
with nonparametric spatially varying temporal effects, Int. J. Climatol.,
36, 3975–3987, <ext-link xlink:href="http://dx.doi.org/10.1002/joc.4607" ext-link-type="DOI">10.1002/joc.4607</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx29"><label>Zeileis and Kleiber(2016)</label><mixed-citation>Zeileis, A. and Kleiber, C.: countreg: Count data regression, R package
version 0.2-0, <uri>http://R-Forge.R-project.org/projects/countreg</uri>,
last access: 16 January 2016.</mixed-citation></ref>
      <ref id="bib1.bibx30"><label>Zeileis et al.(2008)Zeileis, Kleiber, and
Jackman</label><mixed-citation>Zeileis, A., Kleiber, C., and Jackman, S.: Regression models for count data
in R, J. Stat. Softw., 27, 1–25, <ext-link xlink:href="http://dx.doi.org/10.18637/jss.v027.i08" ext-link-type="DOI">10.18637/jss.v027.i08</ext-link>, 2008.</mixed-citation></ref>

  </ref-list><app-group content-type="float"><app><title/>

    </app></app-group></back>
    <!--<article-title-html>Spatio-temporal modelling of lightning climatologies  for complex terrain</article-title-html>
<abstract-html><p class="p">This study develops methods for estimating lightning climatologies on the
day<sup>−1</sup> km<sup>−2</sup> scale for regions with complex terrain and applies them
to summertime observations (2010–2015) of the lightning location system
ALDIS in the Austrian state of Carinthia in the Eastern Alps.</p><p class="p">Generalized additive models (GAMs) are used to model both the probability of
occurrence and the intensity of lightning. Additive effects are set up for
altitude, day of the year (season) and geographical location (longitude/latitude).
The performance of the models is verified by 6-fold cross-validation.</p><p class="p">The altitude effect of the occurrence model suggests higher probabilities of
lightning for locations on higher elevations. The seasonal effect peaks in
mid-July. The spatial effect models several local features, but there is a
pronounced minimum in the north-west and a clear maximum in the eastern part
of Carinthia. The estimated effects of the intensity model reveal similar
features, though they are not equal. The main difference is that the spatial
effect varies more strongly than the analogous effect of the occurrence model.</p><p class="p">A major asset of the introduced method is that the resulting climatological
information varies smoothly over space, time and altitude. Thus, the
climatology is capable of serving as a useful tool in quantitative
applications, i.e. risk assessment and weather prediction.</p></abstract-html>
<ref-html id="bib1.bib1"><label>Bertram and Mayr(2004)</label><mixed-citation>
Bertram, I. and Mayr, G. J.: Lightning in the Eastern Alps 1993–1999, Part I:
Thunderstorm tracks, Nat. Hazards Earth Syst. Sci., 4, 501–511, <a href="http://dx.doi.org/10.5194/nhess-4-501-2004" target="_blank">doi:10.5194/nhess-4-501-2004</a>, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>Chaudhuri and Middey(2012)</label><mixed-citation>
Chaudhuri, S. and Middey, A.: A composite stability index for dichotomous forecast
of thunderstorms, Theor. Appl. Climatol., 110, 457–469, <a href="http://dx.doi.org/10.1007/s00704-012-0640-z" target="_blank">doi:10.1007/s00704-012-0640-z</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>Chavez-Demoulin and Davison(2005)</label><mixed-citation>
Chavez-Demoulin, V. and Davison, A. C.: Generalized additive modelling of sample
extremes, J. Roy. Stat. Soc. Ser. C, 54, 207–222, <a href="http://dx.doi.org/10.1111/j.1467-9876.2005.00479.x" target="_blank">doi:10.1111/j.1467-9876.2005.00479.x</a>, 2005.
</mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>Curran et al.(2000)Curran, Holle, and López</label><mixed-citation>
Curran, E. B., Holle, R. L., and López, R. E.: Lightning casualties and
damages in the United States from 1959 to 1994, J. Climate, 13, 3448–3464,
<a href="http://dx.doi.org/10.1175/1520-0442(2000)013&lt;3448:LCADIT&gt;2.0.CO;2" target="_blank">doi:10.1175/1520-0442(2000)013&lt;3448:LCADIT&gt;2.0.CO;2</a>, 2000.
</mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>Fahrmeir et al.(2013)Fahrmeir, Kneib, Lang, and Marx</label><mixed-citation>
Fahrmeir, L., Kneib, T., Lang, S., and Marx, B.: Regression: Models, methods
and applications, Springer, Berlin, Heidelberg, <a href="http://dx.doi.org/10.1007/978-3-642-34333-9" target="_blank">doi:10.1007/978-3-642-34333-9</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>Feudale et al.(2013)Feudale, Manzato, and
Micheletti</label><mixed-citation>
Feudale, L., Manzato, A., and Micheletti, S.: A cloud-to-ground lightning
climatology for north-eastern Italy, Adv. Sci. Res., 10, 77–84, <a href="http://dx.doi.org/10.5194/asr-10-77-2013" target="_blank">doi:10.5194/asr-10-77-2013</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>Gladich et al.(2011)Gladich, Gallai, Giaiotti, and
Stel</label><mixed-citation>
Gladich, I., Gallai, I., Giaiotti, D., and Stel, F.: On the diurnal cycle of
deep moist convection in the southern side of the Alps analysed through
cloud-to-ground lightning activity, Atmos. Res., 100, 371–376, <a href="http://dx.doi.org/10.1016/j.atmosres.2010.08.026" target="_blank">doi:10.1016/j.atmosres.2010.08.026</a>, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>Gneiting and Raftery(2007)</label><mixed-citation>
Gneiting, T. and Raftery, A. E.: Strictly proper scoring rules, prediction, and
estimation, J. Am. Stat. Assoc., 102, 359–378, <a href="http://dx.doi.org/10.1198/016214506000001437" target="_blank">doi:10.1198/016214506000001437</a>, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>Hastie and Tibshirani(1990)</label><mixed-citation>
Hastie, T. and Tibshirani, R.: Generalized additive models, vol. 43, CRC Press,
Boca Raton, 1990.
</mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>Hastie et al.(2009)Hastie, Tibshirani, and Friedman</label><mixed-citation>
Hastie, T., Tibshirani, R., and Friedman, J.: The elements of statistical
learning: data mining, inference and prediction, in: Springer Series in
Statistics, 2nd Edn., Springer, Berlin, <a href="http://dx.doi.org/10.1007/978-0-387-84858-7" target="_blank">doi:10.1007/978-0-387-84858-7</a>, 2009.
</mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>Kärnten(2015)</label><mixed-citation>
Kärnten, L.: Digital terrain model (DTM) Carinthia, CC-BY-3.0: Land
Kärnten – data.ktn.gv.at, ALS airborne measurements, Land Kärnten,
<a href="http://www.data.gv.at/katalog/dataset/25ab688b-5b8b-4363-a1a8-17662dc05db8" target="_blank">http://www.data.gv.at/katalog/dataset/25ab688b-5b8b-4363-a1a8-17662dc05db8</a>
(last access: 16 January 2016), 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>Markowski and Richardson(2011)</label><mixed-citation>
Markowski, P. and Richardson, Y.: Mesoscale meteorology in midlatitudes,
vol. 2, John Wiley &amp; Sons, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>Mona et al.(2016)Mona, Horváth, and Ács</label><mixed-citation>
Mona, T., Horváth, Á., and Ács, F.: A thunderstorm cell-lightning
activity analysis: The new concept of air mass catchment, Atmos. Res., 169,
340–344, <a href="http://dx.doi.org/10.1016/j.atmosres.2015.10.017" target="_blank">doi:10.1016/j.atmosres.2015.10.017</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>Mullahy(1986)</label><mixed-citation>
Mullahy, J.: Specification and testing of some modified count data models, J.
Econometr., 33, 341–365, <a href="http://dx.doi.org/10.1016/0304-4076(86)90002-3" target="_blank">doi:10.1016/0304-4076(86)90002-3</a>, 1986.
</mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>Poelman(2014)</label><mixed-citation>
Poelman, D. R.: A 10-year study on the characteristics of thunderstorms in
Belgium based on cloud-to-ground lightning data, Mon. Weather Rev., 142,
4839–4849, <a href="http://dx.doi.org/10.1175/MWR-D-14-00202.1" target="_blank">doi:10.1175/MWR-D-14-00202.1</a>, 2014.
</mixed-citation></ref-html>
<ref-html id="bib1.bib16"><label>Pohjola and Mäkelä(2013)</label><mixed-citation>
Pohjola, H. and Mäkelä, A.: The comparison of GLD360 and EUCLID
lightning location systems in Europe, Atmos. Res., 123, 117–128, <a href="http://dx.doi.org/10.1016/j.atmosres.2012.10.019" target="_blank">doi:10.1016/j.atmosres.2012.10.019</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib17"><label>Rakov(2016)</label><mixed-citation>
Rakov, V. A.: Fundamentals of Lightning, Cambridge University Press, Cambridge,
<a href="http://dx.doi.org/10.1017/CBO9781139680370" target="_blank">doi:10.1017/CBO9781139680370</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib18"><label>R Core Team(2016)</label><mixed-citation>
R Core Team: R: A language and environment for statistical computing, R Foundation
for Statistical Computing, Vienna, Austria, <a href="https://www.R-project.org/" target="_blank">https://www.R-project.org/</a>,
last access: 16 January 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib19"><label>Rust et al.(2013)Rust, Vrac, Sultan, and Lengaigne</label><mixed-citation>
Rust, H. W., Vrac, M., Sultan, B., and Lengaigne, M.: Mapping weather-type
influence on senegal precipitation based on a spatial-temporal statistical
model, J. Climate, 26, 8189–8209, <a href="http://dx.doi.org/10.1175/JCLI-D-12-00302.1" target="_blank">doi:10.1175/JCLI-D-12-00302.1</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib20"><label>Schulz et al.(2005)Schulz, Cummins, Diendorfer, and Dorninger</label><mixed-citation>
Schulz, W., Cummins, K., Diendorfer, G., and Dorninger, M.: Cloud-to-ground
lightning in Austria: A 10-year study using data from a lightning location
system, J. Geophys. Res.-Atmos., 110, D09101, <a href="http://dx.doi.org/10.1029/2004JD005332" target="_blank">doi:10.1029/2004JD005332</a>, 2005.
</mixed-citation></ref-html>
<ref-html id="bib1.bib21"><label>Schulz et al.(2016)Schulz, Diendorfer, Pedeboy, and Poelman</label><mixed-citation>
Schulz, W., Diendorfer, G., Pedeboy, S., and Poelman, D.: The European lightning
location system EUCLID – Part 1: Performance validation, Nat. Hazards Earth
Syst. Sci., 3, 5325–5355, <a href="http://dx.doi.org/10.5194/nhess-16-595-2016" target="_blank">doi:10.5194/nhess-16-595-2016</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib22"><label>Stauffer et al.(2016)Stauffer, Messner, Mayr, Umlauf, and
Zeileis</label><mixed-citation>
Stauffer, R., Messner, J. W., Mayr, G. J., Umlauf, N., and Zeileis, A.:
Spatio-temporal precipitation climatology over complex terrain using a censored
additive regression model, Int. J. Climatol., <a href="http://dx.doi.org/10.1002/joc.4913" target="_blank">doi:10.1002/joc.4913</a>, in press, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib23"><label>Troger(1998)</label><mixed-citation>
Troger, W.: Die Einbeziehung des Österreichischen Blitzortungssystems ALDIS
in die Meteorologische Analyse von Gewittern, MS thesis, Institut für
Meteorologie und Geophysik der Universität Innsbruck, Innsbruck, 1998.
</mixed-citation></ref-html>
<ref-html id="bib1.bib24"><label>Wapler(2013)</label><mixed-citation>
Wapler, K.: High-resolution climatology of lightning characteristics within
central Europe, Meteorol. Atmos. Phys., 122, 175–184, <a href="http://dx.doi.org/10.1007/s00703-013-0285-1" target="_blank">doi:10.1007/s00703-013-0285-1</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib25"><label>Wood(2006)</label><mixed-citation>
Wood, S. N.: Generalized additive models: An introduction with R, CRC Press,
Boca Raton, 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib26"><label>Wood(2016)</label><mixed-citation>
Wood, S. N.: mgcv: GAMs with GCV/AIC/REML smoothness estimation and GAMMs by PQL,
R package version 1.8-16, <a href="http://CRAN.R-project.org/package=mgcv" target="_blank">http://CRAN.R-project.org/package=mgcv</a>,
last access: 16 January 2016.

</mixed-citation></ref-html>
<ref-html id="bib1.bib27"><label>Wood et al.(2015)Wood, Goude, and Shaw</label><mixed-citation>
Wood, S. N., Goude, Y., and Shaw, S.: Generalized additive models for large
data sets, J. Roy. Stat. Soc. Ser. C, 64, 139–155, <a href="http://dx.doi.org/10.1111/rssc.12068" target="_blank">doi:10.1111/rssc.12068</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib28"><label>Yang et al.(2016)Yang, Xu, and Li</label><mixed-citation>
Yang, C., Xu, J., and Li, Y.: Bayesian geoadditive modelling of climate extremes
with nonparametric spatially varying temporal effects, Int. J. Climatol.,
36, 3975–3987, <a href="http://dx.doi.org/10.1002/joc.4607" target="_blank">doi:10.1002/joc.4607</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib29"><label>Zeileis and Kleiber(2016)</label><mixed-citation>
Zeileis, A. and Kleiber, C.: countreg: Count data regression, R package
version 0.2-0, <a href="http://R-Forge.R-project.org/projects/countreg" target="_blank">http://R-Forge.R-project.org/projects/countreg</a>,
last access: 16 January 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib30"><label>Zeileis et al.(2008)Zeileis, Kleiber, and
Jackman</label><mixed-citation>
Zeileis, A., Kleiber, C., and Jackman, S.: Regression models for count data
in R, J. Stat. Softw., 27, 1–25, <a href="http://dx.doi.org/10.18637/jss.v027.i08" target="_blank">doi:10.18637/jss.v027.i08</a>, 2008.
</mixed-citation></ref-html>--></article>
