Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calcPastureSuit Bugfix #37

Merged
merged 2 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '27339910'
ValidationKey: '27381835'
AutocreateReadme: yes
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
Expand Down
6 changes: 4 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ 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.39.0
date-released: '2023-11-08'
version: 1.39.1
date-released: '2023-11-24'
abstract: Provides functions for MAgPIE country and cellular input data generation.
authors:
- family-names: Karstens
Expand All @@ -18,6 +18,8 @@ authors:
given-names: Michael
- family-names: Alves
given-names: Marcos
- family-names: Köberle
given-names: Alexandre
- family-names: Beier
given-names: Felicitas
email: [email protected]
Expand Down
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Type: Package
Package: mrmagpie
Title: madrat based MAgPIE Input Data Library
Version: 1.39.0
Date: 2023-11-08
Version: 1.39.1
Date: 2023-11-24
Authors@R: c(
person("Kristine", "Karstens", , "[email protected]", role = c("aut", "cre")),
person("Jan Philipp", "Dietrich", , "[email protected]", role = "aut"),
person("David", "Chen", role = "aut"),
person("Michael", "Windisch", role = "aut"),
person("Marcos", "Alves", role = "aut"),
person("Felicitas", "Beier", , "[email protected]", role = "aut"),
person("Alexandre", "Köberle", , "[email protected]", role = "aut"),
person("Patrick", "v. Jeetze", , "[email protected]", role = "aut"),
person("Abhijeet", "Mishra", , "[email protected]", role = "aut"),
person("Florian", "Humpenoeder", , "[email protected]", role = "aut"),
Expand Down
3 changes: 1 addition & 2 deletions R/calcPastureSuit.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' Options: "magpiecell" (59199), "lpjcell" (67420)
#'
#' @return List of magpie object with results on cluster level
#' @author Marcos Alves, Kristine Karstens
#' @author Marcos Alves, Kristine Karstens, Alexandre Köberle
#' @examples
#' \dontrun{
#' calcOutput("PastureSuit")
Expand Down Expand Up @@ -102,7 +102,6 @@ calcPastureSuit <- function(climatetype = "MRI-ESM2-0:ssp126",
pastureSuitArea <- collapseNames(pastureSuitArea)
pastureSuitArea[, pastAll, ] <- histPastr[, pastAll, ]
#maybe change to: pastureSuitArea[, pastAll, ] <- max(histPastr[, pastAll, ], pastureSuitArea[, pastAll, ]) #nolint
pastureSuitArea <- setNames(pastureSuitArea, "yields")

# Reduce number of grid cells to 59199
if (cells == "magpiecell") {
Expand Down
8 changes: 4 additions & 4 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.39.0**
R package **mrmagpie**, version **1.39.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,16 +39,16 @@ 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, v. Jeetze P, Mishra A, Humpenoeder F, Sauer P (2023). _mrmagpie: madrat based MAgPIE Input Data Library_. doi:10.5281/zenodo.4319612 <https://doi.org/10.5281/zenodo.4319612>, R package version 1.39.0, <https://github.com/pik-piam/mrmagpie>.
Karstens K, Dietrich J, Chen D, Windisch M, Alves M, Beier F, Koeberle A, v. Jeetze P, Mishra A, Humpenoeder F, Sauer P (2023). _mrmagpie: madrat based MAgPIE Input Data Library_. doi: 10.5281/zenodo.4319612 (URL: https://doi.org/10.5281/zenodo.4319612), R package version 1.39.1, <URL: https://github.com/pik-piam/mrmagpie>.

A BibTeX entry for LaTeX users is

```latex
@Manual{,
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 Patrick {v. Jeetze} and Abhijeet Mishra and Florian Humpenoeder and Pascal Sauer},
author = {Kristine Karstens and Jan Philipp Dietrich and David Chen and Michael Windisch and Marcos Alves and Felicitas Beier and Alexandre Koeberle and Patrick {v. Jeetze} and Abhijeet Mishra and Florian Humpenoeder and Pascal Sauer},
year = {2023},
note = {R package version 1.39.0},
note = {R package version 1.39.1},
doi = {10.5281/zenodo.4319612},
url = {https://github.com/pik-piam/mrmagpie},
}
Expand Down
2 changes: 1 addition & 1 deletion man/calcPastureSuit.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.