Skip to content

Danapit/C-PEAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-PEAT data retrieval from PANGAEA (R & Python)

This repository contains scripts to retrieve metadata and data from the PAGES C-PEAT Global Peatland Carbon Database published in the PANGAEA repository (Felden et al., 2023).
Two implementations are provided:

  • R scripts (R Core Team, 2022) using the pangaear package (Chamberlain et al., 2021)
  • Python Jupyter notebooks using the pangaeapy package (Huber at al., 2025)

Example scripts

We provide example R scripts example R scripts and an equivalent Python Jupyter Notebooks for accessing the PAGES’ C-PEAT data.

Structure

C-PEAT/
│
├── C-PEAT_download.Rproj        # R project file
├── .gitignore                   # to exclude temporary and cache files
│
├── R-Scripts/                   # example R scripts
│   ├── 01_download_all.R
│   ├── 02_geochemistry_data.R
│   └── 03_cal_age_data.R
│
├── Python-Scripts/              # example Python notebooks
│   ├── 01_download_all.ipynb
│   ├── 02_geochemistry_data.ipynb
│   └── 03_cal_age_data.ipynb
│
├── Data/                        # final exported data tables (local folder only)
│   ├── ...
│   └── ...
│
├── Downloads/                   # cache folder for pangaear package (local folder only)
│   ├── XXXXXX.tab
│   └── ...
│
└── README.md                    # project overview

Contributors

Dana Ransby
Kathrin Riemann-Campe
Nicole Sanderson

References

  • Chamberlain, S; Woo, K; MacDonald, A; Zimmerman, N; Simpson, G (2021). pangaear: Client for the 'Pangaea' Database. R package version 1.1.0, https://CRAN.R-project.org/package=pangaear.
  • Felden, J; Möller, L; Schindler, U; Huber, R; Schumacher, S; Koppe, R; Diepenbroek, M; Glöckner, FO (2023) PANGAEA – Data Publisher for Earth & Environmental Science. Scientific Data, 10(1), 347, https://doi.org/10.1038/s41597-023-02269-x.
  • Huber, R; Röttenbacher, J; Selke, N; CodeShredder; Spreckelen, F; Balamurugan, A; Lowe, S; Stocker, M; Kempf, D; Iris-Hinrichs; Schindler, U & qays abou housien. (2025). pangaea-data-publisher/pangaeapy: v1.1.0 (v1.1.0). Zenodo. https://doi.org/10.5281/zenodo.15749619
  • R Core Team (2022). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.R-project.org/

Citation

Ransby, D; Riemann-Campe, K & Sanderson, N (2025). C-PEAT data retrieval from PANGAEA (R & Python). Zenodo. DOI

About

No description, website, or topics provided.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors