From a534cc6b560bb4ec68b19a0fd174eae62a10aa4c Mon Sep 17 00:00:00 2001 From: yuki-nmi Date: Tue, 14 Jan 2020 14:32:26 +0100 Subject: [PATCH 1/2] add a missing multiplier for K in maisland --- R/potassium.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/potassium.R b/R/potassium.R index 4825b134..d566426f 100644 --- a/R/potassium.R +++ b/R/potassium.R @@ -68,7 +68,7 @@ calc_potassium_availability <- function(A_K_CC, A_K_CEC,A_CEC_CO, A_PH_CC, A_OS_ # Calculate the K availability for maize (CBGV, 2019) dt.maize <- dt[crop_category == 'mais'] - dt.maize[,value := 1 - (120 - A_K_CC) / 120] + dt.maize[,value := (1 - (120 - A_K_CC) / 120) * 2.5] # Calculate the K availability for arable crops (Ros & Bussink, 2011) dt.arable <- dt[crop_category == 'akkerbouw'] From 6a48a5fba881642181a10055a0e6ac8945261748 Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 15 Jan 2020 12:28:51 +0100 Subject: [PATCH 2/2] news updated, update checked --- NEWS.md | 1 + man/calc_nleach.Rd | 2 +- man/ind_nretention.Rd | 2 +- man/nleach_table.Rd | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index 022a72d9..2a7d3d1c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -13,6 +13,7 @@ * Parameters for the evaluation of sealing are adjusted #57 * Changes the formula to calculate nitrogen leaching and run-off #58 * Parameters for the evaluation of nretention are adjusted #58 +* potassium index is multiplied so that the evaluation is equal for grass and maize #60 ## Version 0.10.0 2019-12-13 ### Added diff --git a/man/calc_nleach.Rd b/man/calc_nleach.Rd index 868307f6..2d76d230 100644 --- a/man/calc_nleach.Rd +++ b/man/calc_nleach.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/nretention.R +% Please edit documentation in R/nretention.r \name{calc_nleach} \alias{calc_nleach} \title{Calculate the N leaching} diff --git a/man/ind_nretention.Rd b/man/ind_nretention.Rd index 7a3e2728..9e621e50 100644 --- a/man/ind_nretention.Rd +++ b/man/ind_nretention.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/nretention.R +% Please edit documentation in R/nretention.r \name{ind_nretention} \alias{ind_nretention} \title{Calculate the indicator for N retention for groundwater or surface water} diff --git a/man/nleach_table.Rd b/man/nleach_table.Rd index 037c6840..c52a43c5 100644 --- a/man/nleach_table.Rd +++ b/man/nleach_table.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/nretention.R +% Please edit documentation in R/nretention.r \docType{data} \name{nleach_table} \alias{nleach_table}