Skip to content

Commit

Permalink
bugfix residue set names
Browse files Browse the repository at this point in the history
  • Loading branch information
k4rst3ns committed Feb 2, 2024
1 parent 54545f3 commit cb4e4be
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '4187636'
ValidationKey: '4207815'
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
- 'Warning: namespace ''.*'' is not available and has been replaced'
Expand Down
4 changes: 2 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: 'mrsoil: MadRat Soil Organic Carbon Budget Library'
version: 2.1.2
date-released: '2024-01-31'
version: 2.1.3
date-released: '2024-02-02'
abstract: This packages provides functions for soil organic carbon budget for mineral
soils using the steady-state method (Tier 2) of the 2019 Refinement to the 2006
IPP Guidelines for National Greenhouse Gas Inventories.
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: mrsoil
Type: Package
Title: MadRat Soil Organic Carbon Budget Library
Version: 2.1.2
Date: 2024-01-31
Version: 2.1.3
Date: 2024-02-02
Authors@R: c(person("Kristine", "Karstens", email = "karstens@pik-potsdam.de", role = c("aut","cre")),
person("Jan Philipp", "Dietrich", email = "dietrich@pik-potsdam.de", role = "aut"))
Description: This packages provides functions for soil organic carbon budget for mineral soils using the steady-state method (Tier 2) of the 2019 Refinement to the 2006 IPP Guidelines for National Greenhouse Gas Inventories.
Expand Down
2 changes: 1 addition & 1 deletion R/calcCarbonResidues.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ calcCarbonResidues <- function() {
attributes <- c("c", "LC", "NC")
names <- as.vector(outer(unique(kcr2kres$kres), attributes, paste, sep = "."))
out <- new.magpie(getCells(residueRecycling), getYears(residueRecycling), names, fill = 0)
getSets(out)[3] <- c("inputs", "attributes")
getSets(out, fulldim = FALSE)[3] <- "inputs.attributes"

out[, , "c"] <- residueRecycling
out[, , c("LC", "NC")] <- param
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 Soil Organic Carbon Budget Library

R package **mrsoil**, version **2.1.2**
R package **mrsoil**, version **2.1.3**

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

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

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

Karstens K, Dietrich J (2024). _mrsoil: MadRat Soil Organic Carbon Budget Library_. doi:10.5281/zenodo.4317933 <https://doi.org/10.5281/zenodo.4317933>, R package version 2.1.2, <https://github.com/pik-piam/mrsoil>.
Karstens K, Dietrich J (2024). _mrsoil: MadRat Soil Organic Carbon Budget Library_. doi:10.5281/zenodo.4317933 <https://doi.org/10.5281/zenodo.4317933>, R package version 2.1.3, <https://github.com/pik-piam/mrsoil>.

A BibTeX entry for LaTeX users is

Expand All @@ -47,7 +47,7 @@ A BibTeX entry for LaTeX users is
title = {mrsoil: MadRat Soil Organic Carbon Budget Library},
author = {Kristine Karstens and Jan Philipp Dietrich},
year = {2024},
note = {R package version 2.1.2},
note = {R package version 2.1.3},
doi = {10.5281/zenodo.4317933},
url = {https://github.com/pik-piam/mrsoil},
}
Expand Down

0 comments on commit cb4e4be

Please sign in to comment.