Calculates and writes capped slopes, L- and RUSLE S-factors (equations for summer conditions and slopes \(\geq\) 15 ft) to disk. Weighted flow accumulations less than one are set to one for the calculation of the L-factors.

# S4 method for RPhosFate
erosionPrerequisites(x)

Arguments

x

An S4 RPhosFate river catchment object.

Value

An S4 RPhosFate river catchment object and side effects in the form of raster files.

References

Renard, K.G., Foster, G.R., Weesies, G.A., McCool, D.K., Yoder, D.C., 1997. Predicting soil erosion by water: a guide to conservation planning with the Revised Universal Soil Loss Equation (RUSLE), Agriculture Handbook. U.S. Government Printing Office, Washington, DC.

Examples

# \donttest{
# temporary demonstration project copy
cv_dir <- demoProject()
#> Warning: A folder called "demoProject" already exists and is left as is.
# load temporary demonstration project
x <- RPhosFate(
  cv_dir = cv_dir,
  ls_ini = TRUE
)

x <- erosionPrerequisites(x)# }