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.

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_env <- system.file("extdata", "071000090603_2.env", 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_env(fpath_env)
read_wb(fpath_wb)
read_yld(fpath_yld)

Acknowledgements

The following individuals have contributed to this project:



jarad/WEPPR documentation built on May 6, 2022, 2:04 p.m.