Skip to content

Commit

Permalink
add potential forest cover to fullCELLULARMAGPIE
Browse files Browse the repository at this point in the history
  • Loading branch information
pvjeetze committed Apr 18, 2024
1 parent cce6ab8 commit 0b2bfbe
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '28754950'
ValidationKey: '28774781'
AutocreateReadme: yes
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'mrmagpie: madrat based MAgPIE Input Data Library'
version: 1.45.0
version: 1.45.1
date-released: '2024-04-18'
abstract: Provides functions for MAgPIE country and cellular input data generation.
authors:
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: mrmagpie
Title: madrat based MAgPIE Input Data Library
Version: 1.45.0
Version: 1.45.1
Date: 2024-04-18
Authors@R: c(
person("Kristine", "Karstens", , "[email protected]", role = c("aut", "cre")),
Expand Down
10 changes: 10 additions & 0 deletions R/fullCELLULARMAGPIE.R
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,16 @@ fullCELLULARMAGPIE <- function(rev = numeric_version("0.1"), dev = "",
aggregate = "cluster", cells = cells,
file = paste0("forestageclasses_", ctype, ".mz"))

calcOutput("PotentialForestArea",
refData = "lpj", cells = cells, lpjml = lpjml, climatetype = climatetype,
aggregate = FALSE, round = roundArea, file = "pot_forest_area_0.5.mz"
)

calcOutput("PotentialForestArea",
refData = "lpj", cells = cells, lpjml = lpjml, climatetype = climatetype,
aggregate = "cluster", round = roundArea, file = paste0("pot_forest_area_", ctype, ".mz")
)

# 37 labour prod
calcOutput("LabourProdImpactEmu", aggregate = "cluster", cells = cells, subtype = "impact",
round = 6, file = paste0("f37_labourprodimpact_", ctype, ".mz"))
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# madrat based MAgPIE Input Data Library

R package **mrmagpie**, version **1.45.0**
R package **mrmagpie**, version **1.45.1**

[![CRAN status](https://www.r-pkg.org/badges/version/mrmagpie)](https://cran.r-project.org/package=mrmagpie) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4319612.svg)](https://doi.org/10.5281/zenodo.4319612) [![R build status](https://github.com/pik-piam/mrmagpie/workflows/check/badge.svg)](https://github.com/pik-piam/mrmagpie/actions) [![codecov](https://codecov.io/gh/pik-piam/mrmagpie/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/mrmagpie) [![r-universe](https://pik-piam.r-universe.dev/badges/mrmagpie)](https://pik-piam.r-universe.dev/builds)

Expand Down Expand Up @@ -39,7 +39,7 @@ In case of questions / problems please contact Kristine Karstens <karstens@pik-p

To cite package **mrmagpie** in publications use:

Karstens K, Dietrich J, Chen D, Windisch M, Alves M, Beier F, Köberle A, v. Jeetze P, Mishra A, Humpenoeder F, Sauer P (2024). _mrmagpie: madrat based MAgPIE Input Data Library_. doi: 10.5281/zenodo.4319612 (URL: https://doi.org/10.5281/zenodo.4319612), R package version 1.45.0, <URL: https://github.com/pik-piam/mrmagpie>.
Karstens K, Dietrich J, Chen D, Windisch M, Alves M, Beier F, Köberle A, v. Jeetze P, Mishra A, Humpenoeder F, Sauer P (2024). _mrmagpie: madrat based MAgPIE Input Data Library_. doi: 10.5281/zenodo.4319612 (URL: https://doi.org/10.5281/zenodo.4319612), R package version 1.45.1, <URL: https://github.com/pik-piam/mrmagpie>.

A BibTeX entry for LaTeX users is

Expand All @@ -48,7 +48,7 @@ A BibTeX entry for LaTeX users is
title = {mrmagpie: madrat based MAgPIE Input Data Library},
author = {Kristine Karstens and Jan Philipp Dietrich and David Chen and Michael Windisch and Marcos Alves and Felicitas Beier and Alexandre Köberle and Patrick {v. Jeetze} and Abhijeet Mishra and Florian Humpenoeder and Pascal Sauer},
year = {2024},
note = {R package version 1.45.0},
note = {R package version 1.45.1},
doi = {10.5281/zenodo.4319612},
url = {https://github.com/pik-piam/mrmagpie},
}
Expand Down

0 comments on commit 0b2bfbe

Please sign in to comment.