getLayer,RPhosFate-method {RPhosFate} | R Documentation |
Get layer
Description
Obtains a project raster layer for further analysis.
Usage
## S4 method for signature 'RPhosFate'
getLayer(x, i, j = NULL)
## S4 method for signature 'RPhosFate,ANY,ANY,ANY'
x[i, j]
Arguments
x |
An S4 |
i |
A character string specifying a layer name. Substance related layers
whose names start with xx are treated differently. They have to be
queried by their name (not filename), for example, |
j |
A character string specifying a substance if applicable. |
Value
A raster::RasterLayer
object.
Input subdirectory
This directory holds all possible user input raster data (flow obstacles like roads must be considered during generation of the flow accumulation layers and also be cut out from them in order to be properly respected):
-
acc: Flow accumulations required for
transportCalcOrder
. -
acc_wtd: Weighted flow accumulations required for everything (can be equal to acc).
-
CFa: (R)USLE C-factors required for
erosion
. -
cha: Channel cells required for everything (
1
: channel cell,NA
: no channel cell). -
clc: Clay contents of top soils in % required for substance
emission
s. -
dem: Digital elevation model in m a.s.l. (optional).
-
dir: D8 flow directions required for
transportPrerequisites
and substancetransport
. -
fid: Field IDs (optional).
-
KFa: (R)USLE K-factors required for
erosion
. -
lue: Land use classes (optional).
-
man: Manning's roughness coefficients required for substance
transport
. -
xxc: Substance contents of top soils in mg/kg required for substance
emission
s, for example, ppc for PP top soil contents. -
rds: Road cells required for
transportPrerequisites
(0
: road cell without subsurface drainage,1
: road cell with subsurface drainage,NA
: no road cell). -
RFa: (R)USLE R-factors required for
erosion
. -
slp: Slopes in % required for everything.
-
wsh: Watershed (optional).
Intermediate subdirectory
This directory holds intermediate calculations:
-
inl: Cells representing inlets at roads (storm drains).
-
LFa: L-factors.
-
rhy: Hydraulic radii in m.
-
rip: Cells representing the riparian zones within channel cells.
-
SFa: RUSLE S-factors.
-
slp_cap: Capped slopes in %.
Result subdirectory
This directory holds the model results:
-
ero: Erosion in t/cell/yr.
-
xxe: Substance emissions in kg/cell/yr, for example, ppe for PP emissions.
-
xxr: Substance retentions in t/cell/yr (SS) or kg/cell/yr, for example, ppr for PP retentions.
-
xxt: Substance transports in t/cell/yr (SS) or kg/cell/yr, for example, ppt for PP transports.
-
xxt_cld: Substance cell loads in t/cell/yr (SS) or kg/cell/yr, for example, ppt_cld for PP cell loads.
-
xxt_ctf: Substance cell transfers in t/cell/yr (SS) or kg/cell/yr, for example, ppt_ctf for PP transfers.
-
xxt_inp: Substance inputs into surface waters in t/cell/yr (SS) or kg/cell/yr, for example, ppt_inp for PP inputs into surface waters.
-
xxt_out: Substance outlet loads of subsurface drainages in t/cell/yr (SS) or kg/cell/yr, for example, ppt_out for PP outlet loads.
Examples
# temporary demonstration project copy
cv_dir <- demoProject()
# load temporary demonstration project
x <- RPhosFate(
cv_dir = cv_dir,
ls_ini = TRUE
)
# presupposed method call
x <- firstRun(x, "SS")
getLayer(x, "dir")
getLayer(x, "xxt", "SS")
getLayer(x, "xxe", "PP")