CalcNoahmpWatBudg: Calculate water balance from WRF-Hydro (w/NoahMP) output

Description Usage Arguments Details Value See Also Examples

View source: R/calculate_stats.R

Description

CalcNoahmpWatBudg calculates water budget components from WRF-Hydro (w/NoahMP) model output.

Usage

1
2
CalcNoahmpWatBudg(ldasoutDf, rtoutDf = NULL, gwoutDf = NULL,
  sfcrt = FALSE, soildeps = c(100, 300, 600, 1000), basarea = NULL)

Arguments

ldasoutDf

The LDASOUT dataframe (required)

rtoutDf

The RTOUT dataframe, if overland or subsurface routing was turned on (default=NULL)

gwoutDf

The GW_OUT dataframe, if groundwater model was turned on (default=NULL)

sfcrt

A flag whether surface overland flow routing was active. All other routing options are determined based on the input dataframes, as needed (e.g., if gwoutDf is provided, it is assumed that the groundwater model was active). (default=FALSE)

soildeps

A list of soil layer depths in mm (top to bottom, default=c(100, 300, 600, 1000))

basarea

The basin area in square km (necessary only if gwoutDf is provided)

Details

CalcNoahmpWatBudg reads dataframes derived from WRF-Hydro output (i.e., using GetMultiNcdf) and calculates water budget partitioning (e.g., surface runoff, evaporation, groundwater). Assumes WRF-Hydro output dataframes have already been masked to the desired basin. See GetMultiNcdf documentation for examples of how to do this. NOTE: Currently only works for model runs using NoahMP as the LSM.

REQUIRED variables (these terms must be in your input dataframes):

OUTPUT water budget terms (may vary depending on model configuration):

Value

A new dataframe containing the water budget components in mm.

See Also

Other modelEvaluation: CalcModPerfMulti, CalcModPerf, CalcNoahmpFluxes, CalcStatCategorical, CalcStatCont

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Take a NoahMP LDASOUT dataframe for a model run of Fourmile Creek with no routing
## options turned on and return a water budget summary.

## Not run: 
wb.nort.fc <- CalcNoahmpWatBudg(modLDASOUT1d.nort.fc)
wb.nort.fc
##
## Take NoahMP LDASOUT, HYDRO model RTOUT, and GW_outflow dataframes for a model
## run of Fourmile Creek with subsurface, overland, and groundwater routing options
## turned on and return a water budget summary. The default soil depths were used
## and the basin is 63.1 km2. NOTE: We MUST specify with the sfcrt flag that overland
## flow routing was turned on. Otherwise the LSM surface runoff term is used.

wb.allrt.fc <- CalcNoahmpWatBudg(modLDASOUT1d.allrt.fc, 
                                 modRTOUT1h.allrt.fc, 
                                 modGWOUT1h.allrt.fc, 
                                 sfcrt=TRUE, basarea=63.1)
wb.allrt.fc

## End(Not run)

mccreigh/rwrfhydro documentation built on May 12, 2018, 3:08 a.m.