From 24328f0fabc1982db01132bafb4dc65dd85b13e9 Mon Sep 17 00:00:00 2001 From: Ranke Johannes Date: Fri, 13 Feb 2026 16:13:46 +0100 Subject: Fix UK drainage for very early applications Create a function `drainage_date_UK` that does not only respect the beginning of the drainage period on 1 October, but also the end of the drainage period on 30 April, and use it for determining the degradation time. Applications early in the year before 1 May will now correctly be calculated without degradation time. --- NEWS.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'NEWS.md') diff --git a/NEWS.md b/NEWS.md index 53a84c8..41a3da7 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,6 @@ -## version 0.6.4 +## version 0.6.5 + +- R/PEC_sw_drainage_UK.R: Create a function `drainage_date_UK` that does not only respect the beginning of the drainage period on 1 October, but also the end of the drainage period on 30 April, and use it for determining the degradation time. Applications early in the year before 1 May will now correctly be calculated without degradation time. - R/PEC_sw_drift.R: Vectorise the function not only with respect to distances, rates and water depths, but also with respect to crop groups. Closes issue #2 reported by Julian Klein (@juklei). -- cgit v1.2.3