Description Usage Arguments Details Value See Also Examples
View source: R/read_modelout.R
ReadRtout
reads in WRF-Hydro RTOUT files and outputs a time series of
basin-wide mean water fluxes for water budget.
1 2 |
pathOutdir |
The full pathname to the output directory containing the RTOUT files. |
pathDomfile |
The full pathname to the high-res hydro domain NetCDF file used in the model run (for grabbing the basin mask). |
mskvar |
The variable name in pathDomfile to use for the mask (DEFAULT="basn_msk"). |
basid |
The basin ID to use (DEFAULT=1) |
parallel |
Logical for running in parallel mode (must have a parallel backend installed and registered (e.g., doMC or doParallel) (DEFAULT=FALSE) |
pattern |
The pattern to match for file ingest (DEFAULT=glob2rx('*.RTOUT_DOMAIN*')) |
ReadRtout
reads standard-format WRF-Hydro RTOUT NetCDF files and calculates
basin-wide mean values for each time step for water budget terms.
OUTPUT RTOUT water budget variables:
QSTRMVOLRT: Mean accumulated depth of stream channel inflow (mm)
SFCHEADSUBRT: Mean depth of ponded water (mm)
QBDRYRT: Mean accumulated flow volume routed outside of the domain from the boundary cells (mm)
A dataframe containing a time series of basin-wide mean water budget variables.
Other modelDataReads: CreateBasinMask
,
ReadChrtgrid
, ReadChrtout
,
ReadFrxstPts
, ReadGwOut
,
ReadLdasoutAll
,
ReadLdasoutWb
, ReadRouteLink
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Take an OUTPUT directory for an hourly routing timestep model run of
## Fourmile Creek (Basin ID = 1) and create a new dataframe containing the
## basin-wide mean values for the major water budget components over the
## time series.
## Not run:
library(doMC)
regsiterDoMC(3)
modRtout1h.mod1.fc <-
ReadRtout("../RUN.MOD1/OUTPUT", "../DOMAIN/Fulldom_hires_hydrofile_4mile.nc",
basid=1, parallel=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.