read_slp: Read a WEPP slope file

View source: R/read_slp.R

read_slpR Documentation

Read a WEPP slope file

Description

Reads a Water Erosion Prediction Project (WEPP) slope (*.slp) file. This file contains slope information assumed to be in nondimensional distances.

Usage

read_slp(file)

Arguments

file

A path to the file.

Value

A Slope object with two classes - data.frame and Slope The data frame class has the attributes version control number, aspect of the profile (degrees from North) (azm), and representative profile width(m) fwidth, and the following columns:

n

overland flow element (OFE) #

p

proportion of the total distance for this OFE

slope

vertical distance lost (m) per meter traveled

distance

proportion (p) times total distance (m)

Examples

fpath_slp <- system.file("extdata", "071000090603_2.slp", package="WEPPR")
slp <- read_slp(fpath_slp)


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