From a2e24495c01f837474b69263a9861a89050cbfd1 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 21 Jul 2017 11:15:41 +0200 Subject: New Option for Step 1, fix example, update docs Also add the reference file for testing Step12 input file generation --- docs/reference/PEC_sw_focus.html | 67 ++++++++++++++++++++++++++++++++++------ 1 file changed, 57 insertions(+), 10 deletions(-) (limited to 'docs/reference/PEC_sw_focus.html') diff --git a/docs/reference/PEC_sw_focus.html b/docs/reference/PEC_sw_focus.html index 7331d42..50651ae 100644 --- a/docs/reference/PEC_sw_focus.html +++ b/docs/reference/PEC_sw_focus.html @@ -6,7 +6,7 @@ -Calculate FOCUS Step 1 PEC surface water — PEC_sw_focus • pfm +Calculate PEC surface water at FOCUS Step 1 — PEC_sw_focus • pfm @@ -68,19 +68,25 @@
-

This is reimplementation of Step 1 of the FOCUS Step 1 and 2 calculator -version 3.2, authored by Michael Klein. Note that results for multiple +

This is reimplementation of the FOCUS Step 1 and 2 calculator version 3.2, +authored by Michael Klein, in R. Note that results for multiple applications should be compared to the corresponding results for a single application. At current, this is not done automatically in -this implementation.

+this implementation. Only Step 1 PECs are calculated. However, +input files are generated that are suitable as input also for Step 2 +to be used with the FOCUS calculator.

-
PEC_sw_focus(parent, rate, n = 1, i = NA, met = NULL, f_drift = NA,
-  f_rd = 0.1, scenario = FOCUS_Step_12_scenarios$names)
+
PEC_sw_focus(parent, rate, n = 1, i = NA, comment = "", met = NULL,
+  f_drift = NA, f_rd = 0.1, scenario = FOCUS_Step_12_scenarios$names,
+  region = c("n", "s"), season = c(NA, "of", "mm", "js"),
+  interception = c("no interception", "minimal crop cover",
+  "average crop cover", "full canopy"), met_form_water = TRUE,
+  txt_file = "pesticide.txt", overwrite = FALSE, append = TRUE)

Arguments

@@ -103,6 +109,10 @@ applications are given explicitly

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
i

The application interval

comment

A comment for the input file

met

A list containing metabolite specific parameters. e.g. @@ -127,6 +137,42 @@ parent or a metabolite

The name of the scenario. Must be one of the scenario names given in FOCUS_Step_12_scenarios

region

'n' for Northern Europe or 's' for Southern Europe. If NA, only +Step 1 PECsw are calculated

season

'of' for October to February, 'mm' for March to May, and 'js' +for June to September. If NA, only step 1 PECsw are calculated

interception

One of 'no interception' (default), 'minimal crop cover', +'average crop cover' or 'full canopy'

met_form_water

Should the metabolite formation in water be taken into +account? This can be switched off to check the influence and to compare +with previous versions of the Steps 12 calculator

txt_file

the name, and potentially the full path to the +Steps.12 input text file to which the specification of the run(s) +should be written

overwrite

Should an existing file a the location specified in +txt_file be overwritten?

append

Should the input text file be appended?

Note

@@ -151,7 +197,7 @@ names given in FOCUS_Step_12_scenar

Examples

# Parent only -dummy_1 <- chent_focus_sw(cwsat = 6000, DT50_ws = 6, Koc = 344.8) +dummy_1 <- chent_focus_sw("Dummy 1", cwsat = 6000, DT50_ws = 6, Koc = 344.8) PEC_sw_focus(dummy_1, 3000, f_drift = 0)
#> $f_drift #> [1] 0 #> @@ -198,8 +244,9 @@ names given in FOCUS_Step_12_scenar #> [1] 2362.075 #>
# Metabolite -new_dummy <- chent_focus_sw(mw = 250, Koc = 100) -M1 <- chent_focus_sw(mw = 100, cwsat = 100, DT50_ws = 100, Koc = 50, max_ws = 0, max_soil = 0.5) +new_dummy <- chent_focus_sw("New Dummy", mw = 250, Koc = 100) +M1 <- chent_focus_sw("M1", mw = 100, cwsat = 100, DT50_ws = 100, Koc = 50, + max_ws = 0, max_soil = 0.5) PEC_sw_focus(new_dummy, 1000, scenario = "cereals, winter", met = M1)
#> $f_drift #> [1] 0.02759 #> -- cgit v1.2.1