WEPPR an R package to read and write WEPP input-output files and run WEPP using the statistical software R.
The water erosion prediction project (WEPP) is a physically-based soil erosion computer model supported by the United States Department of Agriculture (USDA).
This package should allow those who are familiar with R a more convenient interface for running a large set of WEPP runs.
For running WEPP with R, check out DEPR.
Also check out WEPPemulator, an R package that has functionality to construct a statistical emulator for WEPP.
# install.packages("devtools")
devtools::install_github("jarad/WEPPR")
Development uses the WEPP documentation extensively. In particular, the user summary document provides a succinct summary.
read_cli()
: Climate Input Fileread_slp()
: Slope Input Fileread_man()
: Plant/Management Input Fileread_run()
: WEPP runread_sol()
: Soil Input File
read_wb()
: Water balanceread_yld()
: Yield
library(WEPPR)
## get file path to data files
fpath_cli <- system.file("extdata", "092.63x040.90.cli", package="WEPPR")
fpath_slp <- system.file("extdata", "071000090603_2.slp", package="WEPPR")
fpath_man <- system.file("extdata", "071000090603_2.man", package="WEPPR")
fpath_run <- system.file("extdata", "071000090603_2.run", package="WEPPR")
fpath_sol <- system.file("extdata", "071000090603_2.sol", package="WEPPR")
fpath_wb <- system.file("extdata", "071000090603_2.wb", package="WEPPR")
fpath_yld <- system.file("extdata", "071000090603_2.yld", package="WEPPR")
## read input files
read_cli(fpath_cli)
read_slp(fpath_slp)
read_man(fpath_man)
read_run(fpath_run)
read_sol(fpath_sol)
## read output files
read_wb(fpath_wb)
read_yld(fpath_yld)
The following individuals have contributed to this project:
- Jarad Niemi
- Gulzina Kuttubekova
- Aditya Ranade
- Benedict Neo