From 45c9eb16dd317421bf594b7d2aebb11386a9de33 Mon Sep 17 00:00:00 2001 From: Ranke Johannes Date: Thu, 14 Nov 2024 08:13:39 +0100 Subject: Use units in PEC_sw_exposit_drainage. Closes #3 --- docs/reference/PEC_sw_drift.html | 4 ++-- docs/reference/PEC_sw_exposit_drainage.html | 21 ++++++++++++++------- docs/reference/PEC_sw_exposit_runoff.html | 2 +- docs/reference/drift_percentages_rautmann.html | 18 +++++++++--------- 4 files changed, 26 insertions(+), 19 deletions(-) (limited to 'docs/reference') diff --git a/docs/reference/PEC_sw_drift.html b/docs/reference/PEC_sw_drift.html index 2bd66df..0616a78 100644 --- a/docs/reference/PEC_sw_drift.html +++ b/docs/reference/PEC_sw_drift.html @@ -123,7 +123,7 @@ is assumed to be horizontal, in degrees. The SYNOPS model assumes 45 degrees her
rate_units

Defaults to g/ha. For backwards compatibility, only used -if the specified rate does not have units::units].

+if the specified rate does not have units::units].

PEC_units
@@ -137,7 +137,7 @@ if the specified rate does not have

Details

It is recommened to specify the arguments rate, water_depth and -water_width using units::units from the units package.

+water_width using units::units from the units package.

See also

diff --git a/docs/reference/PEC_sw_exposit_drainage.html b/docs/reference/PEC_sw_exposit_drainage.html index a2dab7e..7229923 100644 --- a/docs/reference/PEC_sw_exposit_drainage.html +++ b/docs/reference/PEC_sw_exposit_drainage.html @@ -5,13 +5,17 @@ compounds ("Gefährdungsgruppen"), only one distinction is made in the calculations, between compounds with low mobility (group 1) and compounds with modest to high mobility (groups 2, 3 and 4). In this implementation, the group is derived only from the Koc, if not given explicitly. For -details, see the discussion of the function arguments below.'> +details, see the discussion of the function arguments below. +It is recommened to specify the arguments rate, Koc, DT50, t_drainage, +V_ditch and V_drainage using units::units from the units package.'> Skip to contents @@ -52,7 +56,9 @@ compounds ("Gefährdungsgruppen"), only one distinction is made in the calculations, between compounds with low mobility (group 1) and compounds with modest to high mobility (groups 2, 3 and 4). In this implementation, the group is derived only from the Koc, if not given explicitly. For -details, see the discussion of the function arguments below.

+details, see the discussion of the function arguments below. +It is recommened to specify the arguments rate, Koc, DT50, t_drainage, +V_ditch and V_drainage using units::units from the units package.

@@ -62,10 +68,10 @@ details, see the discussion of the function arguments below.

interception = 0, Koc = NA, mobility = c(NA, "low", "high"), - DT50 = Inf, - t_drainage = 3, - V_ditch = 30, - V_drainage = c(spring = 10, autumn = 100), + DT50 = set_units(Inf, "d"), + t_drainage = set_units(3, "days"), + V_ditch = set_units(30, "m3"), + V_drainage = set_units(c(spring = 10, autumn = 100), "m3"), dilution = 2 )
@@ -148,6 +154,7 @@ scenarios. If the rate was given in g/ha, the PECsw are in microg/L.

#> 12.5 25.0 #> #> $PEC_sw_drainage +#> Units: [µg/L] #> spring autumn #> 1.562500 4.807692 #> diff --git a/docs/reference/PEC_sw_exposit_runoff.html b/docs/reference/PEC_sw_exposit_runoff.html index cd57c99..234af5c 100644 --- a/docs/reference/PEC_sw_exposit_runoff.html +++ b/docs/reference/PEC_sw_exposit_runoff.html @@ -121,7 +121,7 @@ for the different distances. If the rate was given in g/ha, the PECsw are in mic

Details

It is recommened to specify the arguments rate, Koc, DT50, t_runoff, V_ditch and V_event -using units::units from the units package.

+using units::units from the units package.

See also

diff --git a/docs/reference/drift_percentages_rautmann.html b/docs/reference/drift_percentages_rautmann.html index bee0e60..40e2c89 100644 --- a/docs/reference/drift_percentages_rautmann.html +++ b/docs/reference/drift_percentages_rautmann.html @@ -42,7 +42,7 @@
drift_percentages_rautmann(
   distances,
   applications = 1,
-  crop_group_focus = c("arable", "hops", "vines, late", "vines, early", "fruit, late",
+  crop_group_RF = c("arable", "hops", "vines, late", "vines, early", "fruit, late",
     "fruit, early", "aerial"),
   formula = c("Rautmann", "FOCUS"),
   widths = 1
@@ -61,7 +61,7 @@
 

Number of applications for selection of drift percentile

-
crop_group_focus
+
crop_group_RF

One of the crop groups as used in drift_parameters_focus

@@ -88,7 +88,7 @@ FOrum for the Co-ordination of pesticde fate models and their USe.

Examples

-
# Compare JKI data with Rautmann formula
+    
# Compare JKI data with Rautmann and FOCUS formulas for arable crops (default)
 # One application on field crops, for 1 m, 3 m and 5 m distance
 drift_data_JKI[[1]][as.character(c(1, 3, 5)), "Ackerbau"]
 #>    1    3    5 
@@ -102,26 +102,26 @@ FOrum for the Co-ordination of pesticde fate models and their USe.
 drift_data_JKI[[1]][as.character(c(3, 5, 20, 50)), "Obstbau frueh"]
 #>     3     5    20    50 
 #> 29.20 19.89  2.77  0.30 
-drift_percentages_rautmann(c(3, 5, 20, 50), crop_group = "fruit, early")
+drift_percentages_rautmann(c(3, 5, 20, 50), crop_group_RF = "fruit, early")
 #> [1] 29.1973659 19.8844422  2.7618138  0.3012008
-drift_percentages_rautmann(c(3, 5, 20, 50), crop_group = "fruit, early",
+drift_percentages_rautmann(c(3, 5, 20, 50), crop_group_RF = "fruit, early",
   formula = "FOCUS")
 #> [1] 26.1193421 18.5428680  2.6038558  0.2940792
 drift_data_JKI[[1]][as.character(c(3, 5, 20, 50)), "Obstbau spaet"]
 #>     3     5    20    50 
 #> 15.73  8.41  1.09  0.22 
-drift_percentages_rautmann(c(3, 5, 20, 50), crop_group = "fruit, late")
+drift_percentages_rautmann(c(3, 5, 20, 50), crop_group_RF = "fruit, late")
 #> [1] 15.7246994  8.4108487  1.0813887  0.2155992
-drift_percentages_rautmann(c(3, 5, 20, 50), crop_group = "fruit, late",
+drift_percentages_rautmann(c(3, 5, 20, 50), crop_group_RF = "fruit, late",
   formula = "FOCUS")
 #> [1] 13.1414350  7.5123244  1.0359007  0.2118734
 
 # We get a continuum if the waterbody covers the hinge distance
 # (11.4 m for 1 early app to fruit)
 x <- seq(3, 30, by = 0.1)
-d <- drift_percentages_rautmann(x, crop_group = "fruit, early", formula = "FOCUS")
+d <- drift_percentages_rautmann(x, crop_group_RF = "fruit, early", formula = "FOCUS")
 plot(x, d, type = "l",
-  xlab = "Distance of near edge [m]", 
+  xlab = "Distance of near edge [m]",
   ylab = "Mean drift percentage over waterbody width",
   main = "One application to fruit, early")
 abline(v = 11.4, lty = 2)
-- 
cgit v1.2.1