<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.3/metadata.xsd">
    <identifier identifierType="DOI">10.5880/GFZ.1.4.2023.001</identifier>
    <creators>
     <creator>
      <creatorName nameType="Personal">Kalhori, Aram</creatorName>
      <givenName>Aram</givenName>
      <familyName>Kalhori</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0002-0652-8987</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </creator>
     <creator>
      <creatorName nameType="Personal">Wille, Christian</creatorName>
      <givenName>Christian</givenName>
      <familyName>Wille</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0003-0930-6527</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </creator>
     <creator>
      <creatorName nameType="Personal">Gottschalk, Pia</creatorName>
      <givenName>Pia</givenName>
      <familyName>Gottschalk</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0003-4842-8893</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </creator>
     <creator>
      <creatorName nameType="Personal">Li, Zhan</creatorName>
      <givenName>Zhan</givenName>
      <familyName>Li</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0001-6307-5200</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </creator>
     <creator>
      <creatorName nameType="Personal">Hashemi, Josh</creatorName>
      <givenName>Josh</givenName>
      <familyName>Hashemi</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0002-8660-7406</nameIdentifier>
      <affiliation>Alfred-Wegener-Institute Helmholtz Centre for Polar and Marine Research, Potsdam, Germany</affiliation>
     </creator>
     <creator>
      <creatorName nameType="Personal">Kemper, Karl</creatorName>
      <givenName>Karl</givenName>
      <familyName>Kemper</familyName>
      <affiliation>Department of Geosciences, Institute of Geography, University of Cologne, Cologne, Germany</affiliation>
     </creator>
     <creator>
      <creatorName nameType="Personal">Sachs, Torsten</creatorName>
      <givenName>Torsten</givenName>
      <familyName>Sachs</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0002-9959-4771</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </creator>
    </creators>
    <titles>
     <title>Rewetted Peatland_GHG analysis Code: software packages (R and Matlab) for the calculation of greenhouse gas (GHG) fluxes at a rewetted peatland</title>
    </titles>
    <publisher>GFZ Data Services</publisher>
    <publicationYear>2024</publicationYear>
    <subjects>
     <subject>carbon dioxide emission</subject>
     <subject>CO2 emission</subject>
     <subject>methane emission</subject>
     <subject>CH4 emission</subject>
     <subject>peatland</subject>
     <subject>wetland</subject>
     <subject>eddy covariance</subject>
     <subject>rewetting</subject>
     <subject>emission factor</subject>
     <subject>mitigation</subject>
     <subject subjectScheme="NASA/GCMD Earth Science Keywords">EARTH SCIENCE &gt; BIOSPHERE &gt; TERRESTRIAL ECOSYSTEMS &gt; WETLANDS &gt; PEATLANDS</subject>
     <subject subjectScheme="GCMD Platforms">In Situ Land-based Platforms &gt; GROUND-BASED OBSERVATIONS</subject>
    </subjects>
    <contributors>
     <contributor contributorType="ContactPerson">
      <contributorName nameType="Personal">Kalhori, Aram</contributorName>
      <givenName>Aram</givenName>
      <familyName>Kalhori</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0002-0652-8987</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </contributor>
     <contributor contributorType="DataCurator">
      <contributorName nameType="Personal">Kalhori, Aram</contributorName>
      <givenName>Aram</givenName>
      <familyName>Kalhori</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0002-0652-8987</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </contributor>
     <contributor contributorType="DataCollector">
      <contributorName nameType="Personal">Wille, Christian</contributorName>
      <givenName>Christian</givenName>
      <familyName>Wille</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0003-0930-6527</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </contributor>
     <contributor contributorType="DataCurator">
      <contributorName nameType="Personal">Wille, Christian</contributorName>
      <givenName>Christian</givenName>
      <familyName>Wille</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0003-0930-6527</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </contributor>
     <contributor contributorType="DataManager">
      <contributorName nameType="Personal">Wille, Christian</contributorName>
      <givenName>Christian</givenName>
      <familyName>Wille</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0003-0930-6527</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </contributor>
     <contributor contributorType="Researcher">
      <contributorName nameType="Personal">Gottschalk, Pia</contributorName>
      <givenName>Pia</givenName>
      <familyName>Gottschalk</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0003-4842-8893</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </contributor>
     <contributor contributorType="Researcher">
      <contributorName nameType="Personal">Li, Zhan</contributorName>
      <givenName>Zhan</givenName>
      <familyName>Li</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0001-6307-5200</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </contributor>
     <contributor contributorType="Researcher">
      <contributorName nameType="Personal">Hashemi, Josh</contributorName>
      <givenName>Josh</givenName>
      <familyName>Hashemi</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0002-8660-7406</nameIdentifier>
      <affiliation>Alfred-Wegener-Institute Helmholtz Centre for Polar and Marine Research, Potsdam, Germany</affiliation>
     </contributor>
     <contributor contributorType="Researcher">
      <contributorName nameType="Personal">Kemper, Karl</contributorName>
      <givenName>Karl</givenName>
      <familyName>Kemper</familyName>
      <affiliation>Department of Geosciences, Institute of Geography, University of Cologne, Cologne, Germany</affiliation>
     </contributor>
     <contributor contributorType="ContactPerson">
      <contributorName nameType="Personal">Sachs, Torsten</contributorName>
      <givenName>Torsten</givenName>
      <familyName>Sachs</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0002-9959-4771</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </contributor>
     <contributor contributorType="ProjectLeader">
      <contributorName nameType="Personal">Sachs, Torsten</contributorName>
      <givenName>Torsten</givenName>
      <familyName>Sachs</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID">0000-0002-9959-4771</nameIdentifier>
      <affiliation>GFZ German Research Centre for Geosciences, Potsdam, Germany</affiliation>
     </contributor>
     <contributor contributorType="ContactPerson">
      <contributorName>Kalhori, Aram</contributorName>
      <affiliation>GFZ German Research Centre for Geosciences</affiliation>
     </contributor>
     <contributor contributorType="ContactPerson">
      <contributorName>Sachs, Torsten</contributorName>
      <affiliation>GFZ German Research Centre for Geosciences</affiliation>
     </contributor>
    </contributors>
    <dates>
     <date dateType="Created">2023-01-17</date>
     <date dateType="Collected">2008-01-01/2020-12-31</date>
    </dates>
    <resourceType resourceTypeGeneral="Software">Software</resourceType>
    <relatedIdentifiers>
     <relatedIdentifier relatedIdentifierType="DOI" relationType="IsSupplementTo">10.1038/s43247-024-01226-9</relatedIdentifier>
     <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://posit.co/downloads/</relatedIdentifier>
     <relatedIdentifier relatedIdentifierType="DOI" relationType="IsContinuedBy">10.5880/GFZ.1.4.2023.004</relatedIdentifier>
     <relatedIdentifier relatedIdentifierType="URL" relationType="HasPart">https://CRAN.R-project.org/package=zyp</relatedIdentifier>
     <relatedIdentifier relatedIdentifierType="URL" relationType="HasPart">https://github.com/stekhoven/missForest</relatedIdentifier>
     <relatedIdentifier relatedIdentifierType="URL" relationType="HasPart">https://cran.r-project.org/web/packages/REddyProc/index.html</relatedIdentifier>
     <relatedIdentifier relatedIdentifierType="DOI" relationType="Cites">10.1080/01621459.1968.10480934</relatedIdentifier>
     <relatedIdentifier relatedIdentifierType="DOI" relationType="Cites">10.1002/hyp.1095</relatedIdentifier>
     <relatedIdentifier relatedIdentifierType="DOI" relationType="Cites">10.1080/07055900.2000.9649654</relatedIdentifier>
     <relatedIdentifier relatedIdentifierType="DOI" relationType="Cites">10.1093/bioinformatics/btr597</relatedIdentifier>
    </relatedIdentifiers>
    <sizes/>
    <formats/>
    <rightsList>
     <rights rightsURI="https://www.gnu.org/licenses/gpl-3.0.html">GNU GENERAL PUBLIC LICENSE  (Version 3, 29 June 2007), Copyright (C) 2023 Helmholtz Centre Potsdam GFZ German Research Centre for Geosciences, Potsdam, Germany (Aram Kalhori)</rights>
    </rightsList>
    <descriptions>
     <description descriptionType="Abstract">This publication provides the codes produced for the article "Temporally dynamic carbon dioxide and       <br/>
methane emission factors for rewetted peatlands. Nature Communications Earth and Environment" by Aram Kalhori, Christian Wille, Pia Gottschalk, Zhan Li, Josh Hashemi, Karl Kemper, and Torsten Sachs (https://doi.org/10.1038/s43247-024-01226-9). In the article, the authors estimate the cumulative GHG emissions of a rewetted peatland in Germany using the long-term ecosystem flux measurements. They observe a source-to-sink transition of annual carbon dioxide (CO2) fluxes and decreasing trend of methane (CH4) emissions.       <br/>
      <br/>
This software is written in R and MATLAB. Running the codes ([R files and .m files](Code)) and loading the data files ([CSV files and .mat files](Data)) requires the pre-installation of [R and RStudio] (https://posit.co/downloads/) and ([MATLAB]. The RStudio 2022.07.2 Build 576 version has been used for the R scripts. The land cover classification work was performed in QGIS, v.3.16.11-Hannover. Data were analyzed in both MATLAB and R and plots created with R (R Core Development Team 2020) in RStudio®.       <br/>
      <br/>
The following external packages are required to be incorporated into the codes in order to run the provided codes:      <br/>
      <br/>
"zyp" package; "missForest" package;"REddyProc" package and explained in detail in the README.      <br/>
      <br/>
Files: Codes/Kalhori2023_SenSlopes_fig2.r      <br/>
"zyp" package, Maintainer David Bronaugh &lt;bronaugh@uvic.ca&gt;      <br/>
Depends R (&gt;= 2.4.0), Kendall      <br/>
License: LGPL-2.1      <br/>
https://CRAN.R-project.org/package=zyp      <br/>
      <br/>
Files: Codes/Kalhori2023_gapfillingMF_validation_figSI1.r      <br/>
"missForest" package, Maintainer Daniel J. Stekhoven &lt;stekhoven@stat.math.ethz.ch&gt;      <br/>
Depends randomForest,foreach,itertools      <br/>
License: GPL (&gt;= 2)      <br/>
https://www.r-project.org, https://github.com/stekhoven/missForest      <br/>
      <br/>
Files: Codes/Kalhori2023_NEEpartitioning.r      <br/>
"REddyProc" package, Maintainer Thomas Wutzler &lt;twutz@bgc-jena.mpg.de&gt;      <br/>
Depends R (&gt;= 3.0.0), methods       <br/>
Imports Rcpp, dplyr, purrr, rlang, readr, tibble, magrittr, solartime, bigleaf (&gt;= 0.7)      <br/>
License: GPL (&gt;= 2)      <br/>
https://cran.r-project.org/web/packages/REddyProc/index.html      <br/>
      <br/>
      <br/>
Data are provided as .shp, CSV or text files. The MATLAB scripts for footprint calculation and the R scripts used for gapfilling (missForest) and flux partitioning (REddyProc) are also included.The full description of the data and methods is provided in the manuscript.      <br/>
     </description>
     <description descriptionType="Other">GNU GENERAL PUBLIC LICENSE       <br/>
Version 3, 29 June 2007      <br/>
      <br/>
Copyright (C) 2023 Helmholtz Centre Potsdam GFZ German Research Centre      <br/>
for Geosciences, Potsdam, Germany (Aram Kalhori).      <br/>
      <br/>
Kalhori2023_Rewetted Peatland_GHG Analysis is free software:       <br/>
you can redistribute it and/or modify      <br/>
it under the terms of the GNU General Public License as published      <br/>
by the Free Software Foundation, version 3 of the License.      <br/>
      <br/>
This program is distributed in the hope that it will be useful,      <br/>
but WITHOUT ANY WARRANTY; without even the implied warranty of      <br/>
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      <br/>
GNU Affero General Public License for more details.      <br/>
      <br/>
You should have received a copy of the GNU General Public License      <br/>
along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.      <br/>
      <br/>
     </description>
    </descriptions>
    <fundingReferences>
     <fundingReference>
      <funderName>Helmholtz-Zentrum Potsdam - Deutsches GeoForschungsZentrum GFZ</funderName>
      <funderIdentifier funderIdentifierType="Crossref Funder ID">http://doi.org/10.13039/501100010956</funderIdentifier>
      <awardNumber>VH-NG-821</awardNumber>
      <awardTitle>Helmholtz Young Investigators Grant</awardTitle>
     </fundingReference>
     <fundingReference>
      <funderName>the Helmholtz Association's Initiative and Networking Fund</funderName>
      <awardTitle>Helmholtz Climate Initiative (HI-CAM)</awardTitle>
     </fundingReference>
    </fundingReferences>
   </resource>