calc_depth_prediction_error: Calculate depth prediction error

Description Usage Arguments Details Examples

Description

Calculates depth prediction error, either absolute or as a fraction of bankfull depth

Usage

1

Arguments

pred

minimum bed elevation z0 predictions

truth

true minimum bed elevation

h

bankfull water surface elevation. For UMESC data, it is the reference WSE. Not needed for absolute error.

type

can be "absolute" or "relative" or "mersel"

Details

Option "mersel" calculates standard error relative to bankfull depth, see Mersel et al. (2013)

Examples

1
2
3
4
5
6
7
8
refWSE <- 470*0.3048 # meters, for pool 21
z0.l.error.abs <- calc_depth_prediction_error(z0.l, z0.true.ra, type = "absolute")
z0.l.error.rel <- calc_depth_prediction_error(z0.l, z0.true.ra, h = refWSE, type = "relative")
load("./Outputs/Final/p21/z0_pred.rda")
z0.true.ra <- readRDS("./Outputs/Final/p21/z0_true_ra.rds")
truth <- z0.true.ra
pred <- z0.l
z0.L.SE <- calc_depth_prediction_error(z0.l, z0.true.ra, h = refWSE, type = "mersel")

jschap1/WSEw documentation built on May 12, 2019, 10:50 a.m.