<?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" xml:lang="en" dtd-version="3.0" article-type="methods-article"><?xmltex \makeatother\@nolinetrue\makeatletter?>
  <front>
    <journal-meta><journal-id journal-id-type="publisher">ACP</journal-id><journal-title-group>
    <journal-title>Atmospheric Chemistry and Physics</journal-title>
    <abbrev-journal-title abbrev-type="publisher">ACP</abbrev-journal-title><abbrev-journal-title abbrev-type="nlm-ta">Atmos. Chem. Phys.</abbrev-journal-title>
  </journal-title-group><issn pub-type="epub">1680-7324</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/acp-21-15589-2021</article-id><title-group><article-title>Technical note: Uncertainties in eddy covariance <inline-formula><mml:math id="M1" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> fluxes in a semiarid sagebrush ecosystem caused by gap-filling approaches</article-title><alt-title>Technical note: Uncertainties in eddy covariance <inline-formula><mml:math id="M2" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> fluxes</alt-title>
      </title-group><?xmltex \runningtitle{Technical note: Uncertainties in eddy covariance {$\chem{CO_{{2}}}$} fluxes}?><?xmltex \runningauthor{J.~Yao~et~al.}?>
      <contrib-group>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Yao</surname><given-names>Jingyu</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff2 aff3">
          <name><surname>Gao</surname><given-names>Zhongming</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-4390-753X</ext-link></contrib>
        <contrib contrib-type="author" corresp="yes" rid="aff4">
          <name><surname>Huang</surname><given-names>Jianping</given-names></name>
          <email>hjp@lzu.edu.cn</email>
        <ext-link>https://orcid.org/0000-0003-2845-797X</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff2">
          <name><surname>Liu</surname><given-names>Heping</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff5">
          <name><surname>Wang</surname><given-names>Guoyin</given-names></name>
          
        </contrib>
        <aff id="aff1"><label>1</label><institution>Key Laboratory for Semi-Arid Climate Change of the Ministry of
Education, College of Atmospheric Sciences,<?xmltex \hack{\break}?> Lanzhou University, Lanzhou,
China</institution>
        </aff>
        <aff id="aff2"><label>2</label><institution>Laboratory for Atmospheric Research, Department of Civil and
Environmental Engineering, Washington State University, Pullman, Washington,
USA</institution>
        </aff>
        <aff id="aff3"><label>3</label><institution>School of Atmospheric Sciences, Sun Yat-sen University, Southern
Marine Science and Engineering Guangdong Laboratory (Zhuhai), Zhuhai, China</institution>
        </aff>
        <aff id="aff4"><label>4</label><institution>Collaborative Innovation Center for Western Ecological Safety, Lanzhou University, Lanzhou, China</institution>
        </aff>
        <aff id="aff5"><label>5</label><institution>Department of Atmospheric and Oceanic Sciences &amp; Institute of Atmospheric Sciences, Fudan University, Shanghai, China</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Jianping Huang (hjp@lzu.edu.cn)</corresp></author-notes><pub-date><day>18</day><month>October</month><year>2021</year></pub-date>
      
      <volume>21</volume>
      <issue>20</issue>
      <fpage>15589</fpage><lpage>15603</lpage>
      <history>
        <date date-type="received"><day>26</day><month>July</month><year>2021</year></date>
           <date date-type="rev-request"><day>28</day><month>July</month><year>2021</year></date>
           <date date-type="rev-recd"><day>23</day><month>September</month><year>2021</year></date>
           <date date-type="accepted"><day>25</day><month>September</month><year>2021</year></date>
      </history>
      <permissions>
        <copyright-statement>Copyright: © 2021 </copyright-statement>
        <copyright-year>2021</copyright-year>
      <license license-type="open-access"><license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p></license></permissions><self-uri xlink:href="https://acp.copernicus.org/articles/.html">This article is available from https://acp.copernicus.org/articles/.html</self-uri><self-uri xlink:href="https://acp.copernicus.org/articles/.pdf">The full text article is available as a PDF file from https://acp.copernicus.org/articles/.pdf</self-uri>
      <abstract><title>Abstract</title>
    <p id="d1e169">Gap-filling eddy covariance <inline-formula><mml:math id="M3" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> fluxes is
challenging at dryland sites due to small <inline-formula><mml:math id="M4" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> fluxes. Here, four
machine learning (ML) algorithms including artificial neural network (ANN), <inline-formula><mml:math id="M5" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula>-nearest neighbors (KNNs), random forest (RF), and support vector machine
(SVM) are employed and evaluated for gap-filling <inline-formula><mml:math id="M6" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> fluxes over a
semiarid sagebrush ecosystem with different lengths of artificial gaps. The
ANN and RF algorithms outperform the KNN and SVM in filling gaps ranging
from hours to days, with the RF being more time efficient than the ANN.
Performances of the ANN and RF are largely degraded for extremely long gaps
of 2 months. In addition, our results suggest that there is no need to
fill the daytime and nighttime net ecosystem exchange (NEE) gaps separately when using the ANN and
RF. With the ANN and RF, the gap-filling-induced uncertainties in the annual
NEE at this site are estimated to be within 16 g C m<inline-formula><mml:math id="M7" 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>, whereas the
uncertainties by the KNN and SVM can be as large as 27 g C m<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>. To
better fill extremely long gaps of a few months, we test a two-layer
gap-filling framework based on the RF. With this framework, the model
performance is improved significantly, especially for the nighttime data.
Therefore, this approach provides an alternative in filling extremely long
gaps to characterize annual carbon budgets and interannual variability in
dryland ecosystems.</p>
  </abstract>
    </article-meta>
  </front>
<body>
      

<sec id="Ch1.S1" sec-type="intro">
  <label>1</label><title>Introduction</title>
      <p id="d1e246">The eddy covariance (EC) technique has been widely applied for monitoring
energy and water fluxes as well as net ecosystem exchanges (NEEs) of carbon dioxide
and other trace gases between land and the atmosphere (Baldocchi, 2003; Oncley et al.,
2007; Stoy et al., 2013). However, due to multiple factors including power
outages, instrument malfunctions and maintenance, and data quality checks,
there exist gaps with approximately 20 %–60 % of half-hourly data points
annually at many long-term EC sites (Dragoni
et al., 2007; Falge et al., 2001; Ma et al., 2007; Missik et al., 2019,
2021; Moffat et al., 2007; Pastorello et al., 2020; Soloway et al., 2017;
Wutzler et al., 2018). An average gap fraction of 30 % in an annual
dataset leads to an uncertainty of <inline-formula><mml:math id="M9" display="inline"><mml:mrow><mml:mo>±</mml:mo><mml:mn mathvariant="normal">25</mml:mn></mml:mrow></mml:math></inline-formula> g C m<inline-formula><mml:math id="M10" 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="M11" 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> for
the annual NEE at forest sites (Moffat
et al., 2007), while some EC sites report much greater uncertainties
(Soloway et al., 2017). Therefore,
gap-filling usually accounts for one large source of uncertainties in the
annual NEE (Soloway et al., 2017),
together with other sources of uncertainties such as measurement errors and
bias related to non-closure of the surface energy balance
(Gao et al., 2019; Wilson et
al., 2002).</p>
      <p id="d1e283">Robust NEE gap-filling approaches are critical for quantifying the annual
and interannual variability of carbon budgets
(Falge
et al., 2001; Irvin et al., 2021; Moffat et al.,<?pagebreak page15590?> 2007; Pastorello et al.,
2020; Richardson and Hollinger, 2007; Soloway et al., 2017; Wutzler et al.,
2018). Previous studies have developed and evaluated a number of NEE
gap-filling approaches including non-linear regressions (NLRs), look-up
tables (e.g., marginal distribution sampling, MDS), machine learning (ML)
algorithms (e.g., artificial neural networks), and process-based models
(Falge
et al., 2001; Huang and Hsieh, 2020; Moffat et al., 2007; Reichstein et al.,
2005; Wutzler et al., 2018). NLR fills NEE gaps based on regression analyses
between NEE and meteorological variables such as temperature (e.g., air or
soil temperature) and light (e.g., photosynthetically active radiation),
whereas MDS is based on look-up tables for similar meteorological conditions
(i.e., global radiation, air temperature, and vapor pressure deficit)
(Falge
et al., 2001; Moffat et al., 2007; Reichstein et al., 2005). By virtue of an
easy-to-use R package (Wutzler et al., 2018), MDS has become the standard
method for NEE gap-filling (e.g., Pastorello et al., 2020), although it
cannot effectively fill the gaps of longer than 12 d (Moffat
et al., 2007). ML-based methods are trained by presenting them with numerous
meteorological variables as inputs and NEE as output data, which have the
potential to fill long gaps
(Dengel
et al., 2013; Kim et al., 2020; Moffat et al., 2007). Artificial neural
networks (ANNs), for instance, have been widely used for gap-filling <inline-formula><mml:math id="M12" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>
and <inline-formula><mml:math id="M13" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CH</mml:mi><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> fluxes across a variety of EC sites at forests, grasslands,
croplands, and wetlands
(Dengel
et al., 2013; Delwiche et al., 2021; Huang and Hsieh, 2020; Irvin et al.,
2021; Kim et al., 2020; Knox et al., 2016; Mahabbati et al., 2021; Moffat et
al., 2007; Papale and Valentini, 2003; Soloway et al., 2017). More recently,
other ML algorithms such as random forest (RF), <inline-formula><mml:math id="M14" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula>-nearest neighbors (KNNs),
and support vector machine (SVM) have recently been assessed for flux
gap-filling over different ecosystems, and RF is found to have outperformed
the other ML algorithms as well as the MDS method
(Huang
and Hsieh, 2020; Irvin et al., 2021; Kim et al., 2020; Mahabbati et al.,
2021). However, the performance of these ML-based algorithms has not been
evaluated in filling gaps in EC fluxes for dryland ecosystems with low NEE.</p>
      <p id="d1e315">Besides the selection of gap-filling algorithms, several other factors may
also degrade the performance of the algorithms and cause uncertainties in
gap-filled fluxes. For example, the performance of gap-filling algorithms
decreases with increasing gap length (Huang and Hsieh, 2020; Irvin et
al., 2021; Kim et al., 2020), and thus long gaps in <inline-formula><mml:math id="M15" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>  flux are
considered one of the primary uncertainty sources of NEE estimation (Aubinet
at al., 2012). In addition, spatial variability of <inline-formula><mml:math id="M16" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> flux and
meteorological drivers (e.g., soil temperature) due to heterogeneous
landscapes around flux towers (Chu et al., 2021; Stoy et al., 2013) can lead
to unknown bias in modeling research (Metzger, 2018). That is, the trained
ML algorithms using the measured <inline-formula><mml:math id="M17" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>  flux and meteorological variables
may not well reflect their real relationship within flux footprints and
induce bias to gap-filled fluxes and the annual NEE.</p>
      <p id="d1e351">Dryland ecosystems, comprising around 40 % of the Earth's land surface,
play a critical role in determining the trend and interannual variability of
the global terrestrial carbon budgets (Ahlström et al., 2015; Missik et
al., 2021; Yao et al., 2020), though the expansion of projected global
drylands under climate change is still under debate (Berg and McColl, 2021;
Feng and Fu, 2013; Huang et al., 2016; Yao et al., 2020). Long-term
continuous measurements of land surface fluxes over dryland ecosystems are
critical for assessing the impact of climate change on the dryland carbon cycle
(Missik et al., 2021; Yao et al., 2020). The motivation of this gap-filling
practice was driven by the fact that dryland ecosystems are very sensitive
to water availability, functioning as carbon sinks in wet years and carbon
sources in dry years
(Biederman
et al., 2017; Scott et al., 2015), and bias in gap-filled NEE may alter
conclusions in sources or sinks of dryland ecosystems in the case of relatively
long gaps for eddy covariance data. In addition, different ML algorithms
have distinctive internal structures that account for the underlying
dependencies of outputs (i.e., NEE) on the inputs (i.e., meteorological
variables) in different ways, and uncertainties associated with different
ML-based methods can also be assessed (Soloway et al., 2017).</p>
      <p id="d1e355">In this study, we evaluate the performance of four commonly used ML
algorithms (ANN, KNN, RF, and SVM) in filling the extremely long gaps (i.e.,
couple months) in the NEE data collected at an EC site over a semiarid
sagebrush ecosystem in central Washington, USA, from 2016 to 2019, and
we assess the uncertainties in the annual NEE introduced by gap-filling
methods. In order to fill the extremely long gaps, we propose and examine a
two-layer RF-based gap-filling framework (RF-2L) as the RF benefits from
better performance and faster run-time than the other ML algorithms (Huang
and Hsieh, 2020; Irvin et al., 2021; Kim et al., 2020; Mahabbati et al.,
2021).</p>
</sec>
<sec id="Ch1.S2">
  <label>2</label><title>Materials and methods</title>
      <p id="d1e366">In this section, we first describe the site condition and instruments, as
well as the procedures for EC data processing, quality control, and gap
identification, following the standard protocol (Mauder and Foken, 2004). We then briefly introduce the four ML algorithms and the
proposed framework of RF-2L, as well as the input meteorological variables.
Following the previous studies (Moffat et al., 2007;
Kim et al., 2020), four
different lengths of artificial gaps are generated and used to evaluate the
performance of these four ML algorithms, whereas the performance of RF-2L is
evaluated with gaps of 2 months. We also examine the performance of the
algorithms for different time-of-day scenarios: (1) all the data, (2) daytime data,
and (3) nighttime data. Finally, uncertainties in monthly and annual NEE are
quantified by comparing with the results from the MDS method and the
ensemble mean of predictions of the ML algorithms.</p><?xmltex \hack{\newpage}?>
<?pagebreak page15591?><sec id="Ch1.S2.SS1">
  <label>2.1</label><title>Site description</title>
      <p id="d1e377">The eddy covariance flux tower is located at the Hanford Site in the US
state of Washington (AmeriFlux site: US-Hn1; 46<inline-formula><mml:math id="M18" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>24<inline-formula><mml:math id="M19" display="inline"><mml:msup><mml:mi/><mml:mo>′</mml:mo></mml:msup></mml:math></inline-formula>32<inline-formula><mml:math id="M20" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:math></inline-formula> N,
119<inline-formula><mml:math id="M21" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>16<inline-formula><mml:math id="M22" display="inline"><mml:msup><mml:mi/><mml:mo>′</mml:mo></mml:msup></mml:math></inline-formula>30<inline-formula><mml:math id="M23" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:math></inline-formula> W), and it started to collect data in December
2015 (Gao
et al., 2019, 2020a, b; Missik et al., 2019). This semiarid site is
predominantly covered by scattered shrubs and short grasses. Shrub species
include <italic>Artemisia tridentata</italic> and <italic>Chrysothamnus viscidiflorus</italic>, and grasses include invasive weedy species (i.e., <italic>Bromus tectorum</italic> and <italic>Salsola kali</italic>) and
native grasses (i.e., <italic>Poa secunda, Pseudoroegneria spicata</italic>, and <italic>Stipa comata</italic>) (Missik et
al., 2019). The long-term (1986–2015) mean annual precipitation was 197 mm
(varied between 100 and 300 mm for dry and wet years), most of which
occurred late in the fall and early in winter
(Missik et al., 2019). The soil
texture in the top layer of 30 cm is loamy sand with small rocks and gravel
interspersed
(Gao
et al., 2017; Missik et al., 2019). In this study, the 4-year data from 2016
to 2019 are analyzed. Annual precipitation in these 4 years was 217,
242, 169, and 210 mm, respectively; and mean annual air temperature was
12.9, 11.4, 12.7, and 11.2 <inline-formula><mml:math id="M24" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C, respectively (Missik et al., 2021).</p>
</sec>
<sec id="Ch1.S2.SS2">
  <label>2.2</label><title>Eddy covariance and meteorological measurements</title>
      <p id="d1e477">The EC system included a three-dimensional sonic anemometer (CSAT3, Campbell
Scientific, Inc.) and an open-path gas analyzer (LI-7500A, LI-COR, Inc.),
and the EC data were sampled at a rate of 10 Hz. In addition, a variety of
microclimate data were measured, including four-component radiation, air
temperature and relative humidity, wind speed and direction, precipitation,
soil heat flux, soil temperature, and volumetric water content (Gao
et al., 2017, 2019, 2020a; Missik et al., 2019). These data were sampled at
a rate of 1 Hz and stored as 30 min averages. Further, 15 min meteorological
data from two weather stations close to the tower site were obtained from
the Washington State University AgWeatherNet (AWN;
<uri>https://weather.wsu.edu/</uri>, last access: 13 July 2020). The two AWN stations are located within 8 km
of the tower. The 15 min data were averaged to half-hourly values to fill
gaps in the tower meteorological data of global radiation (<inline-formula><mml:math id="M25" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">g</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>), air
temperature (<inline-formula><mml:math id="M26" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">air</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) and relative humidity (RH), vapor
pressure deficit (VPD), wind speed (WS), precipitation (<inline-formula><mml:math id="M27" display="inline"><mml:mi>P</mml:mi></mml:math></inline-formula>), and soil
temperature (<inline-formula><mml:math id="M28" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">soil</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>). Thus, these half-hourly meteorological data for
the study period are gap-free.</p>
</sec>
<sec id="Ch1.S2.SS3">
  <label>2.3</label><title>EC data processing, quality control, and gap identification</title>
      <p id="d1e532">Raw 10 Hz EC data were processed using the EddyPro<sup>®</sup>  software (version 7.06, LI-COR Biosciences, USA) to calculate the 30 min
average fluxes of <inline-formula><mml:math id="M29" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> (NEE) and latent (<inline-formula><mml:math id="M30" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mi>E</mml:mi></mml:mrow></mml:math></inline-formula>) and sensible (<inline-formula><mml:math id="M31" display="inline"><mml:mi>H</mml:mi></mml:math></inline-formula>) heat. The
data were despiked and filtered for physically impossible values and
abnormal diagnostic values of the sonic anemometer and the gas analyzer. The
double rotation method was applied to the sonic anemometer data. Block
averaging was used to determine the turbulent fluctuations for each 30 min
interval. The fluxes were corrected for the effects of high- and low-pass
filtering (Massman, 2000, 2001;
Moncrieff et al., 2004) and air density fluctuations
(Webb et al., 1980). The
corrected fluxes were quality checked according to Mauder and Foken (2004). After quality checking, the “REddyProc” R package
(Wutzler et al., 2018) was used to
determine the friction velocity (<inline-formula><mml:math id="M32" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> threshold, and NEE data with
low-turbulence conditions were removed from the dataset.</p>
      <p id="d1e579">For simplicity, we assigned a gap score of 2 to gaps due to field operations
(e.g., instrument maintenance), electrical and/or instrument failures, a gap
score of 1 to gaps due to low data quality (i.e., quality control and
<inline-formula><mml:math id="M33" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> filtering), and a score of 0 to flux data with good quality.
Only the data with the score of 0 were used to train/test the gap-filling
algorithms. Note that, for the data gaps with a score of 1, meteorological
data from the flux tower were still available for NEE gap-filling, whereas
for the data gaps with a score of 2, meteorological data from the flux tower
also had gaps, and the data obtained from the two nearby AWN stations are
thus used for gap-filling.</p>
</sec>
<sec id="Ch1.S2.SS4">
  <label>2.4</label><title>Machine learning algorithms</title>
      <p id="d1e601">Four ML algorithms including the ANN, KNN, RF, and SVM were employed and
evaluated for filling NEE gaps. In the following sections, we briefly
describe the characteristics and implementation of each ML algorithm. The
required parameters in each algorithm (e.g., the number of nodes in each
hidden layer for the ANN; <inline-formula><mml:math id="M34" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula> value for the KNN) are optimized using the
“caret” R package (Kuhn et al., 2020) with a 10-fold
cross-validation repeated 10 times.</p>
<sec id="Ch1.S2.SS4.SSS1">
  <label>2.4.1</label><title>Artificial neural network (ANN)</title>
      <?pagebreak page15592?><p id="d1e618">The ANN algorithm has been successfully applied for filling NEE gaps in
various ecosystems (Baldocchi and Sturtevant, 2015; Knox et al., 2016; Moffat et al., 2007; Papale and
Valentini, 2003; Tramontana et al., 2016). In this study, we employed the
“neuralnet” R package (Günther and Fritsch, 2010),
the resilient back-propagation algorithm that has proven to be capable of
gap-filling flux data (Dengel
et al., 2013; Jammet et al., 2015; Kim et al., 2020; Knox et al., 2016). The
required parameters for the ANN algorithm include the number of hidden
layers and the number of nodes in each layer. Here, based on the parameter
tuning results, we use two hidden layers with 12 and 10 nodes in the first
and second hidden layers. We train the neural network 1000 times, and the
mean prediction results of the top 20 runs based on their training and
testing <inline-formula><mml:math id="M35" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> values are used to fill NEE gaps (Baldocchi
and Sturtevant, 2015; Knox et al., 2016).</p>
</sec>
<sec id="Ch1.S2.SS4.SSS2">
  <label>2.4.2</label><?xmltex \opttitle{$K$-nearest neighbors (KNNs)}?><title><inline-formula><mml:math id="M36" display="inline"><mml:mi>K</mml:mi></mml:math></inline-formula>-nearest neighbors (KNNs)</title>
      <p id="d1e647">The KNN algorithm (Fix and Hodges, 1951) is a non-parametric ML
approach and has been used in many applications. For example, Chen et al. (2012) applied the KNN
algorithm for filling latent heat flux gaps, which fills the data gaps based
on a certain attribution of <inline-formula><mml:math id="M37" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula> neighbors in the feature space. In this study,
we use the caret R package (Kuhn et al., 2020) to build
the KNN where a suitable <inline-formula><mml:math id="M38" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula> value needs to be determined. Here, the optimized
<inline-formula><mml:math id="M39" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula> value is 9.</p>
</sec>
<sec id="Ch1.S2.SS4.SSS3">
  <label>2.4.3</label><title>Random forest (RF)</title>
      <p id="d1e679">The RF algorithm (Breiman, 2001) has been applied
for upscaling flux data to regional (Xu et
al., 2018) and global
(Jung et al., 2017; Zeng
et al., 2020) scales and recently for gap-filling flux data
(Huang
and Hsieh, 2020; Kim et al., 2020). The RF algorithm uses bootstrap
aggregation and feature randomness when generating each individual tree to
try to create many independent decision trees that operate as an ensemble of
the prediction results. In this study, we create 500 regression trees for
each case using the “randomForest” R package (Liaw and Wiener,
2002), in which the tuning parameter is the number of randomly selected
predictors (i.e., mtry equals 7). In addition, the RF allows the estimation
of relative importance of input variables, and such a feature has been
utilized in previous studies to help interpret the results (Irvin et al.
2021; Kim et al., 2020).</p>
</sec>
<sec id="Ch1.S2.SS4.SSS4">
  <label>2.4.4</label><title>Support vector machine (SVM)</title>
      <p id="d1e691">The SVM algorithm (Cortes and Vapnik, 1995) has also been
applied for gap-filling
(Huang
and Hsieh, 2020; Kim et al., 2020) and upscaling
(Xu et al., 2018) flux data. The SVM algorithm
can convert nonlinear regressions into linear regressions by projecting the
original finite-dimensional space into the much higher-dimensional space
with a predefined kernel function. In this study, we use the radial basic
kernel function and the “kernlab” R package (Karatzoglou
et al., 2004), where the tuning parameters include the inverse kernel width
(i.e., sigma <inline-formula><mml:math id="M40" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 0.13) and the cost regularization parameter (i.e., <inline-formula><mml:math id="M41" display="inline"><mml:mrow><mml:mi>C</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">27</mml:mn></mml:mrow></mml:math></inline-formula>).</p>
</sec>
<sec id="Ch1.S2.SS4.SSS5">
  <label>2.4.5</label><title>A two-layer RF-based gap-filling framework (RF-2L) for extremely long
gaps</title>
      <p id="d1e721">Numerous studies have suggested that the performance of ML algorithms
decreases with increasing the gap length and that the ML algorithms are only
reliable for gaps shorter than a couple weeks (Huang and Hsieh, 2020; Irvin et
al., 2021; Kim et al., 2020; Mahabbati et al., 2021). In order to fill the
extremely long gaps (i.e., a couple months), we propose and examine a
two-layer RF-based gap-filling framework (RF-2L) because the RF outperforms
most of the other ML algorithms in gap-filling the half-hourly fluxes over
various ecosystems (Huang and Hsieh, 2020; Irvin et al., 2021; Kim et al.,
2020; Mahabbati et al., 2021) and is more time efficient than the ANN (Irvin
et al., 2021). The procedures of the RF-2L include the following: (1) train the RF model
using the half-hourly data and fill the NEE gaps shorter than 7 d; (2)
calculate daily means of the input variables and the partially filled NEE
data; and (3) train the RF model using the daily data and fill the gaps in
the daily NEE data.</p>
</sec>
</sec>
<sec id="Ch1.S2.SS5">
  <label>2.5</label><title>Input variables</title>
      <p id="d1e733">Besides the abovementioned meteorological variables, the input variables
for the ML algorithms also include the normalized difference vegetation
index (NDVI) and enhanced vegetation index (EVI) from the Moderate
Resolution Imaging Spectroradiometer (MODIS) and three fuzzy variables
(i.e., decimal day of year and sine and cosine functions to represent
seasonal changes) following Moffat et al. (2007).
We obtained the NDVI and EVI data around the flux tower location from the
MOD13Q1 version 6 data product (<uri>https://lpdaac.usgs.gov/products/mod13q1v006/</uri>, last access: 13 July 2020) at 16 d temporal and
250 m spatial resolutions (Didan, 2015). The 16 d NDVI and EVI
data were resampled to 30 min using cubic spline interpolation. Note
that soil water content (SWC) and groundwater table are not included in the
inputs because (1) the SWC measurements at these AWN stations had some issues
for the study period and could not be used to fill the long gaps in tower
SWC data, and (2) the station is primarily fed by rainfall without
groundwater access (Missik et al., 2019, 2021).</p>
      <p id="d1e739">With the RF, we estimate the relative importance of the input variables for
the three different time-of-day scenarios, respectively (Fig. 1). For the
model trained using all the data and the daytime data, <inline-formula><mml:math id="M42" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">g</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the most
important variable, while for the model trained using the nighttime data,
<inline-formula><mml:math id="M43" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">air</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and RH are the most important variables. Overall, the
estimated variable importance indicates that, for the three different time-of-day scenarios, the meteorological inputs except <inline-formula><mml:math id="M44" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">g</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> for the nighttime
data play a comparable role in the trained gap-filling models. Note that
there exists collinearity among the various variables, and thus the model
performance might approach a plateau with certain input variables and
increase slightly with increasing number of inputs, resulting in a
slower, less efficient model. However, to be consistent with previous
studies (e.g., Kim et al., 2020; Moffat et al., 2007), we also include all
available meteorological variables as the inputs to train and evaluate the
models.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F1" specific-use="star"><?xmltex \currentcnt{1}?><?xmltex \def\figurename{Figure}?><label>Figure 1</label><caption><p id="d1e777">Variable importance for the random forest trained without
separating the daytime and nighttime data (All) and separately for daytime
and nighttime data. The variables DOY, <inline-formula><mml:math id="M45" display="inline"><mml:mi>c</mml:mi></mml:math></inline-formula>, and <inline-formula><mml:math id="M46" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula> indicate decimal day of year and
cosine and sine functions, respectively.</p></caption>
          <?xmltex \igopts{width=398.338583pt}?><graphic xlink:href="https://acp.copernicus.org/articles/21/15589/2021/acp-21-15589-2021-f01.png"/>

        </fig>

</sec>
<sec id="Ch1.S2.SS6">
  <label>2.6</label><title>Artificial gap scenarios and performance evaluation</title>
      <p id="d1e808">In order to evaluate the gap-filling algorithms, artificial gaps with
different lengths are randomly generated in the<?pagebreak page15593?> original flux data,
accounting for approximately 10 %–12 % of the NEE data with a
score of 0. Following Moffat et al. (2007)
and Kim et al. (2020), we
consider four artificial gap lengths: 1 h (1-H), 1 d (1-D), 1
week (1-W), and 2 months (2-M). The variations in the number of data
points artificially removed are because after quality control it is hard to
locate even a couple days of data without any missing points (Sect. 3.1). In
order to reduce the potential effect of uneven sample sizes and gap
positions on the performance evaluation, each gap length scenario is
permuted 10 times, resulting in 40 distinct time series with artificial gap
scenarios.</p>
      <p id="d1e811">For each artificial gap scenario, we trained the models separately with only
daytime or nighttime data and with both daytime and nighttime data. The
performance of gap-filling algorithms is evaluated by comparing the
estimated values (<inline-formula><mml:math id="M47" display="inline"><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) with the measured values (<inline-formula><mml:math id="M48" display="inline"><mml:mrow><mml:msub><mml:mi>m</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) for the
artificial gaps. Four commonly used performance metrics are used including
the coefficient of determination (<inline-formula><mml:math id="M49" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula>), root-mean-square error
(RMSE), mean absolute error (MAE), and bias error (BE).
            <disp-formula id="Ch1.E1" content-type="numbered"><label>1</label><mml:math id="M50" display="block"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:msubsup><mml:mo>∑</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:msubsup><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mover accent="true"><mml:mi>e</mml:mi><mml:mo mathvariant="normal">¯</mml:mo></mml:mover></mml:mrow></mml:mfenced><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>m</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mover accent="true"><mml:mi>m</mml:mi><mml:mo mathvariant="normal">¯</mml:mo></mml:mover></mml:mrow></mml:mfenced></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:msubsup><mml:mo>∑</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:msubsup><mml:msup><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mover accent="true"><mml:mi>e</mml:mi><mml:mo mathvariant="normal">¯</mml:mo></mml:mover></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:msubsup><mml:mo>∑</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:msubsup><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>m</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mover accent="true"><mml:mi>m</mml:mi><mml:mo mathvariant="normal">¯</mml:mo></mml:mover></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></disp-formula>

            <disp-formula id="Ch1.E2" content-type="numbered"><label>2</label><mml:math id="M51" display="block"><mml:mrow><mml:mi mathvariant="normal">RMSE</mml:mi><mml:mo>=</mml:mo><mml:msqrt><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msubsup><mml:mo>∑</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:msubsup><mml:msup><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>m</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:mo>∑</mml:mo><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:msup><mml:mn mathvariant="normal">1</mml:mn><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>m</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:mstyle></mml:msqrt></mml:mrow></mml:math></disp-formula>

            <disp-formula id="Ch1.E3" content-type="numbered"><label>3</label><mml:math id="M52" display="block"><mml:mrow><mml:mi mathvariant="normal">MAE</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi>n</mml:mi></mml:mfrac></mml:mstyle><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:mfenced open="|" close="|"><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>m</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:math></disp-formula>

            <disp-formula id="Ch1.E4" content-type="numbered"><label>4</label><mml:math id="M53" display="block"><mml:mrow><mml:mi mathvariant="normal">BE</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi>n</mml:mi></mml:mfrac></mml:mstyle><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:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>m</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:math></disp-formula>
          Here the overbar denotes the mean value.</p>
      <p id="d1e1117">Besides the above statistic metrics, we also calculate the probability
density functions of the measured and estimated values to examine the
performance of ML algorithms in terms of different ranges of NEE values.
Here, the probability density functions are calculated as the binned density
distribution of measured (estimated) NEE values divided by the bin width
(0.2 <inline-formula><mml:math id="M54" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M55" 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> s<inline-formula><mml:math id="M56" 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>).</p>
      <p id="d1e1152">Previous studies also suggested that the model errors of gap-filling
algorithms should approach the measurement random errors of the EC method
(Kim et al., 2020; Moffat et al., 2007; Richardson et al., 2008). In this
study, we compare the model errors with the random measurement errors as a
reference. Here, the random measurement error is estimated following the
method proposed by Finkelstein and Sims (2001).</p>
</sec>
<sec id="Ch1.S2.SS7">
  <label>2.7</label><title>Uncertainty estimation</title>
      <p id="d1e1163">With the 40 distinct artificial gap scenarios, we obtain 40 gap-filled NEE
time series for each method. By replacing the artificial gaps with the
observed data, these time series datasets allow for an evaluation of the
model self-agreement and reliability in filling the actual gaps. Monthly and
annual NEEs are then computed from the gap-filled flux time series. The model
self-agreement can be evaluated by investigating the mean standard
deviations of the monthly NEE (Soloway et al., 2017), whereas the
uncertainties in the monthly and annual NEE can be assessed by comparing the
monthly and annual NEE obtained by each ML algorithm with their ensemble
means (Irvin et al., 2021; Kim et al., 2020; Soloway et al., 2017). Here,
the flux time series gap-filled separately for the daytime and nighttime
periods are combined to determine the monthly and annual NEEs.</p>
</sec>
</sec>
<sec id="Ch1.S3">
  <label>3</label><title>Results</title>
<sec id="Ch1.S3.SS1">
  <label>3.1</label><title>NEE data gap evaluation</title>
      <p id="d1e1182">At the US-Hn1 site, different lengths of gaps were found in NEE data during
the 4 years from 2016 to 2019 (Fig. 2). Gaps with short to medium lengths
were usually caused by low data quality (i.e., gap score of 1), whereas gaps
with medium to extremely long lengths were mostly due to electrical and/or
instrument failures (i.e., gap score of 2). Data gaps with a score of 1 frequently occurred in nighttime because <inline-formula><mml:math id="M57" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> filtering mainly
removes nighttime data. On average, gaps with scores of 1 and 2 accounted
for about 28.4 % and 30.2 %<?pagebreak page15594?> of half-hour NEE data, respectively (Table 1). There were more extremely long gaps in 2018 and 2019 than 2016 and 2017
due to power failures in winter and early spring. Therefore, it is worth
examining the performances of gap-filling algorithms in filling different
lengths of gaps. Overall, about 43.7 % of NEE data were available to
calibrate and validate the gap-filling methods.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F2"><?xmltex \currentcnt{2}?><?xmltex \def\figurename{Figure}?><label>Figure 2</label><caption><p id="d1e1198">Distribution of NEE data gaps by day and hour from 2016 to
2019. NEE data gaps were classified as non-gaps (gap score: 0), gaps due to
low data quality (gap score: 1), and gaps due to electrical and/or
instrument failures (gap score: 2).</p></caption>
          <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://acp.copernicus.org/articles/21/15589/2021/acp-21-15589-2021-f02.png"/>

        </fig>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T1" specific-use="star"><?xmltex \currentcnt{1}?><label>Table 1</label><caption><p id="d1e1210">Percentage of NEE data with different gap scores (0/1/2)
for daytime and nighttime from 2016 to 2019. NEE gaps are classified as
non-gaps (gap score: 0), gaps due to low data quality (gap score: 1), and
gaps due to electrical and/or instrument failures (gap score: 2).</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="4">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="right"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="right"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">Daytime</oasis:entry>
         <oasis:entry colname="col3">Nighttime</oasis:entry>
         <oasis:entry colname="col4">All</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">2016</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M58" display="inline"><mml:mrow><mml:mn mathvariant="normal">36.1</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">9.6</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2.7</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M59" display="inline"><mml:mrow><mml:mn mathvariant="normal">19.9</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">26.1</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">5.6</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M60" display="inline"><mml:mrow><mml:mn mathvariant="normal">56.0</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">35.7</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">8.3</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">2017</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M61" display="inline"><mml:mrow><mml:mn mathvariant="normal">31.5</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">9.8</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">7.1</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M62" display="inline"><mml:mrow><mml:mn mathvariant="normal">15.4</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">22.3</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">13.9</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M63" display="inline"><mml:mrow><mml:mn mathvariant="normal">46.9</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">32.1</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">21.0</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">2018</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M64" display="inline"><mml:mrow><mml:mn mathvariant="normal">27.8</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">6.8</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">14.1</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M65" display="inline"><mml:mrow><mml:mn mathvariant="normal">10.9</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">16.5</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">23.9</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M66" display="inline"><mml:mrow><mml:mn mathvariant="normal">38.7</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">23.3</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">38.0</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">2019</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M67" display="inline"><mml:mrow><mml:mn mathvariant="normal">23.4</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">7.1</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">17.9</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M68" display="inline"><mml:mrow><mml:mn mathvariant="normal">10.0</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">18.1</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">23.5</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M69" display="inline"><mml:mrow><mml:mn mathvariant="normal">33.4</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">25.2</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">41.4</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Overall</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M70" display="inline"><mml:mrow><mml:mn mathvariant="normal">29.7</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">8.4</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">10.5</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M71" display="inline"><mml:mrow><mml:mn mathvariant="normal">14.0</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">20.7</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">16.7</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M72" display="inline"><mml:mrow><mml:mn mathvariant="normal">43.7</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">29.1</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi><mml:mo>/</mml:mo><mml:mn mathvariant="normal">27.2</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

</sec>
<sec id="Ch1.S3.SS2">
  <label>3.2</label><title>Performance of ML gap-filling algorithms with different gap lengths</title>
      <p id="d1e1675">We first train and evaluate the ML algorithms without separating the daytime
and nighttime data (i.e., using all the data). The overall performance of
each algorithm degrades as the gap length increases, while the RF slightly
outperforms the other algorithms for all the gap scenarios (Fig. 3 and Table 2). For the gap length of 1 h (1-H), all four ML algorithms have
the highest <inline-formula><mml:math id="M73" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> and the lowest RMSE and MAE. As the gap length
increases, <inline-formula><mml:math id="M74" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> for all ML algorithms decreases and RMSE (MAE) increases.
For 1-H, the RF has <inline-formula><mml:math id="M75" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> and RMSE of <inline-formula><mml:math id="M76" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.77</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M77" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.47</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula>, respectively, whereas for the gap length of 2 months (2-M), the
<inline-formula><mml:math id="M78" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> decreases to <inline-formula><mml:math id="M79" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.60</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.22</mml:mn></mml:mrow></mml:math></inline-formula> and RMSE increases to <inline-formula><mml:math id="M80" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.62</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.17</mml:mn></mml:mrow></mml:math></inline-formula>, respectively. The magnitudes of BE for all ML algorithms also increase
with the increasing gap lengths. The performance of these ML algorithms in
NEE gap-filling at this semiarid sagebrush site is comparable to that at
some grassland sites (Huang and Hsieh, 2020),
but lower than that at forest and cropland sites (Huang
and Hsieh, 2020; Moffat et al., 2007). The relatively low performance might
be caused by the spatial complexities of the targeted <inline-formula><mml:math id="M81" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> flux and
input meteorological drivers within the flux footprints (Chu et al., 2021;
Stoy et al., 2013), especially for the scattered sagebrush ecosystems.</p>
      <p id="d1e1782">Following Moffat et al. (2007),
we also perform the algorithm training and evaluation separately for daytime
and nighttime data. For the daytime data, the performance of each algorithm
is similar to that for all the data, whereas the algorithm performance for
the nighttime data is degraded with <inline-formula><mml:math id="M82" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> of 0.1–0.2 and RMSE of
0.7–0.8, similar to the results for some forest sites in Moffat et al. (2007).
The poor performance of the gap-filling algorithms for the nighttime data is
primarily attributed to the shortage of available nighttime data for
training the models (Fig. 2 and Table 1). However, the change of BE with the
increased gap length at night is relatively small compared to that for the
daytime data, especially for the ANN and RF. In addition, BE for long gaps
(e.g., 2-M) has opposite signs for the daytime and nighttime data, resulting
in a smaller BE for all the data.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F3" specific-use="star"><?xmltex \currentcnt{3}?><?xmltex \def\figurename{Figure}?><label>Figure 3</label><caption><p id="d1e1798">Performance of NEE gap-filling algorithms for the four gap
length scenarios (i.e., 1 h (1-H), 1 d (1-D), 1 week (1-W), and
2 months (2-M)).</p></caption>
          <?xmltex \igopts{width=369.885827pt}?><graphic xlink:href="https://acp.copernicus.org/articles/21/15589/2021/acp-21-15589-2021-f03.png"/>

        </fig>

<?xmltex \floatpos{p}?><table-wrap id="Ch1.T2" specific-use="star"><?xmltex \currentcnt{2}?><label>Table 2</label><caption><p id="d1e1811">Performance metrics of the four ML gap-filling algorithms
for the four gap length scenarios. The ML algorithms are trained and
evaluated without separating daytime and nighttime data.</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="left"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="right"/>
     <oasis:colspec colnum="5" colname="col5" align="right"/>
     <oasis:colspec colnum="6" colname="col6" align="right"/>
     <oasis:thead>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">Gap length</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M83" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4">RMSE</oasis:entry>
         <oasis:entry colname="col5">MAE</oasis:entry>
         <oasis:entry colname="col6">BE</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">scenarios</oasis:entry>
         <oasis:entry colname="col3"/>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5">(<inline-formula><mml:math id="M84" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M85" 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> s<inline-formula><mml:math id="M86" 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>)</oasis:entry>
         <oasis:entry colname="col6">(<inline-formula><mml:math id="M87" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M88" 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> s<inline-formula><mml:math id="M89" 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>)</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">ANN</oasis:entry>
         <oasis:entry colname="col2">1 h</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M90" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.71</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M91" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.52</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M92" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.50</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.01</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M93" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.005</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.016</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">1 d</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M94" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.70</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M95" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.54</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.04</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M96" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.51</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M97" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.005</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.017</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">1 week</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M98" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.69</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.03</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M99" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.54</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.03</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M100" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.51</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.04</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M101" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.009</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.046</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">2 months</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M102" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.59</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.23</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M103" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.63</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.19</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M104" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.62</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.07</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M105" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.057</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.158</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">KNN</oasis:entry>
         <oasis:entry colname="col2">1 h</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M106" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.71</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M107" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.53</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M108" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.50</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.01</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M109" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.001</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.020</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">1 d</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M110" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.66</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.04</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M111" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.57</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.04</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M112" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.55</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M113" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.004</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.033</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">1 week</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M114" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.63</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.05</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M115" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.59</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.04</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M116" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.57</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.06</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M117" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.007</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.040</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">2 months</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M118" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.51</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.24</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M119" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.68</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.19</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M120" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.69</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.08</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M121" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.059</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.175</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">RF</oasis:entry>
         <oasis:entry colname="col2">1 h</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M122" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.77</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M123" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.47</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M124" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.43</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.01</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M125" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.003</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.017</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">1 d</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M126" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.73</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.04</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M127" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.51</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.04</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M128" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.48</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M129" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.008</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.024</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">1 week</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M130" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.68</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.03</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M131" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.55</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.03</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M132" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.52</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.05</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M133" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.029</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.033</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">2 months</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M134" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.60</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.22</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M135" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.62</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.17</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M136" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.61</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.05</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M137" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.061</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.137</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">SVM</oasis:entry>
         <oasis:entry colname="col2">1 h</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M138" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.75</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M139" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.48</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M140" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.45</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.01</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M141" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.014</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.015</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">1 d</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M142" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.71</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.03</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M143" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.52</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.03</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M144" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.49</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.02</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M145" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.022</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.032</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">1 week</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M146" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.67</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.03</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M147" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.56</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.03</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M148" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.53</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.04</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M149" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.000</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.031</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">2 months</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M150" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.47</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.25</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M151" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.73</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.22</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M152" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.77</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.16</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M153" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.062</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.146</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

</sec>
<sec id="Ch1.S3.SS3">
  <label>3.3</label><title>Comparison of probability density functions (PDFs) between measured and
estimated NEE</title>
      <p id="d1e2959">Figure 4 shows the comparison of the probability density functions (PDFs)
between the measured and estimated NEE of the gap-filling algorithms. The
estimated NEE by the gap-filling algorithms has a similar shape of PDFs, which
is also quite similar to that of the measured NEE with some difference in
amplitudes. At this site, the measured half-hourly NEE ranges from <inline-formula><mml:math id="M154" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>6 to 4 <inline-formula><mml:math id="M155" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M156" 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> s<inline-formula><mml:math id="M157" 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>, while the estimated NEE varies from
approximately <inline-formula><mml:math id="M158" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>5 to 2 <inline-formula><mml:math id="M159" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M160" 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> s<inline-formula><mml:math id="M161" 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>. For all the data, the
PDFs of the estimated NEE present two peaks at around <inline-formula><mml:math id="M162" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.2 and 0.2 <inline-formula><mml:math id="M163" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M164" 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> s<inline-formula><mml:math id="M165" 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>, whereas the PDF of the measured NEE only has one peak
at around 0.2 <inline-formula><mml:math id="M166" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M167" 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> s<inline-formula><mml:math id="M168" 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>. That means that the PDFs of the
estimated NEE have a higher amplitude than the measured NEE in the range of
<inline-formula><mml:math id="M169" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.6 to 0.0 <inline-formula><mml:math id="M170" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M171" 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> s<inline-formula><mml:math id="M172" 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>. However, in the range of <inline-formula><mml:math id="M173" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>2.0 to <inline-formula><mml:math id="M174" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.8 <inline-formula><mml:math id="M175" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M176" 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> s<inline-formula><mml:math id="M177" 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>, the amplitude of the PDFs of the
estimated NEE is lower than that of the measured NEE. The PDFs of the
estimated NEE for the daytime data show one peak at around <inline-formula><mml:math id="M178" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>0.2 <inline-formula><mml:math id="M179" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M180" 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> s<inline-formula><mml:math id="M181" 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>, with their shapes similar to those for all the data in the
range with the negative NEE values; for the nighttime data, the estimated
NEE has a narrower shape of PDF than that of the measured NEE. These results
suggest that the gap-filling algorithms underestimate the magnitudes of NEE
in the range of <inline-formula><mml:math id="M182" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>2.0 to 0.0 <inline-formula><mml:math id="M183" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M184" 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> s<inline-formula><mml:math id="M185" 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> and the magnitudes
of the peak values of NEE.</p>

      <?xmltex \floatpos{p}?><fig id="Ch1.F4" specific-use="star"><?xmltex \currentcnt{4}?><?xmltex \def\figurename{Figure}?><label>Figure 4</label><caption><p id="d1e3281">Comparison of probability density functions (PDFs) for the
measured and estimated NEE of the gap-filling algorithms using daytime and
nighttime data together and separately. The PDFs are estimated from the
binned density distributions divided by the bin width. The bin width is 0.2 <inline-formula><mml:math id="M186" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M187" 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> s<inline-formula><mml:math id="M188" 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>, and bins with fewer than 10 data points are
excluded.</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://acp.copernicus.org/articles/21/15589/2021/acp-21-15589-2021-f04.png"/>

        </fig>

</sec>
<?pagebreak page15595?><sec id="Ch1.S3.SS4">
  <label>3.4</label><title>Comparison of measurement error and absolute error of ML algorithms</title>
      <p id="d1e3330">Figure 5 shows the absolute errors as a function of bin-averaged NEE values
for the gap-filling algorithms with the estimated random measurement errors (Finkelstein and Sims, 2001) as a reference. For
all the data, the binned absolute errors for the ML algorithms are quite
close to each other, and they are also close to the random errors in the
range of negative NEE values but slightly deviated from the random errors in
the range of positive NEE values. Note that the large deviations from the
random errors at the edges are most likely due to the small number of data
points as illustrated in Fig. 4. The binned absolute errors for the daytime
data are close to the random errors in the NEE range of about <inline-formula><mml:math id="M189" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>4.0 to 1.0 <inline-formula><mml:math id="M190" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M191" 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> s<inline-formula><mml:math id="M192" 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>, whereas the binned absolute errors for the
nighttime data are consistently higher than the random errors. For all the
data, the mean value of the random errors is 0.56 <inline-formula><mml:math id="M193" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M194" 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> s<inline-formula><mml:math id="M195" 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>, while the MAE of the ML algorithms is 0.55, 0.59, 0.53, and 0.58 <inline-formula><mml:math id="M196" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M197" 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> s<inline-formula><mml:math id="M198" 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>for the ANN, KNN, RF, and SVM, respectively.
For the daytime data, the MAE of the ML algorithms (0.59, 0.62, 0.55, and
0.62 <inline-formula><mml:math id="M199" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M200" 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> s<inline-formula><mml:math id="M201" 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 smaller than the mean value of
the random error (0.66 <inline-formula><mml:math id="M202" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M203" 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> s<inline-formula><mml:math id="M204" display="inline"><mml:mrow><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, whereas for the
nighttime data, the MAE of the ML algorithms (0.46, 0.48, 0.47, and 0.49 <inline-formula><mml:math id="M205" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M206" 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> s<inline-formula><mml:math id="M207" display="inline"><mml:mrow><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is larger than the mean value of the
random error (0.32 <inline-formula><mml:math id="M208" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M209" 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> s<inline-formula><mml:math id="M210" display="inline"><mml:mrow><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>. Overall, the RF and ANN
have better performance in filling NEE gaps at this semiarid site,
especially for the daytime data, although the RF is more time efficient than
the ANN. In addition, all four ML algorithms have low performance in
gap-filling the nighttime data, though the BE for the nighttime data is
relatively small compared to the daytime data mostly due to the low
magnitudes of the nighttime NEE.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F5" specific-use="star"><?xmltex \currentcnt{5}?><?xmltex \def\figurename{Figure}?><label>Figure 5</label><caption><p id="d1e3578">Comparison of NEE measurement and model uncertainties of
the gap-filling algorithms using the data and the daytime and nighttime
data. The random measurement error is estimated by Finkelstein and Sims (2001). The bin width is 0.2 <inline-formula><mml:math id="M211" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi></mml:mrow></mml:math></inline-formula>mol m<inline-formula><mml:math id="M212" 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> s<inline-formula><mml:math id="M213" 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>, and bins with fewer than 10 data points are excluded.</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://acp.copernicus.org/articles/21/15589/2021/acp-21-15589-2021-f05.png"/>

        </fig>

</sec>
</sec>
<?pagebreak page15597?><sec id="Ch1.S4">
  <label>4</label><title>Discussion</title>
<sec id="Ch1.S4.SS1">
  <label>4.1</label><title>Uncertainties in carbon budgets caused by gap-filling</title>
      <p id="d1e3635">We now examine uncertainties in carbon budgets caused by gap filling with a
different training dataset and different methods. Figure 6 compares the
monthly NEE of the gap-filled data during 2016–2019. The subscript A denotes
that the daytime and nighttime NEE data are gap-filled together using the ML
algorithms trained with all the data, and DN denotes that the daytime and
nighttime data are gap-filled separately using the trained ML algorithms and
then combined together to determine the monthly NEE. The error bar denotes
1 standard deviation of the monthly NEE of the 40 gap-filled time series.
Here the gap-filled NEE using the most commonly used MDS method is also
included as a reference for comparison.</p>
      <p id="d1e3638">With the 40 gap-filled NEE time series for each method, we first investigate
the self-agreement of each method as the method with good self-agreement
should have small variations in the accumulative NEE among different trails.
For months with gaps less than 7 d (Fig. 2; e.g., February to October in
2016), all four ML algorithms have good self-agreement, with the mean
standard deviations of the monthly NEE ranging from 0.4 (ANN) to 1.0 (SVM) g C m<inline-formula><mml:math id="M214" 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>. Both the RF and KNN have mean standard deviations of
approximately 0.7 g C m<inline-formula><mml:math id="M215" 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> during these months. For months with long
gaps (i.e., <inline-formula><mml:math id="M216" display="inline"><mml:mrow><mml:mi mathvariant="italic">&gt;</mml:mi><mml:mn mathvariant="normal">7</mml:mn></mml:mrow></mml:math></inline-formula> d), the mean standard deviations of the
monthly NEE are 1.2, 1.3, 1.5, and 3.3 g C m<inline-formula><mml:math id="M217" 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> for the ANN, KNN, RF,
and SVM, respectively. From this perspective, the ANN is the most reliable
method in gap-filling because the predicted values are averages of the 20 best
runs (Sect. 2.4.1). In other words, most of the ML algorithms are quite
consistent in filling the gaps, and the differences in the monthly NEE
caused by changes in training dataset are less than 1.5 g C m<inline-formula><mml:math id="M218" 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> except for the SVM.</p>
      <p id="d1e3699">The uncertainties in the monthly NEE as a result of the differences in the
methods are now assessed with the monthly NEE from the MDS as a reference.
The difference among the methods ranges from 0.2 to 1.3 g C m<inline-formula><mml:math id="M219" 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> for
months with gaps less than 7 d and ranges from 0.8 to 10.2 g C m<inline-formula><mml:math id="M220" 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>
for months with long gaps, which is 0.8 to 4.8 g C m<inline-formula><mml:math id="M221" 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> without
including the SVM. For the ANN and RF, the differences in the monthly NEE
between A and DN are usually quite small for all the months, whereas the KNN
presents opposite signs for A and DN in months with long gaps, which means
that the KNN is unable to handle the daytime and nighttime data together.
Overall, for months with short to medium gaps (i.e., <inline-formula><mml:math id="M222" display="inline"><mml:mrow><mml:mi mathvariant="italic">&lt;</mml:mi><mml:mn mathvariant="normal">7</mml:mn></mml:mrow></mml:math></inline-formula> d),
there is no significant difference in the monthly NEE among the methods
including the MDS method. For months with long gaps (i.e., <inline-formula><mml:math id="M223" display="inline"><mml:mrow><mml:mi mathvariant="italic">&gt;</mml:mi><mml:mn mathvariant="normal">7</mml:mn></mml:mrow></mml:math></inline-formula> d), the MDS method usually fails, and the ANN and RF have the best
performance, and they have the potential to handle the daytime and nighttime
data gap-filling together, as also supported by the distribution of
estimated variable importance (Fig. 1).</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F6" specific-use="star"><?xmltex \currentcnt{6}?><?xmltex \def\figurename{Figure}?><label>Figure 6</label><caption><p id="d1e3761">Monthly total net ecosystem exchange (NEE, g C m<inline-formula><mml:math id="M224" 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>)
at the US-Hn1 in <bold>(a)–(d)</bold> 2016–2019. The subscript A denotes that the daytime
and nighttime NEE data are gap-filled together using the ML algorithms
trained with all the data, and DN denotes that the daytime and nighttime
data are gap-filled separately and then combined to determine the monthly
total values. RF-2L denotes the proposed two-layer RF-based gap-filling
framework, and MDS is the marginal distribution sampling algorithm. The
error bar denotes 1 standard deviation of the monthly total NEE of the 40
gap-filled time series.</p></caption>
          <?xmltex \igopts{width=369.885827pt}?><graphic xlink:href="https://acp.copernicus.org/articles/21/15589/2021/acp-21-15589-2021-f06.png"/>

        </fig>

      <?pagebreak page15598?><p id="d1e3785">The uncertainties in the annual total NEE are estimated by comparing the
annual NEE obtained by each ML algorithm with their ensemble means (Fig. 7).
Obviously, both the KNN and SVM are largely apart from the ensemble means,
whereas the ANN and RF are relatively close to the ensemble means except for
the RF in 2019. The mean standard deviations of the 40 trials for the annual
NEE by ANN range from 2.5 to 4.3 g C m<inline-formula><mml:math id="M225" 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>, the mean standard deviations
by the RF vary from 3.4 to 7.1 g C m<inline-formula><mml:math id="M226" 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>, and the mean standard
deviations by the KNN and SVM vary from 5.1 to 13.9 g C m<inline-formula><mml:math id="M227" 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>. The
differences between the ANN and RF are within <inline-formula><mml:math id="M228" display="inline"><mml:mrow><mml:mo>±</mml:mo><mml:mn mathvariant="normal">8.4</mml:mn></mml:mrow></mml:math></inline-formula> g C m<inline-formula><mml:math id="M229" 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>, and
the differences between A and DN are less than 1.7 and 4.5 g C m<inline-formula><mml:math id="M230" 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> for
the ANN and RF, respectively. The overall uncertainties in the annual NEE
caused by the ANN and RF are usually less than 15.5 g C m<inline-formula><mml:math id="M231" 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>, while the
uncertainties can be as large as 27.2 g C m<inline-formula><mml:math id="M232" 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> if including the KNN and
SVM. Therefore, it is recommended to use the ensemble mean of the ANN and RF
as the best estimate of the annual NEE at the semiarid sagebrush site. The
annual mean NEE by the ANN and RF is <inline-formula><mml:math id="M233" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">15.4</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">4.7</mml:mn></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M234" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">50.0</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">9.1</mml:mn></mml:mrow></mml:math></inline-formula>,
<inline-formula><mml:math id="M235" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">31.4</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">7.2</mml:mn></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M236" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">40.3</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">8.7</mml:mn></mml:mrow></mml:math></inline-formula> g C m<inline-formula><mml:math id="M237" 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> for 2016, 2017, 2018,
and 2019, respectively. In addition, the annual total NEE by the MDS is
about 5.6–15.6 g C m <inline-formula><mml:math id="M238" 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> larger than that by the ANN and
RF.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F7" specific-use="star"><?xmltex \currentcnt{7}?><?xmltex \def\figurename{Figure}?><label>Figure 7</label><caption><p id="d1e3966">Comparison of the annual mean NEE from the ML algorithms
and their ensemble mean. The subscript A denotes that daytime and nighttime
NEE data are gap-filled together using the ML algorithms trained with all
the data, and DN denotes that the daytime and nighttime data are gap-filled
separately and then combined to determine the monthly total values.</p></caption>
          <?xmltex \igopts{width=398.338583pt}?><graphic xlink:href="https://acp.copernicus.org/articles/21/15589/2021/acp-21-15589-2021-f07.png"/>

        </fig>

</sec>
<sec id="Ch1.S4.SS2">
  <label>4.2</label><title>Performance of the two-layer RF-based gap-filling framework (RF-2L)</title>
      <p id="d1e3983">Following the same procedures as for evaluating the ML algorithms above, the
performance of RF-2L in filling the long gaps (i.e., 2 months) in the
daytime and nighttime daily means is also accessed. Using a 10-fold
cross-validation repeated 10 times, the <inline-formula><mml:math id="M239" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> of the second-layer RF
model is 0.78, 0.85, and 0.77 for all the data, the daytime data, and the
nighttime data, respectively. The mean BE for this framework is 0.04 g C m<inline-formula><mml:math id="M240" 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> d <inline-formula><mml:math id="M241" 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>, which is slightly smaller than that of the original RF
with the half-hourly NEE data (0.06 g C m<inline-formula><mml:math id="M242" 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> d<inline-formula><mml:math id="M243" 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>).</p>
      <p id="d1e4045">The uncertainties of the RF-2L are accessed by comparing the monthly and
annual NEE with other ML algorithms. As shown in Figs. 6 and 7, the monthly
and annual NEEs by the RF-2L are quite close to those by the RF. For A (i.e.,
trained by all the data), the difference in the annual mean NEE ranges from
0.0 to 2.2 g C m<inline-formula><mml:math id="M244" 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>, whereas for DN (i.e.,<?pagebreak page15599?> trained by the separated
daytime and nighttime data), the difference varies from 0.8 to 3.3 g C m<inline-formula><mml:math id="M245" 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>. This test suggests that it is not necessary to fill all the gaps
in the half-hourly NEE data if the focus is on assessing the uncertainties
in annual mean NEE and interannual variability. Therefore, the RF-2L
provides an alternative in filling extremely long gaps to characterize
annual carbon budgets and interannual variability in dryland ecosystems. In
addition, the performance of the different ML algorithms is quite consistent
when filling short to medium gaps (e.g., <inline-formula><mml:math id="M246" display="inline"><mml:mrow><mml:mi mathvariant="italic">&lt;</mml:mi><mml:mn mathvariant="normal">7</mml:mn></mml:mrow></mml:math></inline-formula> d), and thus a
promising extension of the proposed approach is that using the ensemble mean
of multiple methods as the input of the second RF layer, which may have the
potential to lower the uncertainties in the gap-filled data. Of course,
other reliable algorithms can also be applied in the second layer to reduce
bias estimation caused by long gaps.</p>
</sec>
</sec>
<sec id="Ch1.S5" sec-type="conclusions">
  <label>5</label><title>Conclusions</title>
      <p id="d1e4092">The performance of the four ML algorithms in filling the NEE data gaps is
evaluated at a semiarid sagebrush ecosystem site. Due to the relatively
small range of NEE variations, the overall performance of these gap-filling
algorithms at this site is lower than that at other forest sites but
comparable to that at other grassland sites. The RF algorithm outperforms
the other algorithms in terms of the overall performance. It is not
necessary to train the model separately for daytime and nighttime data when
using the ANN and RF algorithms. The uncertainties in the monthly and annual
NEEs due to the gap-filling approaches are evaluated by the standard
deviations of monthly NEE of multiple trials for each method and also
accessed by the difference in the monthly NEE by the methods. With the ANN
and RF, the uncertainties in annual NEE are usually within 16 g C m<inline-formula><mml:math id="M247" 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>
at this semiarid sagebrush site. Extremely long gaps in half-hourly NEE
data due to power failures cannot be confidently filled by either of the
methods because of the high uncertainties in <inline-formula><mml:math id="M248" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> and RMSE, and thus we
propose and test a two-layer RF-based gap-filling framework. With this
framework, the improvement in model performance is significant, especially
for the nighttime data. Therefore, it is recommended that the two-layer RF-based framework (RF-2L) be used if there are extremely long gaps
existed in the NEE dataset and if there is a need to investigate its annual
and interannual variability. However, it is hard to assess the uncertainties
caused by bias in the gap-filled meteorological variables using the current
approaches and study design, which need to be explored in future studies.</p>
</sec>

      
      </body>
    <back><notes notes-type="codeavailability"><title>Code availability</title>

      <p id="d1e4122">The code used in this study is available from Jingyu Yao  and Jianping Huang upon request.</p>
  </notes><notes notes-type="dataavailability"><title>Data availability</title>

      <p id="d1e4128">The data used in this study are deposited in a public domain repository at <ext-link xlink:href="https://doi.org/10.6084/m9.figshare.14747952" ext-link-type="DOI">10.6084/m9.figshare.14747952</ext-link> (Yao et al., 2021).</p>
  </notes><notes notes-type="authorcontribution"><title>Author contributions</title>

      <p id="d1e4137">JY, ZG, and HL contributed equally to this work. JH designed the
study with substantial input from all coauthors. ZG and HL conducted the
fieldwork and obtained and processed the EC data. JY performed the
gap-filling and analyzed the results. JY and ZG drafted the manuscript.
JH, HL, and GW<?pagebreak page15600?> contributed to the result analysis and interpretation.
All authors commented on and approved the final paper.</p>
  </notes><notes notes-type="competinginterests"><title>Competing interests</title>

      <p id="d1e4143">Some authors are members of the editorial board of <italic>Atmospheric Chemistry and Physics</italic>. The peer-review process was guided by an independent editor, and the authors have also no other competing interests to declare.</p>
  </notes><notes notes-type="disclaimer"><title>Disclaimer</title>

      <p id="d1e4152">Publisher’s note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.</p>
  </notes><ack><title>Acknowledgements</title><p id="d1e4158">We thank Justine Missik, Eric Russell, Evan Arntzen, Douglas Mcfarland, Brittany Verbeke, Xingyuan Chen, Maoyi Huang, and many other participants for their assistance in the field. We thank the researchers and contributors of the MODIS products and AWN weather data.</p></ack><notes notes-type="financialsupport"><title>Financial support</title>

      <p id="d1e4163">This research has been supported by the Second Tibetan Plateau Scientific Expedition and Research Program (STEP) (grant no. 2019QZKK0602), the National Natural Science Foundation of China (grant nos. 41521004, 41991231, and 41975075), the Foundation of Key Laboratory for Semi-Arid Climate Change of the Ministry of Education in Lanzhou University, the China 111 Project (grant no. B13045), the U.S. National Science Foundation (grant nos. NSF-AGS-1419614 and NSF-AGS-1853050), and the U.S. Department of Energy (DOE) Office of Biological and Environmental Research (BER) as part of BER's Subsurface Biogeochemistry Research Program (SBR) at the Pacific Northwest National Laboratory (PNNL). PNNL is operated by Battelle Memorial Institute for the U.S. DOE (grant no. DE‐AC05‐76RL01830).</p>
  </notes><notes notes-type="reviewstatement"><title>Review statement</title>

      <p id="d1e4169">This paper was edited by Hailong Wang and reviewed by two anonymous referees.</p>
  </notes><ref-list>
    <title>References</title>

      <ref id="bib1.bib1"><label>1</label><?label 1?><mixed-citation>Ahlström, A., Raupach, M. R., Schurgers, G., Smith, B., Arneth, A.,
Jung, M., Reichstein, M., Canadell, J. G., Friedlingstein, P., Jain, A. K.,
Kato, E., Poulter, B., Sitch, S., Stocker, B. D., Viovy, N., Wang, Y. P.,
Wiltshire, A., Zaehle, S., and Zeng, N.: The dominant role of semi-arid
ecosystems in the trend and variability of the land CO<inline-formula><mml:math id="M249" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> sink, Science,
348, 895–899, <ext-link xlink:href="https://doi.org/10.1126/science.aaa1668" ext-link-type="DOI">10.1126/science.aaa1668</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib2"><label>2</label><?label 1?><mixed-citation>Aubinet, M., Vesala, T., and Papale, D. (Eds.): Eddy Covariance: A Practical Guide to Measurement and Data Analysis, Springer, Dordrecht, the Netherlands, 438 pp., <ext-link xlink:href="https://doi.org/10.1007/978-94-007-2351-1" ext-link-type="DOI">10.1007/978-94-007-2351-1</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bib3"><label>3</label><?label 1?><mixed-citation>Baldocchi, D. and Sturtevant, C.: Does day and night sampling reduce
spurious correlation between canopy photosynthesis and ecosystem
respiration?, Agr. Forest Meteorol., 207, 117–126,
<ext-link xlink:href="https://doi.org/10.1016/j.agrformet.2015.03.010" ext-link-type="DOI">10.1016/j.agrformet.2015.03.010</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib4"><label>4</label><?label 1?><mixed-citation>Baldocchi, D. D.: Assessing the eddy covariance technique for evaluating
carbon dioxide exchange rates of ecosystems: past, present and future, Glob.
Change Biol., 9, 479–492, <ext-link xlink:href="https://doi.org/10.1046/j.1365-2486.2003.00629.x" ext-link-type="DOI">10.1046/j.1365-2486.2003.00629.x</ext-link>, 2003.</mixed-citation></ref>
      <ref id="bib1.bib5"><label>5</label><?label 1?><mixed-citation>Berg, A. and McColl, K. A.: No projected global drylands expansion under
greenhouse warming, Nat. Clim. Chang., 11, 331–337,
<ext-link xlink:href="https://doi.org/10.1038/s41558-021-01007-8" ext-link-type="DOI">10.1038/s41558-021-01007-8</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib6"><label>6</label><?label 1?><mixed-citation>Biederman, J. A., Scott, R. L., Bell, T. W., Bowling, D. R., Dore, S.,
Garatuza-Payan, J., Kolb, T. E., Krishnan, P., Krofcheck, D. J., Litvak, M.
E., Maurer, G. E., Meyers, T. P., OECHEL, W. C., Papuga, S. A.,
Ponce-Campos, G. E., Rodriguez, J. C., Smith, W. K., Vargas, R., Watts, C.
J., Yepez, E. A., Goulden, M. L., Garatuza Payan, J., Kolb, T. E., Krishnan,
P., Krofcheck, D. J., Litvak, M. E., Maurer, G. E., Meyers, T. P., OECHEL,
W. C., Papuga, S. A., Ponce-Campos, G. E., Rodriguez, J. C., Smith, W. K.,
Vargas, R., Watts, C. J., Yepez, E. A., and Goulden, M. L.: CO<inline-formula><mml:math id="M250" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> exchange and
evapotranspiration across dryland ecosystems of southwestern North America,
Glob. Change Biol., 23, 4204–4221, <ext-link xlink:href="https://doi.org/10.1111/gcb.13686" ext-link-type="DOI">10.1111/gcb.13686</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib7"><label>7</label><?label 1?><mixed-citation>Breiman, L.: Random forests, Mach. Learn., 45, 5–32,
<ext-link xlink:href="https://doi.org/10.1023/A:1010933404324" ext-link-type="DOI">10.1023/A:1010933404324</ext-link>, 2001.</mixed-citation></ref>
      <ref id="bib1.bib8"><label>8</label><?label 1?><mixed-citation>Chen, Y. Y., Chu, C. R., and Li, M. H.: A gap-filling model for eddy
covariance latent heat flux: Estimating evapotranspiration of a subtropical
seasonal evergreen broad-leaved forest as an example, J. Hydrol., 468–469,
101–110, <ext-link xlink:href="https://doi.org/10.1016/j.jhydrol.2012.08.026" ext-link-type="DOI">10.1016/j.jhydrol.2012.08.026</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bib9"><label>9</label><?label 1?><mixed-citation>Chu, H., Luo, X., Ouyang, Z., Chan, W. S., Dengel, S., Biraud, S. C., Torn,
M. S., Metzger, S., Kumar, J., Arain, M. A., Arkebauer, T. J., Baldocchi,
D., Bernacchi, C., Billesbach, D., Black, T. A., Blanken, P. D., Bohrer, G.,
Bracho, R., Brown, S., Brunsell, N. A., Chen, J., Chen, X., Clark, K.,
Desai, A. R., Duman, T., Durden, D., Fares, S., Forbrich, I., Gamon, J. A.,
Gough, C. M., Griffis, T., Helbig, M., Hollinger, D., Humphreys, E., Ikawa,
H., Iwata, H., Ju, Y., Knowles, J. F., Knox, S. H., Kobayashi, H., Kolb, T.,
Law, B., Lee, X., Litvak, M., Liu, H., Munger, J. W., Noormets, A., Novick,
K., Oberbauer, S. F., Oechel, W., Oikawa, P., Papuga, S. A., Pendall, E.,
Prajapati, P., Prueger, J., Quinton, W. L., Richardson, A. D., Russell, E.
S., Scott, R. L., Starr, G., Staebler, R., Stoy, P. C.,
Stuart-Haëntjens, E., Sonnentag, O., Sullivan, R. C., Suyker, A.,
Ueyama, M., Vargas, R., Wood, J. D., and Zona, D.: Representativeness of
Eddy-Covariance flux footprints for areas surrounding AmeriFlux sites,
Agr. Forest Meteorol., 301–302, 108350,
<ext-link xlink:href="https://doi.org/10.1016/J.AGRFORMET.2021.108350" ext-link-type="DOI">10.1016/J.AGRFORMET.2021.108350</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib10"><label>10</label><?label 1?><mixed-citation>Cortes, C. and Vapnik, V.: Support-vector networks, Mach. Learn., 20, 273–297, <ext-link xlink:href="https://doi.org/10.1007/bf00994018" ext-link-type="DOI">10.1007/bf00994018</ext-link>, 1995.</mixed-citation></ref>
      <ref id="bib1.bib11"><label>11</label><?label 1?><mixed-citation>Delwiche, K. B., Knox, S. H., Malhotra, A., Fluet-Chouinard, E., McNicol, G., Feron, S., Ouyang, Z., Papale, D., Trotta, C., Canfora, E., Cheah, Y.-W., Christianson, D., Alberto, Ma. C. R., Alekseychik, P., Aurela, M., Baldocchi, D., Bansal, S., Billesbach, D. P., Bohrer, G., Bracho, R., Buchmann, N., Campbell, D. I., Celis, G., Chen, J., Chen, W., Chu, H., Dalmagro, H. J., Dengel, S., Desai, A. R., Detto, M., Dolman, H., Eichelmann, E., Euskirchen, E., Famulari, D., Fuchs, K., Goeckede, M., Gogo, S., Gondwe, M. J., Goodrich, J. P., Gottschalk, P., Graham, S. L., Heimann, M., Helbig, M., Helfter, C., Hemes, K. S., Hirano, T., Hollinger, D., Hörtnagl, L., Iwata, H., Jacotot, A., Jurasinski, G.<?pagebreak page15601?>, Kang, M., Kasak, K., King, J., Klatt, J., Koebsch, F., Krauss, K. W., Lai, D. Y. F., Lohila, A., Mammarella, I., Belelli Marchesini, L., Manca, G., Matthes, J. H., Maximov, T., Merbold, L., Mitra, B., Morin, T. H., Nemitz, E., Nilsson, M. B., Niu, S., Oechel, W. C., Oikawa, P. Y., Ono, K., Peichl, M., Peltola, O., Reba, M. L., Richardson, A. D., Riley, W., Runkle, B. R. K., Ryu, Y., Sachs, T., Sakabe, A., Sanchez, C. R., Schuur, E. A., Schäfer, K. V. R., Sonnentag, O., Sparks, J. P., Stuart-Haëntjens, E., Sturtevant, C., Sullivan, R. C., Szutu, D. J., Thom, J. E., Torn, M. S., Tuittila, E.-S., Turner, J., Ueyama, M., Valach, A. C., Vargas, R., Varlagin, A., Vazquez-Lule, A., Verfaillie, J. G., Vesala, T., Vourlitis, G. L., Ward, E. J., Wille, C., Wohlfahrt, G., Wong, G. X., Zhang, Z., Zona, D., Windham-Myers, L., Poulter, B., and Jackson, R. B.: FLUXNET-CH<inline-formula><mml:math id="M251" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:math></inline-formula>: a global, multi-ecosystem dataset and analysis of methane seasonality from freshwater wetlands, Earth Syst. Sci. Data, 13, 3607–3689, <ext-link xlink:href="https://doi.org/10.5194/essd-13-3607-2021" ext-link-type="DOI">10.5194/essd-13-3607-2021</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib12"><label>12</label><?label 1?><mixed-citation>Dengel, S., Zona, D., Sachs, T., Aurela, M., Jammet, M., Parmentier, F. J. W., Oechel, W., and Vesala, T.: Testing the applicability of neural networks as a gap-filling method using CH<inline-formula><mml:math id="M252" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:math></inline-formula> flux data from high latitude wetlands, Biogeosciences, 10, 8185–8200, <ext-link xlink:href="https://doi.org/10.5194/bg-10-8185-2013" ext-link-type="DOI">10.5194/bg-10-8185-2013</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bib13"><label>13</label><?label 1?><mixed-citation>Didan, K.: MOD13Q1 MODIS/Terra Vegetation Indices 16-Day L3 Glob. 250m SIN
Grid V006, NASA EOSDI [data set], <ext-link xlink:href="https://doi.org/10.5067/MODIS/MOD13Q1.006" ext-link-type="DOI">10.5067/MODIS/MOD13Q1.006</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib14"><label>14</label><?label 1?><mixed-citation>Dragoni, D., Schmid, H. P., Grimmond, C. S. B., and Loescher, H. W.:
Uncertainty of annual net ecosystem productivity estimated using eddy
covariance flux measurements, J. Geophys. Res.-Atmos., 112, 17102,
<ext-link xlink:href="https://doi.org/10.1029/2006JD008149" ext-link-type="DOI">10.1029/2006JD008149</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bib15"><label>15</label><?label 1?><mixed-citation>Falge, E., Baldocchi, D., Olson, R., Anthoni, P., Aubinet, M., Bernhofer,
C., Burba, G., Ceulemans, R., Clement, R., Dolman, H., Granier, A., Gross,
P., Grünwald, T., Hollinger, D., Jensen, N. O., Katul, G., Keronen, P.,
Kowalski, A., Lai, C. T., Law, B. E., Meyers, T., Moncrieff, J., Moors, E.,
Munger, J. W., Pilegaard, K., Rannik, Ü., Rebmann, C., Suyker, A.,
Tenhunen, J., Tu, K., Verma, S., Vesala, T., Wilson, K., and Wofsy, S.: Gap
filling strategies for defensible annual sums of net ecosystem exchange,
Agr. Forest Meteorol., 107, 43–69, <ext-link xlink:href="https://doi.org/10.1016/S0168-1923(00)00225-2" ext-link-type="DOI">10.1016/S0168-1923(00)00225-2</ext-link>,
2001.</mixed-citation></ref>
      <ref id="bib1.bib16"><label>16</label><?label 1?><mixed-citation>Feng, S. and Fu, Q.: Expansion of global drylands under a warming climate, Atmos. Chem. Phys., 13, 10081–10094, <ext-link xlink:href="https://doi.org/10.5194/acp-13-10081-2013" ext-link-type="DOI">10.5194/acp-13-10081-2013</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bib17"><label>17</label><?label 1?><mixed-citation>Finkelstein, P. L. and Sims, P. F.: Sampling error in eddy correlation flux
measurements, J. Geophys. Res.-Atmos., 106, 3503–3509,
<ext-link xlink:href="https://doi.org/10.1029/2000JD900731" ext-link-type="DOI">10.1029/2000JD900731</ext-link>, 2001.</mixed-citation></ref>
      <ref id="bib1.bib18"><label>18</label><?label 1?><mixed-citation>Fix, E. and Hodges, J. L.: Discriminatory analysis. Nonparametric discrimination; consistency properties, Report Number 4, Project Number 21-49-004, USAF School of Aviation Medicine, Randolph Field, Texas, 1951.</mixed-citation></ref>
      <ref id="bib1.bib19"><label>19</label><?label 1?><mixed-citation>Gao, Z., Russell, E. S., Missik, J. E. C., Huang, M., Chen, X., Strickland,
C. E., Clayton, R., Arntzen, E., Ma, Y., and Liu, H.: A novel approach to
evaluate soil heat flux calculation: An analytical review of nine methods,
J. Geophys. Res., 122, 6934–6949, <ext-link xlink:href="https://doi.org/10.1002/2017JD027160" ext-link-type="DOI">10.1002/2017JD027160</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib20"><label>20</label><?label 1?><mixed-citation>Gao, Z., Liu, H., Missik, J. E. C., Yao, J., Huang, M., Chen, X., Arntzen,
E., and McFarland, D. P.: Mechanistic links between underestimated CO<inline-formula><mml:math id="M253" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> fluxes
and non-closure of the surface energy balance in a semi-arid sagebrush
ecosystem, Environ. Res. Lett., 14, 044016, <ext-link xlink:href="https://doi.org/10.1088/1748-9326/ab082d" ext-link-type="DOI">10.1088/1748-9326/ab082d</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bib21"><label>21</label><?label 1?><mixed-citation>Gao, Z., Liu, H., Chen, X., Huang, M., Missik, J. E. C. C., Yao, J.,
Arntzen, E., and Mcfarland, D. P.: Enlarged non-closure of surface energy
balance with increasing atmospheric instabilities linked to changes in
coherent structures, J. Geophys. Res.-Atmos., 125, e2020JD032889,
<ext-link xlink:href="https://doi.org/10.1029/2020jd032889" ext-link-type="DOI">10.1029/2020jd032889</ext-link>, 2020a.</mixed-citation></ref>
      <ref id="bib1.bib22"><label>22</label><?label 1?><mixed-citation>Gao, Z., Liu, H., Arntzen, E., Mcfarland, D. P., Chen, X., and Huang, M.:
Uncertainties in Turbulent Statistics and Fluxes of CO<inline-formula><mml:math id="M254" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> Associated With
Density Effect Corrections, Geophys. Res. Lett., 47, e2020GL088859,
<ext-link xlink:href="https://doi.org/10.1029/2020GL088859" ext-link-type="DOI">10.1029/2020GL088859</ext-link>, 2020b.</mixed-citation></ref>
      <ref id="bib1.bib23"><label>23</label><?label 1?><mixed-citation>Günther, F. and Fritsch, S.: Neuralnet: Training of neural networks, R Journal, 2, 30–38, <ext-link xlink:href="https://doi.org/10.32614/rj-2010-006" ext-link-type="DOI">10.32614/rj-2010-006</ext-link>, 2010.</mixed-citation></ref>
      <ref id="bib1.bib24"><label>24</label><?label 1?><mixed-citation>Huang, I.-H. and Hsieh, C.-I.: Gap-Filling of Surface Fluxes Using Machine
Learning Algorithms in Various Ecosystems, Water, 12, 3415,
<ext-link xlink:href="https://doi.org/10.3390/w12123415" ext-link-type="DOI">10.3390/w12123415</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib25"><label>25</label><?label 1?><mixed-citation>Huang, J., Yu, H., Guan, X., Wang, G., and Guo, R.: Accelerated dryland
expansion under climate change, Nat. Clim. Chang., 6, 166–171, <ext-link xlink:href="https://doi.org/10.1038/nclimate2837" ext-link-type="DOI">10.1038/nclimate2837</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bib26"><label>26</label><?label 1?><mixed-citation>Irvin, J., Zhou, S., McNicol, G., Lu, F., Liu, V., Fluet-Chouinard, E.,
Ouyang, Z., Knox, S. H., Lucas-Moffat, A., Trotta, C., Papale, D., Vitale,
D., Mammarella, I., Alekseychik, P., Aurela, M., Avati, A., Baldocchi, D.,
Bansal, S., Bohrer, G., Campbell, D. I., Chen, J., Chu, H., Dalmagro, H. J.,
Delwiche, K. B., Desai, A. R., Euskirchen, E., Feron, S., Goeckede, M.,
Heimann, M., Helbig, M., Helfter, C., Hemes, K. S., Hirano, T., Iwata, H.,
Jurasinski, G., Kalhori, A., Kondrich, A., Lai, D. Y., Lohila, A., Malhotra,
A., Merbold, L., Mitra, B., Ng, A., Nilsson, M. B., Noormets, A., Peichl,
M., Rey-Sanchez, A. C., Richardson, A. D., Runkle, B. R., Schäfer, K.
V., Sonnentag, O., Stuart-Haëntjens, E., Sturtevant, C., Ueyama, M.,
Valach, A. C., Vargas, R., Vourlitis, G. L., Ward, E. J., Wong, G. X., Zona,
D., Alberto, M. C. R., Billesbach, D. P., Celis, G., Dolman, H., Friborg,
T., Fuchs, K., Gogo, S., Gondwe, M. J., Goodrich, J. P., Gottschalk, P.,
Hörtnagl, L., Jacotot, A., Koebsch, F., Kasak, K., Maier, R., Morin, T.
H., Nemitz, E., Oechel, W. C., Oikawa, P. Y., Ono, K., Sachs, T., Sakabe,
A., Schuur, E. A., Shortt, R., Sullivan, R. C., Szutu, D. J., Tuittila, E.
S., Varlagin, A., Verfaillie, J. G., Wille, C., Windham-Myers, L., Poulter,
B., and Jackson, R. B.: Gap-filling eddy covariance methane fluxes:
Comparison of machine learning model predictions and uncertainties at
FLUXNET-CH4 wetlands, Agr. Forest Meteorol., 308–309, 108528,
<ext-link xlink:href="https://doi.org/10.1016/J.AGRFORMET.2021.108528" ext-link-type="DOI">10.1016/J.AGRFORMET.2021.108528</ext-link>, 2021</mixed-citation></ref>
      <ref id="bib1.bib27"><label>27</label><?label 1?><mixed-citation>Jammet, M., Crill, P., Dengel, S., and Friborg, T.: Large methane emissions
from a subarctic lake during spring thaw: Mechanisms and landscape
significance, J. Geophys. Res.-Biogeo, 120, 2289–2305,
<ext-link xlink:href="https://doi.org/10.1002/2015JG003137" ext-link-type="DOI">10.1002/2015JG003137</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib28"><label>28</label><?label 1?><mixed-citation>Jung, M., Reichstein, M., Schwalm, C. R., Huntingford, C., Sitch, S.,
Ahlström, A., Arneth, A., Camps-Valls, G., Ciais, P., Friedlingstein,
P., Gans, F., Ichii, K., Jain, A. K., Kato, E., Papale, D., Poulter, B.,
Raduly, B., Rödenbeck, C., Tramontana, G., Viovy, N., Wang, Y. P.,
Weber, U., Zaehle, S., and Zeng, N.: Compensatory water effects link yearly
global land CO<inline-formula><mml:math id="M255" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> sink changes to temperature, Nature, 541, 516–520,
<ext-link xlink:href="https://doi.org/10.1038/nature20780" ext-link-type="DOI">10.1038/nature20780</ext-link>, 2017.</mixed-citation></ref>
      <?pagebreak page15602?><ref id="bib1.bib29"><label>29</label><?label 1?><mixed-citation>Karatzoglou, A., Smola, A., Hornik, K., and Zeileis, A.: kernlab – An S4
Package for Kernel Methods in R, J. Stat. Softw., 11, 1–20,
<ext-link xlink:href="https://doi.org/10.18637/jss.v011.i09" ext-link-type="DOI">10.18637/jss.v011.i09</ext-link>, 2004.</mixed-citation></ref>
      <ref id="bib1.bib30"><label>30</label><?label 1?><mixed-citation>Kim, Y., Johnson, M. S., Knox, S. H., Black, T. A., Dalmagro, H. J., Kang,
M., Kim, J., and Baldocchi, D.: Gap-filling approaches for eddy covariance
methane fluxes: A comparison of three machine learning algorithms and a
traditional method with principal component analysis, Glob. Chang. Biol.,
26, 1499–1518, <ext-link xlink:href="https://doi.org/10.1111/gcb.14845" ext-link-type="DOI">10.1111/gcb.14845</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib31"><label>31</label><?label 1?><mixed-citation>Knox, S. H., Matthes, J. H., Sturtevant, C., Oikawa, P. Y., Verfaillie, J.,
and Baldocchi, D.: Biophysical controls on interannual variability in
ecosystem-scale CO<inline-formula><mml:math id="M256" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> and CH4 exchange in a California rice paddy, J. Geophys. Res.-Biogeo, 121, 978–1001, <ext-link xlink:href="https://doi.org/10.1002/2015JG003247" ext-link-type="DOI">10.1002/2015JG003247</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bib32"><label>32</label><?label 1?><mixed-citation>Kuhn, M., Wing, J., Weston, S., Williams, A., Keefer, C., Engelhardt, A.,
Cooper, T., Mayer, Z., Kenkel, B., Team, R. C., Benesty, M., Lescarbeau, R.,
Ziem, A., Scrucca, L., Tang, Y., Candan, C., and Hunt, T.: caret:
Classification and Regression Training, cran [code], available at:
<uri>https://cran.r-project.org/package=caret</uri>, last access: 15 April 2020.</mixed-citation></ref>
      <ref id="bib1.bib33"><label>33</label><?label 1?><mixed-citation>Liaw, A. and Wiener, M.: Classification and Regression by randomForest, R
News, 2, 18–22, 2002.</mixed-citation></ref>
      <ref id="bib1.bib34"><label>34</label><?label 1?><mixed-citation>Mahabbati, A., Beringer, J., Leopold, M., McHugh, I., Cleverly, J., Isaac, P., and Izady, A.: A comparison of gap-filling algorithms for eddy covariance fluxes and their drivers, Geosci. Instrum. Method. Data Syst., 10, 123–140, <ext-link xlink:href="https://doi.org/10.5194/gi-10-123-2021" ext-link-type="DOI">10.5194/gi-10-123-2021</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib35"><label>35</label><?label 1?><mixed-citation>Ma, S., Baldocchi, D. D., Xu, L., and Hehn, T.: Inter-annual variability in
carbon dioxide exchange of an oak/grass savanna and open grassland in
California, Agr. Forest Meteorol., 147, 157–171,
<ext-link xlink:href="https://doi.org/10.1016/j.agrformet.2007.07.008" ext-link-type="DOI">10.1016/j.agrformet.2007.07.008</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bib36"><label>36</label><?label 1?><mixed-citation>Massman, W. J.: A simple method for estimating frequency response
corrections for eddy covariance systems, Agr. Forest Meteorol., 104,
185–198, <ext-link xlink:href="https://doi.org/10.1016/S0168-1923(00)00164-7" ext-link-type="DOI">10.1016/S0168-1923(00)00164-7</ext-link>, 2000.</mixed-citation></ref>
      <ref id="bib1.bib37"><label>37</label><?label 1?><mixed-citation>Massman, W. J.: Reply to comment by Rannik on “A simple method for
estimating frequency response corrections for eddy covariance systems, Agr. Forest Meteorol., 107, 247–251, <ext-link xlink:href="https://doi.org/10.1016/S0168-1923(00)00237-9" ext-link-type="DOI">10.1016/S0168-1923(00)00237-9</ext-link>,
2001.</mixed-citation></ref>
      <ref id="bib1.bib38"><label>38</label><?label 1?><mixed-citation>Mauder, M. and Foken, T.: Documentation and Instruction Manual of the Eddy
Covariance Software Package TK2, 2004.</mixed-citation></ref>
      <ref id="bib1.bib39"><label>39</label><?label 1?><mixed-citation>Metzger, S.: Surface-atmosphere exchange in a box: Making the control volume
a suitable representation for in-situ observations, Agr. Forest Meteorol.,
255, 68–80, <ext-link xlink:href="https://doi.org/10.1016/J.AGRFORMET.2017.08.037" ext-link-type="DOI">10.1016/J.AGRFORMET.2017.08.037</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib40"><label>40</label><?label 1?><mixed-citation>Missik, J. E. C., Liu, H., Gao, Z., Huang, M., Chen, X., Arntzen, E.,
Mcfarland, D. P., Ren, H., Titzler, P. S., Thomle, J. N., and Goldman, A.:
Groundwater-River Water Exchange Enhances Growing Season Evapotranspiration
and Carbon Uptake in a Semiarid Riparian Ecosystem, J. Geophys. Res.-Biogeo., 124, 99–114, <ext-link xlink:href="https://doi.org/10.1029/2018JG004666" ext-link-type="DOI">10.1029/2018JG004666</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bib41"><label>41</label><?label 1?><mixed-citation>Missik, J. E. C., Liu, H., Gao, Z., Huang, M., Chen, X., Arntzen, E.,
Mcfarland, D. P., and Verbeke, B.: Groundwater Regulates Interannual
Variations in Evapotranspiration in a Riparian Semiarid Ecosystem, J.
Geophys. Res.-Atmos., 126, e2020JD033078, <ext-link xlink:href="https://doi.org/10.1029/2020jd033078" ext-link-type="DOI">10.1029/2020jd033078</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib42"><label>42</label><?label 1?><mixed-citation>Moffat, A. M., Papale, D., Reichstein, M., Hollinger, D. Y., Richardson, A.
D., Barr, A. G., Beckstein, C., Braswell, B. H., Churkina, G., Desai, A. R.,
Falge, E., Gove, J. H., Heimann, M., Hui, D., Jarvis, A. J., Kattge, J.,
Noormets, A., and Stauch, V. J.: Comprehensive comparison of gap-filling
techniques for eddy covariance net carbon fluxes, Agr. Forest Meteorol.,
147, 209–232, <ext-link xlink:href="https://doi.org/10.1016/j.agrformet.2007.08.011" ext-link-type="DOI">10.1016/j.agrformet.2007.08.011</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bib43"><label>43</label><?label 1?><mixed-citation>Moncrieff, J., Clement, R., Finnigan, J., and Meyers, T.: Averaging,
Detrending, and Filtering of Eddy Covariance Time Series, in: Handbook of
Micrometeorology, edited by: Lee, X., Massman, W., and Law, B.,
Springer, Dordrecht, 7–31 pp., <ext-link xlink:href="https://doi.org/10.1007/1-4020-2265-4" ext-link-type="DOI">10.1007/1-4020-2265-4</ext-link>, 2004.</mixed-citation></ref>
      <ref id="bib1.bib44"><label>44</label><?label 1?><mixed-citation>Oncley, S., Foken, T., Vogt, R., Kohsiek, W., DeBruin, H. A. R., Bernhofer,
C., Christen, A., Gorsel, E., Grantz, D., Feigenwinter, C., Lehner, I.,
Liebethal, C., Liu, H., Mauder, M., Pitacco, A., Ribeiro, L., and Weidinger,
T.: The Energy Balance Experiment EBEX-2000. Part I: overview and energy
balance, Bound.-Lay. Meteorol., 123, 1–28,
<ext-link xlink:href="https://doi.org/10.1007/s10546-007-9161-1" ext-link-type="DOI">10.1007/s10546-007-9161-1</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bib45"><label>45</label><?label 1?><mixed-citation>Papale, D. and Valentini, R.: A new assessment of European forests carbon
exchanges by eddy fluxes and artificial neural network spatialization, Glob.
Chang. Biol., 9, 525–535, <ext-link xlink:href="https://doi.org/10.1046/j.1365-2486.2003.00609.x" ext-link-type="DOI">10.1046/j.1365-2486.2003.00609.x</ext-link>, 2003.</mixed-citation></ref>
      <ref id="bib1.bib46"><label>46</label><?label 1?><mixed-citation>Pastorello, G., Trotta, C., Canfora, E. et al.: The
FLUXNET2015 dataset and the ONEFlux processing pipeline for eddy covariance
data, Sci. data, 7, 225, <ext-link xlink:href="https://doi.org/10.1038/s41597-020-0534-3" ext-link-type="DOI">10.1038/s41597-020-0534-3</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib47"><label>47</label><?label 1?><mixed-citation>Reichstein, M., Falge, E., Baldocchi, D., Papale, D., Aubinet, M.,
Berbigier, P., Bernhofer, C., Buchmann, N., Gilmanov, T., Granier, A.,
Grünwald, T., Havránková, K., Ilvesniemi, H., Janous, D., Knohl,
A., Laurila, T., Lohila, A., Loustau, D., Matteucci, G., Meyers, T.,
Miglietta, F., Ourcival, J. M., Pumpanen, J., Rambal, S., Rotenberg, E.,
Sanz, M., Tenhunen, J., Seufert, G., Vaccari, F., Vesala, T., Yakir, D., and
Valentini, R.: On the separation of net ecosystem exchange into assimilation
and ecosystem respiration: Review and improved algorithm, Glob. Chang.
Biol., 11, 1424–1439, <ext-link xlink:href="https://doi.org/10.1111/j.1365-2486.2005.001002.x" ext-link-type="DOI">10.1111/j.1365-2486.2005.001002.x</ext-link>, 2005.</mixed-citation></ref>
      <ref id="bib1.bib48"><label>48</label><?label 1?><mixed-citation>Richardson, A. D. and Hollinger, D. Y.: A method to estimate the additional
uncertainty in gap-filled NEE resulting from long gaps in the CO<inline-formula><mml:math id="M257" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> flux
record, Agr. Forest Meteorol., 147, 199–208,
<ext-link xlink:href="https://doi.org/10.1016/j.agrformet.2007.06.004" ext-link-type="DOI">10.1016/j.agrformet.2007.06.004</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bib49"><label>49</label><?label 1?><mixed-citation>Richardson, A. D., Mahecha, M. D., Falge, E., Kattge, J., Moffat, A. M.,
Papale, D., Reichstein, M., Stauch, V. J., Braswell, B. H., Churkina, G.,
Kruijt, B., and Hollinger, D. Y.: Statistical properties of random CO<inline-formula><mml:math id="M258" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> flux
measurement uncertainty inferred from model residuals, Agr. Forest
Meteorol., 148, 38–50, <ext-link xlink:href="https://doi.org/10.1016/J.AGRFORMET.2007.09.001" ext-link-type="DOI">10.1016/J.AGRFORMET.2007.09.001</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bib50"><label>50</label><?label 1?><mixed-citation>Scott, R. L., Biederman, J. A., Hamerlynck, E. P., Barron Gafford, G. A., and
Barron-Gafford, G. A.: The carbon balance pivot point of southwestern U.S.
semiarid ecosystems: Insights from the 21st century drought, J. Geophys. Res.-Biogeo, 120, 2612–2624, <ext-link xlink:href="https://doi.org/10.1002/2015JG003181" ext-link-type="DOI">10.1002/2015JG003181</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib51"><label>51</label><?label 1?><mixed-citation>Soloway, A. D., Amiro, B. D., Dunn, A. L., and Wofsy, S. C.: Carbon neutral
or a sink? Uncertainty caused by gap-filling long-term flux measurements for
an old-growth boreal black spruce forest, Agr. Forest Meteorol., 233,
110–121, <ext-link xlink:href="https://doi.org/10.1016/j.agrformet.2016.11.005" ext-link-type="DOI">10.1016/j.agrformet.2016.11.005</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib52"><label>52</label><?label 1?><mixed-citation>Stoy, P. C., Mauder, M., Foken, T., Marcolla, B., Boegh, E., Ibrom, A.,
Arain, M. A., Arneth, A., Aurela, M., Bernhofer, C., Cescatti, A., Dellwik,
E., Duce, P., Gianelle, D., van Gorsel, E., Kiely, G., Knohl, A., Margolis,
H., McCaughey, H.<?pagebreak page15603?>, Merbold, L., Montagnani, L., Papale, D., Reichstein, M.,
Saunders, M., Serrano-Ortiz, P., Sottocornola, M., Spano, D., Vaccari, F.,
and Varlagin, A.: A data-driven analysis of energy balance closure across
FLUXNET research sites: The role of landscape scale heterogeneity, Agr.
Forest Meteorol., 171–172, 137–152, <ext-link xlink:href="https://doi.org/10.1016/j.agrformet.2012.11.004" ext-link-type="DOI">10.1016/j.agrformet.2012.11.004</ext-link>,
2013.</mixed-citation></ref>
      <ref id="bib1.bib53"><label>53</label><?label 1?><mixed-citation>Tramontana, G., Jung, M., Schwalm, C. R., Ichii, K., Camps-Valls, G., Ráduly, B., Reichstein, M., Arain, M. A., Cescatti, A., Kiely, G., Merbold, L., Serrano-Ortiz, P., Sickert, S., Wolf, S., and Papale, D.: Predicting carbon dioxide and energy fluxes across global FLUXNET sites with regression algorithms, Biogeosciences, 13, 4291–4313, <ext-link xlink:href="https://doi.org/10.5194/bg-13-4291-2016" ext-link-type="DOI">10.5194/bg-13-4291-2016</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bib54"><label>54</label><?label 1?><mixed-citation>Webb, E. K., Pearman, G. I., and Leuning, R.: Correction of flux measurements
for density effects due to heat and water vapour transfer, Q. J. Roy.
Meteorol. Soc., 106, 85–100, <ext-link xlink:href="https://doi.org/10.1002/qj.49710644707" ext-link-type="DOI">10.1002/qj.49710644707</ext-link>, 1980.</mixed-citation></ref>
      <ref id="bib1.bib55"><label>55</label><?label 1?><mixed-citation>Wilson, K., Goldstein, A., Falge, E., Aubinet, M., Baldocchi, D., Berbigier,
P., Bernhofer, C., Ceulemans, R., Dolman, H., Field, C., Grelle, A., Ibrom,
A., Law, B. E., Kowalski, A., Meyers, T., Moncrieff, J., Monson, R., Oechel,
W., Tenhunen, J., Valentini, R., and Verma, S.: Energy balance closure at
FLUXNET sites, Agr. Forest Meteorol., 113, 223–243,
<ext-link xlink:href="https://doi.org/10.1016/S0168-1923(02)00109-0" ext-link-type="DOI">10.1016/S0168-1923(02)00109-0</ext-link>, 2002.
</mixed-citation></ref><?xmltex \hack{\newpage}?>
      <ref id="bib1.bib56"><label>56</label><?label 1?><mixed-citation>Wutzler, T., Lucas-Moffat, A., Migliavacca, M., Knauer, J., Sickel, K., Šigut, L., Menzer, O., and Reichstein, M.: Basic and extensible post-processing of eddy covariance flux data with REddyProc, Biogeosciences, 15, 5015–5030, <ext-link xlink:href="https://doi.org/10.5194/bg-15-5015-2018" ext-link-type="DOI">10.5194/bg-15-5015-2018</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib57"><label>57</label><?label 1?><mixed-citation>Xu, T., Guo, Z., Liu, S., He, X., Meng, Y., Xu, Z., Xia, Y., Xiao, J.,
Zhang, Y., Ma, Y., and Song, L.: Evaluating Different Machine Learning
Methods for Upscaling Evapotranspiration from Flux Towers to the Regional
Scale, J. Geophys. Res.-Atmos., 123, 8674–8690,
<ext-link xlink:href="https://doi.org/10.1029/2018JD028447" ext-link-type="DOI">10.1029/2018JD028447</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib58"><label>58</label><?label 1?><mixed-citation>Yao, J., Liu, H., Huang, J., Gao, Z., Wang, G., Li, D., Yu, H., and Chen, X.:
Accelerated dryland expansion regulates future variability in dryland gross
primary production, Nat. Commun., 11, 1665, <ext-link xlink:href="https://doi.org/10.1038/s41467-020-15515-2" ext-link-type="DOI">10.1038/s41467-020-15515-2</ext-link>,
2020.</mixed-citation></ref>
      <ref id="bib1.bib59"><label>59</label><?label 1?><mixed-citation>Yao, J., Gao, Z., Huang, J., Liu, H., and Wang, G.: US-Hn1 flux and meteorological data, figshare [data set], <ext-link xlink:href="https://doi.org/10.6084/m9.figshare.14747952" ext-link-type="DOI">10.6084/m9.figshare.14747952</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib60"><label>60</label><?label 1?><mixed-citation>Zeng, J., Matsunaga, T., Tan, Z. H., Saigusa, N., Shirai, T., Tang, Y.,
Peng, S., and Fukuda, Y.: Global terrestrial carbon fluxes of 1999–2019
estimated by upscaling eddy covariance data with a random forest, Sci. Data,
7, 1–11, <ext-link xlink:href="https://doi.org/10.1038/s41597-020-00653-5" ext-link-type="DOI">10.1038/s41597-020-00653-5</ext-link>, 2020.</mixed-citation></ref>

  </ref-list></back>
    <!--<article-title-html>Technical note: Uncertainties in eddy covariance CO<sub>2</sub> fluxes in a semiarid sagebrush ecosystem caused by gap-filling approaches</article-title-html>
<abstract-html><p>Gap-filling eddy covariance CO<sub>2</sub> fluxes is
challenging at dryland sites due to small CO<sub>2</sub> fluxes. Here, four
machine learning (ML) algorithms including artificial neural network (ANN), <i>k</i>-nearest neighbors (KNNs), random forest (RF), and support vector machine
(SVM) are employed and evaluated for gap-filling CO<sub>2</sub> fluxes over a
semiarid sagebrush ecosystem with different lengths of artificial gaps. The
ANN and RF algorithms outperform the KNN and SVM in filling gaps ranging
from hours to days, with the RF being more time efficient than the ANN.
Performances of the ANN and RF are largely degraded for extremely long gaps
of 2 months. In addition, our results suggest that there is no need to
fill the daytime and nighttime net ecosystem exchange (NEE) gaps separately when using the ANN and
RF. With the ANN and RF, the gap-filling-induced uncertainties in the annual
NEE at this site are estimated to be within 16&thinsp;g&thinsp;C&thinsp;m<sup>−2</sup>, whereas the
uncertainties by the KNN and SVM can be as large as 27&thinsp;g&thinsp;C&thinsp;m<sup>−2</sup>. To
better fill extremely long gaps of a few months, we test a two-layer
gap-filling framework based on the RF. With this framework, the model
performance is improved significantly, especially for the nighttime data.
Therefore, this approach provides an alternative in filling extremely long
gaps to characterize annual carbon budgets and interannual variability in
dryland ecosystems.</p></abstract-html>
<ref-html id="bib1.bib1"><label>1</label><mixed-citation>Ahlström, A., Raupach, M. R., Schurgers, G., Smith, B., Arneth, A.,
Jung, M., Reichstein, M., Canadell, J. G., Friedlingstein, P., Jain, A. K.,
Kato, E., Poulter, B., Sitch, S., Stocker, B. D., Viovy, N., Wang, Y. P.,
Wiltshire, A., Zaehle, S., and Zeng, N.: The dominant role of semi-arid
ecosystems in the trend and variability of the land CO<sub>2</sub> sink, Science,
348, 895–899, <a href="https://doi.org/10.1126/science.aaa1668" target="_blank">https://doi.org/10.1126/science.aaa1668</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>2</label><mixed-citation>Aubinet, M., Vesala, T., and Papale, D. (Eds.): Eddy Covariance: A Practical Guide to Measurement and Data Analysis, Springer, Dordrecht, the Netherlands, 438 pp., <a href="https://doi.org/10.1007/978-94-007-2351-1" target="_blank">https://doi.org/10.1007/978-94-007-2351-1</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>3</label><mixed-citation>Baldocchi, D. and Sturtevant, C.: Does day and night sampling reduce
spurious correlation between canopy photosynthesis and ecosystem
respiration?, Agr. Forest Meteorol., 207, 117–126,
<a href="https://doi.org/10.1016/j.agrformet.2015.03.010" target="_blank">https://doi.org/10.1016/j.agrformet.2015.03.010</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>4</label><mixed-citation>Baldocchi, D. D.: Assessing the eddy covariance technique for evaluating
carbon dioxide exchange rates of ecosystems: past, present and future, Glob.
Change Biol., 9, 479–492, <a href="https://doi.org/10.1046/j.1365-2486.2003.00629.x" target="_blank">https://doi.org/10.1046/j.1365-2486.2003.00629.x</a>, 2003.
</mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>5</label><mixed-citation>Berg, A. and McColl, K. A.: No projected global drylands expansion under
greenhouse warming, Nat. Clim. Chang., 11, 331–337,
<a href="https://doi.org/10.1038/s41558-021-01007-8" target="_blank">https://doi.org/10.1038/s41558-021-01007-8</a>, 2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>6</label><mixed-citation>Biederman, J. A., Scott, R. L., Bell, T. W., Bowling, D. R., Dore, S.,
Garatuza-Payan, J., Kolb, T. E., Krishnan, P., Krofcheck, D. J., Litvak, M.
E., Maurer, G. E., Meyers, T. P., OECHEL, W. C., Papuga, S. A.,
Ponce-Campos, G. E., Rodriguez, J. C., Smith, W. K., Vargas, R., Watts, C.
J., Yepez, E. A., Goulden, M. L., Garatuza Payan, J., Kolb, T. E., Krishnan,
P., Krofcheck, D. J., Litvak, M. E., Maurer, G. E., Meyers, T. P., OECHEL,
W. C., Papuga, S. A., Ponce-Campos, G. E., Rodriguez, J. C., Smith, W. K.,
Vargas, R., Watts, C. J., Yepez, E. A., and Goulden, M. L.: CO<sub>2</sub> exchange and
evapotranspiration across dryland ecosystems of southwestern North America,
Glob. Change Biol., 23, 4204–4221, <a href="https://doi.org/10.1111/gcb.13686" target="_blank">https://doi.org/10.1111/gcb.13686</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>7</label><mixed-citation>Breiman, L.: Random forests, Mach. Learn., 45, 5–32,
<a href="https://doi.org/10.1023/A:1010933404324" target="_blank">https://doi.org/10.1023/A:1010933404324</a>, 2001.
</mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>8</label><mixed-citation>Chen, Y. Y., Chu, C. R., and Li, M. H.: A gap-filling model for eddy
covariance latent heat flux: Estimating evapotranspiration of a subtropical
seasonal evergreen broad-leaved forest as an example, J. Hydrol., 468–469,
101–110, <a href="https://doi.org/10.1016/j.jhydrol.2012.08.026" target="_blank">https://doi.org/10.1016/j.jhydrol.2012.08.026</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>9</label><mixed-citation>Chu, H., Luo, X., Ouyang, Z., Chan, W. S., Dengel, S., Biraud, S. C., Torn,
M. S., Metzger, S., Kumar, J., Arain, M. A., Arkebauer, T. J., Baldocchi,
D., Bernacchi, C., Billesbach, D., Black, T. A., Blanken, P. D., Bohrer, G.,
Bracho, R., Brown, S., Brunsell, N. A., Chen, J., Chen, X., Clark, K.,
Desai, A. R., Duman, T., Durden, D., Fares, S., Forbrich, I., Gamon, J. A.,
Gough, C. M., Griffis, T., Helbig, M., Hollinger, D., Humphreys, E., Ikawa,
H., Iwata, H., Ju, Y., Knowles, J. F., Knox, S. H., Kobayashi, H., Kolb, T.,
Law, B., Lee, X., Litvak, M., Liu, H., Munger, J. W., Noormets, A., Novick,
K., Oberbauer, S. F., Oechel, W., Oikawa, P., Papuga, S. A., Pendall, E.,
Prajapati, P., Prueger, J., Quinton, W. L., Richardson, A. D., Russell, E.
S., Scott, R. L., Starr, G., Staebler, R., Stoy, P. C.,
Stuart-Haëntjens, E., Sonnentag, O., Sullivan, R. C., Suyker, A.,
Ueyama, M., Vargas, R., Wood, J. D., and Zona, D.: Representativeness of
Eddy-Covariance flux footprints for areas surrounding AmeriFlux sites,
Agr. Forest Meteorol., 301–302, 108350,
<a href="https://doi.org/10.1016/J.AGRFORMET.2021.108350" target="_blank">https://doi.org/10.1016/J.AGRFORMET.2021.108350</a>, 2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>10</label><mixed-citation>Cortes, C. and Vapnik, V.: Support-vector networks, Mach. Learn., 20, 273–297, <a href="https://doi.org/10.1007/bf00994018" target="_blank">https://doi.org/10.1007/bf00994018</a>, 1995.
</mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>11</label><mixed-citation>Delwiche, K. B., Knox, S. H., Malhotra, A., Fluet-Chouinard, E., McNicol, G., Feron, S., Ouyang, Z., Papale, D., Trotta, C., Canfora, E., Cheah, Y.-W., Christianson, D., Alberto, Ma. C. R., Alekseychik, P., Aurela, M., Baldocchi, D., Bansal, S., Billesbach, D. P., Bohrer, G., Bracho, R., Buchmann, N., Campbell, D. I., Celis, G., Chen, J., Chen, W., Chu, H., Dalmagro, H. J., Dengel, S., Desai, A. R., Detto, M., Dolman, H., Eichelmann, E., Euskirchen, E., Famulari, D., Fuchs, K., Goeckede, M., Gogo, S., Gondwe, M. J., Goodrich, J. P., Gottschalk, P., Graham, S. L., Heimann, M., Helbig, M., Helfter, C., Hemes, K. S., Hirano, T., Hollinger, D., Hörtnagl, L., Iwata, H., Jacotot, A., Jurasinski, G., Kang, M., Kasak, K., King, J., Klatt, J., Koebsch, F., Krauss, K. W., Lai, D. Y. F., Lohila, A., Mammarella, I., Belelli Marchesini, L., Manca, G., Matthes, J. H., Maximov, T., Merbold, L., Mitra, B., Morin, T. H., Nemitz, E., Nilsson, M. B., Niu, S., Oechel, W. C., Oikawa, P. Y., Ono, K., Peichl, M., Peltola, O., Reba, M. L., Richardson, A. D., Riley, W., Runkle, B. R. K., Ryu, Y., Sachs, T., Sakabe, A., Sanchez, C. R., Schuur, E. A., Schäfer, K. V. R., Sonnentag, O., Sparks, J. P., Stuart-Haëntjens, E., Sturtevant, C., Sullivan, R. C., Szutu, D. J., Thom, J. E., Torn, M. S., Tuittila, E.-S., Turner, J., Ueyama, M., Valach, A. C., Vargas, R., Varlagin, A., Vazquez-Lule, A., Verfaillie, J. G., Vesala, T., Vourlitis, G. L., Ward, E. J., Wille, C., Wohlfahrt, G., Wong, G. X., Zhang, Z., Zona, D., Windham-Myers, L., Poulter, B., and Jackson, R. B.: FLUXNET-CH<sub>4</sub>: a global, multi-ecosystem dataset and analysis of methane seasonality from freshwater wetlands, Earth Syst. Sci. Data, 13, 3607–3689, <a href="https://doi.org/10.5194/essd-13-3607-2021" target="_blank">https://doi.org/10.5194/essd-13-3607-2021</a>, 2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>12</label><mixed-citation>Dengel, S., Zona, D., Sachs, T., Aurela, M., Jammet, M., Parmentier, F. J. W., Oechel, W., and Vesala, T.: Testing the applicability of neural networks as a gap-filling method using CH<sub>4</sub> flux data from high latitude wetlands, Biogeosciences, 10, 8185–8200, <a href="https://doi.org/10.5194/bg-10-8185-2013" target="_blank">https://doi.org/10.5194/bg-10-8185-2013</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>13</label><mixed-citation>Didan, K.: MOD13Q1 MODIS/Terra Vegetation Indices 16-Day L3 Glob. 250m SIN
Grid V006, NASA EOSDI [data set], <a href="https://doi.org/10.5067/MODIS/MOD13Q1.006" target="_blank">https://doi.org/10.5067/MODIS/MOD13Q1.006</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>14</label><mixed-citation>Dragoni, D., Schmid, H. P., Grimmond, C. S. B., and Loescher, H. W.:
Uncertainty of annual net ecosystem productivity estimated using eddy
covariance flux measurements, J. Geophys. Res.-Atmos., 112, 17102,
<a href="https://doi.org/10.1029/2006JD008149" target="_blank">https://doi.org/10.1029/2006JD008149</a>, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>15</label><mixed-citation>Falge, E., Baldocchi, D., Olson, R., Anthoni, P., Aubinet, M., Bernhofer,
C., Burba, G., Ceulemans, R., Clement, R., Dolman, H., Granier, A., Gross,
P., Grünwald, T., Hollinger, D., Jensen, N. O., Katul, G., Keronen, P.,
Kowalski, A., Lai, C. T., Law, B. E., Meyers, T., Moncrieff, J., Moors, E.,
Munger, J. W., Pilegaard, K., Rannik, Ü., Rebmann, C., Suyker, A.,
Tenhunen, J., Tu, K., Verma, S., Vesala, T., Wilson, K., and Wofsy, S.: Gap
filling strategies for defensible annual sums of net ecosystem exchange,
Agr. Forest Meteorol., 107, 43–69, <a href="https://doi.org/10.1016/S0168-1923(00)00225-2" target="_blank">https://doi.org/10.1016/S0168-1923(00)00225-2</a>,
2001.
</mixed-citation></ref-html>
<ref-html id="bib1.bib16"><label>16</label><mixed-citation>Feng, S. and Fu, Q.: Expansion of global drylands under a warming climate, Atmos. Chem. Phys., 13, 10081–10094, <a href="https://doi.org/10.5194/acp-13-10081-2013" target="_blank">https://doi.org/10.5194/acp-13-10081-2013</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib17"><label>17</label><mixed-citation>Finkelstein, P. L. and Sims, P. F.: Sampling error in eddy correlation flux
measurements, J. Geophys. Res.-Atmos., 106, 3503–3509,
<a href="https://doi.org/10.1029/2000JD900731" target="_blank">https://doi.org/10.1029/2000JD900731</a>, 2001.
</mixed-citation></ref-html>
<ref-html id="bib1.bib18"><label>18</label><mixed-citation>Fix, E. and Hodges, J. L.: Discriminatory analysis. Nonparametric discrimination; consistency properties, Report Number 4, Project Number 21-49-004, USAF School of Aviation Medicine, Randolph Field, Texas, 1951.
</mixed-citation></ref-html>
<ref-html id="bib1.bib19"><label>19</label><mixed-citation>Gao, Z., Russell, E. S., Missik, J. E. C., Huang, M., Chen, X., Strickland,
C. E., Clayton, R., Arntzen, E., Ma, Y., and Liu, H.: A novel approach to
evaluate soil heat flux calculation: An analytical review of nine methods,
J. Geophys. Res., 122, 6934–6949, <a href="https://doi.org/10.1002/2017JD027160" target="_blank">https://doi.org/10.1002/2017JD027160</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib20"><label>20</label><mixed-citation>Gao, Z., Liu, H., Missik, J. E. C., Yao, J., Huang, M., Chen, X., Arntzen,
E., and McFarland, D. P.: Mechanistic links between underestimated CO<sub>2</sub> fluxes
and non-closure of the surface energy balance in a semi-arid sagebrush
ecosystem, Environ. Res. Lett., 14, 044016, <a href="https://doi.org/10.1088/1748-9326/ab082d" target="_blank">https://doi.org/10.1088/1748-9326/ab082d</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib21"><label>21</label><mixed-citation>Gao, Z., Liu, H., Chen, X., Huang, M., Missik, J. E. C. C., Yao, J.,
Arntzen, E., and Mcfarland, D. P.: Enlarged non-closure of surface energy
balance with increasing atmospheric instabilities linked to changes in
coherent structures, J. Geophys. Res.-Atmos., 125, e2020JD032889,
<a href="https://doi.org/10.1029/2020jd032889" target="_blank">https://doi.org/10.1029/2020jd032889</a>, 2020a.
</mixed-citation></ref-html>
<ref-html id="bib1.bib22"><label>22</label><mixed-citation>Gao, Z., Liu, H., Arntzen, E., Mcfarland, D. P., Chen, X., and Huang, M.:
Uncertainties in Turbulent Statistics and Fluxes of CO<sub>2</sub> Associated With
Density Effect Corrections, Geophys. Res. Lett., 47, e2020GL088859,
<a href="https://doi.org/10.1029/2020GL088859" target="_blank">https://doi.org/10.1029/2020GL088859</a>, 2020b.
</mixed-citation></ref-html>
<ref-html id="bib1.bib23"><label>23</label><mixed-citation>Günther, F. and Fritsch, S.: Neuralnet: Training of neural networks, R Journal, 2, 30–38, <a href="https://doi.org/10.32614/rj-2010-006" target="_blank">https://doi.org/10.32614/rj-2010-006</a>, 2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib24"><label>24</label><mixed-citation>Huang, I.-H. and Hsieh, C.-I.: Gap-Filling of Surface Fluxes Using Machine
Learning Algorithms in Various Ecosystems, Water, 12, 3415,
<a href="https://doi.org/10.3390/w12123415" target="_blank">https://doi.org/10.3390/w12123415</a>, 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib25"><label>25</label><mixed-citation>Huang, J., Yu, H., Guan, X., Wang, G., and Guo, R.: Accelerated dryland
expansion under climate change, Nat. Clim. Chang., 6, 166–171, <a href="https://doi.org/10.1038/nclimate2837" target="_blank">https://doi.org/10.1038/nclimate2837</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib26"><label>26</label><mixed-citation>Irvin, J., Zhou, S., McNicol, G., Lu, F., Liu, V., Fluet-Chouinard, E.,
Ouyang, Z., Knox, S. H., Lucas-Moffat, A., Trotta, C., Papale, D., Vitale,
D., Mammarella, I., Alekseychik, P., Aurela, M., Avati, A., Baldocchi, D.,
Bansal, S., Bohrer, G., Campbell, D. I., Chen, J., Chu, H., Dalmagro, H. J.,
Delwiche, K. B., Desai, A. R., Euskirchen, E., Feron, S., Goeckede, M.,
Heimann, M., Helbig, M., Helfter, C., Hemes, K. S., Hirano, T., Iwata, H.,
Jurasinski, G., Kalhori, A., Kondrich, A., Lai, D. Y., Lohila, A., Malhotra,
A., Merbold, L., Mitra, B., Ng, A., Nilsson, M. B., Noormets, A., Peichl,
M., Rey-Sanchez, A. C., Richardson, A. D., Runkle, B. R., Schäfer, K.
V., Sonnentag, O., Stuart-Haëntjens, E., Sturtevant, C., Ueyama, M.,
Valach, A. C., Vargas, R., Vourlitis, G. L., Ward, E. J., Wong, G. X., Zona,
D., Alberto, M. C. R., Billesbach, D. P., Celis, G., Dolman, H., Friborg,
T., Fuchs, K., Gogo, S., Gondwe, M. J., Goodrich, J. P., Gottschalk, P.,
Hörtnagl, L., Jacotot, A., Koebsch, F., Kasak, K., Maier, R., Morin, T.
H., Nemitz, E., Oechel, W. C., Oikawa, P. Y., Ono, K., Sachs, T., Sakabe,
A., Schuur, E. A., Shortt, R., Sullivan, R. C., Szutu, D. J., Tuittila, E.
S., Varlagin, A., Verfaillie, J. G., Wille, C., Windham-Myers, L., Poulter,
B., and Jackson, R. B.: Gap-filling eddy covariance methane fluxes:
Comparison of machine learning model predictions and uncertainties at
FLUXNET-CH4 wetlands, Agr. Forest Meteorol., 308–309, 108528,
<a href="https://doi.org/10.1016/J.AGRFORMET.2021.108528" target="_blank">https://doi.org/10.1016/J.AGRFORMET.2021.108528</a>, 2021
</mixed-citation></ref-html>
<ref-html id="bib1.bib27"><label>27</label><mixed-citation>Jammet, M., Crill, P., Dengel, S., and Friborg, T.: Large methane emissions
from a subarctic lake during spring thaw: Mechanisms and landscape
significance, J. Geophys. Res.-Biogeo, 120, 2289–2305,
<a href="https://doi.org/10.1002/2015JG003137" target="_blank">https://doi.org/10.1002/2015JG003137</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib28"><label>28</label><mixed-citation>Jung, M., Reichstein, M., Schwalm, C. R., Huntingford, C., Sitch, S.,
Ahlström, A., Arneth, A., Camps-Valls, G., Ciais, P., Friedlingstein,
P., Gans, F., Ichii, K., Jain, A. K., Kato, E., Papale, D., Poulter, B.,
Raduly, B., Rödenbeck, C., Tramontana, G., Viovy, N., Wang, Y. P.,
Weber, U., Zaehle, S., and Zeng, N.: Compensatory water effects link yearly
global land CO<sub>2</sub> sink changes to temperature, Nature, 541, 516–520,
<a href="https://doi.org/10.1038/nature20780" target="_blank">https://doi.org/10.1038/nature20780</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib29"><label>29</label><mixed-citation>Karatzoglou, A., Smola, A., Hornik, K., and Zeileis, A.: kernlab – An S4
Package for Kernel Methods in R, J. Stat. Softw., 11, 1–20,
<a href="https://doi.org/10.18637/jss.v011.i09" target="_blank">https://doi.org/10.18637/jss.v011.i09</a>, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib30"><label>30</label><mixed-citation>Kim, Y., Johnson, M. S., Knox, S. H., Black, T. A., Dalmagro, H. J., Kang,
M., Kim, J., and Baldocchi, D.: Gap-filling approaches for eddy covariance
methane fluxes: A comparison of three machine learning algorithms and a
traditional method with principal component analysis, Glob. Chang. Biol.,
26, 1499–1518, <a href="https://doi.org/10.1111/gcb.14845" target="_blank">https://doi.org/10.1111/gcb.14845</a>, 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib31"><label>31</label><mixed-citation>Knox, S. H., Matthes, J. H., Sturtevant, C., Oikawa, P. Y., Verfaillie, J.,
and Baldocchi, D.: Biophysical controls on interannual variability in
ecosystem-scale CO<sub>2</sub> and CH4 exchange in a California rice paddy, J. Geophys. Res.-Biogeo, 121, 978–1001, <a href="https://doi.org/10.1002/2015JG003247" target="_blank">https://doi.org/10.1002/2015JG003247</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib32"><label>32</label><mixed-citation>Kuhn, M., Wing, J., Weston, S., Williams, A., Keefer, C., Engelhardt, A.,
Cooper, T., Mayer, Z., Kenkel, B., Team, R. C., Benesty, M., Lescarbeau, R.,
Ziem, A., Scrucca, L., Tang, Y., Candan, C., and Hunt, T.: caret:
Classification and Regression Training, cran [code], available at:
<a href="https://cran.r-project.org/package=caret" target="_blank"/>, last access: 15 April 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib33"><label>33</label><mixed-citation>Liaw, A. and Wiener, M.: Classification and Regression by randomForest, R
News, 2, 18–22, 2002.
</mixed-citation></ref-html>
<ref-html id="bib1.bib34"><label>34</label><mixed-citation>Mahabbati, A., Beringer, J., Leopold, M., McHugh, I., Cleverly, J., Isaac, P., and Izady, A.: A comparison of gap-filling algorithms for eddy covariance fluxes and their drivers, Geosci. Instrum. Method. Data Syst., 10, 123–140, <a href="https://doi.org/10.5194/gi-10-123-2021" target="_blank">https://doi.org/10.5194/gi-10-123-2021</a>, 2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib35"><label>35</label><mixed-citation>Ma, S., Baldocchi, D. D., Xu, L., and Hehn, T.: Inter-annual variability in
carbon dioxide exchange of an oak/grass savanna and open grassland in
California, Agr. Forest Meteorol., 147, 157–171,
<a href="https://doi.org/10.1016/j.agrformet.2007.07.008" target="_blank">https://doi.org/10.1016/j.agrformet.2007.07.008</a>, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib36"><label>36</label><mixed-citation>Massman, W. J.: A simple method for estimating frequency response
corrections for eddy covariance systems, Agr. Forest Meteorol., 104,
185–198, <a href="https://doi.org/10.1016/S0168-1923(00)00164-7" target="_blank">https://doi.org/10.1016/S0168-1923(00)00164-7</a>, 2000.
</mixed-citation></ref-html>
<ref-html id="bib1.bib37"><label>37</label><mixed-citation>Massman, W. J.: Reply to comment by Rannik on “A simple method for
estimating frequency response corrections for eddy covariance systems, Agr. Forest Meteorol., 107, 247–251, <a href="https://doi.org/10.1016/S0168-1923(00)00237-9" target="_blank">https://doi.org/10.1016/S0168-1923(00)00237-9</a>,
2001.
</mixed-citation></ref-html>
<ref-html id="bib1.bib38"><label>38</label><mixed-citation>Mauder, M. and Foken, T.: Documentation and Instruction Manual of the Eddy
Covariance Software Package TK2, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib39"><label>39</label><mixed-citation>Metzger, S.: Surface-atmosphere exchange in a box: Making the control volume
a suitable representation for in-situ observations, Agr. Forest Meteorol.,
255, 68–80, <a href="https://doi.org/10.1016/J.AGRFORMET.2017.08.037" target="_blank">https://doi.org/10.1016/J.AGRFORMET.2017.08.037</a>, 2018.
</mixed-citation></ref-html>
<ref-html id="bib1.bib40"><label>40</label><mixed-citation>Missik, J. E. C., Liu, H., Gao, Z., Huang, M., Chen, X., Arntzen, E.,
Mcfarland, D. P., Ren, H., Titzler, P. S., Thomle, J. N., and Goldman, A.:
Groundwater-River Water Exchange Enhances Growing Season Evapotranspiration
and Carbon Uptake in a Semiarid Riparian Ecosystem, J. Geophys. Res.-Biogeo., 124, 99–114, <a href="https://doi.org/10.1029/2018JG004666" target="_blank">https://doi.org/10.1029/2018JG004666</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib41"><label>41</label><mixed-citation>Missik, J. E. C., Liu, H., Gao, Z., Huang, M., Chen, X., Arntzen, E.,
Mcfarland, D. P., and Verbeke, B.: Groundwater Regulates Interannual
Variations in Evapotranspiration in a Riparian Semiarid Ecosystem, J.
Geophys. Res.-Atmos., 126, e2020JD033078, <a href="https://doi.org/10.1029/2020jd033078" target="_blank">https://doi.org/10.1029/2020jd033078</a>, 2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib42"><label>42</label><mixed-citation>Moffat, A. M., Papale, D., Reichstein, M., Hollinger, D. Y., Richardson, A.
D., Barr, A. G., Beckstein, C., Braswell, B. H., Churkina, G., Desai, A. R.,
Falge, E., Gove, J. H., Heimann, M., Hui, D., Jarvis, A. J., Kattge, J.,
Noormets, A., and Stauch, V. J.: Comprehensive comparison of gap-filling
techniques for eddy covariance net carbon fluxes, Agr. Forest Meteorol.,
147, 209–232, <a href="https://doi.org/10.1016/j.agrformet.2007.08.011" target="_blank">https://doi.org/10.1016/j.agrformet.2007.08.011</a>, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib43"><label>43</label><mixed-citation>Moncrieff, J., Clement, R., Finnigan, J., and Meyers, T.: Averaging,
Detrending, and Filtering of Eddy Covariance Time Series, in: Handbook of
Micrometeorology, edited by: Lee, X., Massman, W., and Law, B.,
Springer, Dordrecht, 7–31 pp., <a href="https://doi.org/10.1007/1-4020-2265-4" target="_blank">https://doi.org/10.1007/1-4020-2265-4</a>, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib44"><label>44</label><mixed-citation>Oncley, S., Foken, T., Vogt, R., Kohsiek, W., DeBruin, H. A. R., Bernhofer,
C., Christen, A., Gorsel, E., Grantz, D., Feigenwinter, C., Lehner, I.,
Liebethal, C., Liu, H., Mauder, M., Pitacco, A., Ribeiro, L., and Weidinger,
T.: The Energy Balance Experiment EBEX-2000. Part I: overview and energy
balance, Bound.-Lay. Meteorol., 123, 1–28,
<a href="https://doi.org/10.1007/s10546-007-9161-1" target="_blank">https://doi.org/10.1007/s10546-007-9161-1</a>, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib45"><label>45</label><mixed-citation>Papale, D. and Valentini, R.: A new assessment of European forests carbon
exchanges by eddy fluxes and artificial neural network spatialization, Glob.
Chang. Biol., 9, 525–535, <a href="https://doi.org/10.1046/j.1365-2486.2003.00609.x" target="_blank">https://doi.org/10.1046/j.1365-2486.2003.00609.x</a>, 2003.
</mixed-citation></ref-html>
<ref-html id="bib1.bib46"><label>46</label><mixed-citation>Pastorello, G., Trotta, C., Canfora, E. et al.: The
FLUXNET2015 dataset and the ONEFlux processing pipeline for eddy covariance
data, Sci. data, 7, 225, <a href="https://doi.org/10.1038/s41597-020-0534-3" target="_blank">https://doi.org/10.1038/s41597-020-0534-3</a>, 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib47"><label>47</label><mixed-citation>Reichstein, M., Falge, E., Baldocchi, D., Papale, D., Aubinet, M.,
Berbigier, P., Bernhofer, C., Buchmann, N., Gilmanov, T., Granier, A.,
Grünwald, T., Havránková, K., Ilvesniemi, H., Janous, D., Knohl,
A., Laurila, T., Lohila, A., Loustau, D., Matteucci, G., Meyers, T.,
Miglietta, F., Ourcival, J. M., Pumpanen, J., Rambal, S., Rotenberg, E.,
Sanz, M., Tenhunen, J., Seufert, G., Vaccari, F., Vesala, T., Yakir, D., and
Valentini, R.: On the separation of net ecosystem exchange into assimilation
and ecosystem respiration: Review and improved algorithm, Glob. Chang.
Biol., 11, 1424–1439, <a href="https://doi.org/10.1111/j.1365-2486.2005.001002.x" target="_blank">https://doi.org/10.1111/j.1365-2486.2005.001002.x</a>, 2005.
</mixed-citation></ref-html>
<ref-html id="bib1.bib48"><label>48</label><mixed-citation>Richardson, A. D. and Hollinger, D. Y.: A method to estimate the additional
uncertainty in gap-filled NEE resulting from long gaps in the CO<sub>2</sub> flux
record, Agr. Forest Meteorol., 147, 199–208,
<a href="https://doi.org/10.1016/j.agrformet.2007.06.004" target="_blank">https://doi.org/10.1016/j.agrformet.2007.06.004</a>, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib49"><label>49</label><mixed-citation>Richardson, A. D., Mahecha, M. D., Falge, E., Kattge, J., Moffat, A. M.,
Papale, D., Reichstein, M., Stauch, V. J., Braswell, B. H., Churkina, G.,
Kruijt, B., and Hollinger, D. Y.: Statistical properties of random CO<sub>2</sub> flux
measurement uncertainty inferred from model residuals, Agr. Forest
Meteorol., 148, 38–50, <a href="https://doi.org/10.1016/J.AGRFORMET.2007.09.001" target="_blank">https://doi.org/10.1016/J.AGRFORMET.2007.09.001</a>, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib50"><label>50</label><mixed-citation>Scott, R. L., Biederman, J. A., Hamerlynck, E. P., Barron Gafford, G. A., and
Barron-Gafford, G. A.: The carbon balance pivot point of southwestern U.S.
semiarid ecosystems: Insights from the 21st century drought, J. Geophys. Res.-Biogeo, 120, 2612–2624, <a href="https://doi.org/10.1002/2015JG003181" target="_blank">https://doi.org/10.1002/2015JG003181</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib51"><label>51</label><mixed-citation>Soloway, A. D., Amiro, B. D., Dunn, A. L., and Wofsy, S. C.: Carbon neutral
or a sink? Uncertainty caused by gap-filling long-term flux measurements for
an old-growth boreal black spruce forest, Agr. Forest Meteorol., 233,
110–121, <a href="https://doi.org/10.1016/j.agrformet.2016.11.005" target="_blank">https://doi.org/10.1016/j.agrformet.2016.11.005</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib52"><label>52</label><mixed-citation>Stoy, P. C., Mauder, M., Foken, T., Marcolla, B., Boegh, E., Ibrom, A.,
Arain, M. A., Arneth, A., Aurela, M., Bernhofer, C., Cescatti, A., Dellwik,
E., Duce, P., Gianelle, D., van Gorsel, E., Kiely, G., Knohl, A., Margolis,
H., McCaughey, H., Merbold, L., Montagnani, L., Papale, D., Reichstein, M.,
Saunders, M., Serrano-Ortiz, P., Sottocornola, M., Spano, D., Vaccari, F.,
and Varlagin, A.: A data-driven analysis of energy balance closure across
FLUXNET research sites: The role of landscape scale heterogeneity, Agr.
Forest Meteorol., 171–172, 137–152, <a href="https://doi.org/10.1016/j.agrformet.2012.11.004" target="_blank">https://doi.org/10.1016/j.agrformet.2012.11.004</a>,
2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib53"><label>53</label><mixed-citation> Tramontana, G., Jung, M., Schwalm, C. R., Ichii, K., Camps-Valls, G., Ráduly, B., Reichstein, M., Arain, M. A., Cescatti, A., Kiely, G., Merbold, L., Serrano-Ortiz, P., Sickert, S., Wolf, S., and Papale, D.: Predicting carbon dioxide and energy fluxes across global FLUXNET sites with regression algorithms, Biogeosciences, 13, 4291–4313, <a href="https://doi.org/10.5194/bg-13-4291-2016" target="_blank">https://doi.org/10.5194/bg-13-4291-2016</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib54"><label>54</label><mixed-citation>Webb, E. K., Pearman, G. I., and Leuning, R.: Correction of flux measurements
for density effects due to heat and water vapour transfer, Q. J. Roy.
Meteorol. Soc., 106, 85–100, <a href="https://doi.org/10.1002/qj.49710644707" target="_blank">https://doi.org/10.1002/qj.49710644707</a>, 1980.
</mixed-citation></ref-html>
<ref-html id="bib1.bib55"><label>55</label><mixed-citation>Wilson, K., Goldstein, A., Falge, E., Aubinet, M., Baldocchi, D., Berbigier,
P., Bernhofer, C., Ceulemans, R., Dolman, H., Field, C., Grelle, A., Ibrom,
A., Law, B. E., Kowalski, A., Meyers, T., Moncrieff, J., Monson, R., Oechel,
W., Tenhunen, J., Valentini, R., and Verma, S.: Energy balance closure at
FLUXNET sites, Agr. Forest Meteorol., 113, 223–243,
<a href="https://doi.org/10.1016/S0168-1923(02)00109-0" target="_blank">https://doi.org/10.1016/S0168-1923(02)00109-0</a>, 2002.

</mixed-citation></ref-html>
<ref-html id="bib1.bib56"><label>56</label><mixed-citation>Wutzler, T., Lucas-Moffat, A., Migliavacca, M., Knauer, J., Sickel, K., Šigut, L., Menzer, O., and Reichstein, M.: Basic and extensible post-processing of eddy covariance flux data with REddyProc, Biogeosciences, 15, 5015–5030, <a href="https://doi.org/10.5194/bg-15-5015-2018" target="_blank">https://doi.org/10.5194/bg-15-5015-2018</a>, 2018.
</mixed-citation></ref-html>
<ref-html id="bib1.bib57"><label>57</label><mixed-citation>Xu, T., Guo, Z., Liu, S., He, X., Meng, Y., Xu, Z., Xia, Y., Xiao, J.,
Zhang, Y., Ma, Y., and Song, L.: Evaluating Different Machine Learning
Methods for Upscaling Evapotranspiration from Flux Towers to the Regional
Scale, J. Geophys. Res.-Atmos., 123, 8674–8690,
<a href="https://doi.org/10.1029/2018JD028447" target="_blank">https://doi.org/10.1029/2018JD028447</a>, 2018.
</mixed-citation></ref-html>
<ref-html id="bib1.bib58"><label>58</label><mixed-citation>Yao, J., Liu, H., Huang, J., Gao, Z., Wang, G., Li, D., Yu, H., and Chen, X.:
Accelerated dryland expansion regulates future variability in dryland gross
primary production, Nat. Commun., 11, 1665, <a href="https://doi.org/10.1038/s41467-020-15515-2" target="_blank">https://doi.org/10.1038/s41467-020-15515-2</a>,
2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib59"><label>59</label><mixed-citation>Yao, J., Gao, Z., Huang, J., Liu, H., and Wang, G.: US-Hn1 flux and meteorological data, figshare [data set], <a href="https://doi.org/10.6084/m9.figshare.14747952" target="_blank">https://doi.org/10.6084/m9.figshare.14747952</a>, 2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib60"><label>60</label><mixed-citation>Zeng, J., Matsunaga, T., Tan, Z. H., Saigusa, N., Shirai, T., Tang, Y.,
Peng, S., and Fukuda, Y.: Global terrestrial carbon fluxes of 1999–2019
estimated by upscaling eddy covariance data with a random forest, Sci. Data,
7, 1–11, <a href="https://doi.org/10.1038/s41597-020-00653-5" target="_blank">https://doi.org/10.1038/s41597-020-00653-5</a>, 2020.
</mixed-citation></ref-html>--></article>
