README.md

WEPPR

Overview

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.

Installation

# install.packages("devtools")
devtools::install_github("jarad/WEPPR")

Development

Development uses the WEPP documentation extensively. In particular, the user summary document provides a succinct summary.

Usage

Reading Input Files

Reading Output files

Code

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)

Acknowledgements

The following individuals have contributed to this project:



jarad/WEPPR documentation built on Nov. 3, 2023, 5:42 a.m.