Skip to contents

This function calculates the Water Yield Ratio (WYR) based on various components of a simulation, including precipitation, surface runoff, lateral flow, and others. It aggregates these components and computes the ratio of the sum of water yields to the precipitation.

Usage

calculate_wyr(sim)

Arguments

sim

A SWATrunR nested list containing simulation data. It should have a named element 'simulation' which itself contains named elements: 'precip', 'surq_cha', 'surq_res', 'latq_cha', 'latq_res', 'qtile', and 'flo'.

Value

A numeric value representing the Water Yield Ratio (WYR).

Examples

if (FALSE) {
# Calculate WYR
wyr <- calculate_wyr(sim)
}