Description Usage Arguments Details Value See Also Examples
View source: R/read_modelout.R
ReadLdasoutWb
reads in WRF-Hydro (w/NoahMP) LDASOUT files and outputs a
time series of basin-wide mean variables for water budget calculations.
1 2 3 | ReadLdasoutWb(pathOutdir, pathDomfile, mskvar = "basn_msk", basid = 1,
aggfact = 10, pattern = glob2rx("*LDASOUT_DOMAIN*"),
parallel = FALSE)
|
pathOutdir |
The full pathname to the output directory containing the LDASOUT 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) |
aggfact |
The high-res (hydro) to low-res (LSM) aggregation factor (e.g., for a 100-m routing grid and a 1-km LSM grid, aggfact = 10) |
pattern |
Pattern to match in the model output (DEFAULT=glob2rx('*LDASOUT_DOMAIN*')) |
parallel |
Logical for running in parallel mode (must have a parallel backend installed and registered (e.g., doMC or doParallel) (DEFAULT=FALSE) |
ReadLdasoutWb
reads standard-format WRF-Hydro (w/NoahMP) LDASOUT NetCDF
files and calculates basin-wide mean values for each time step suitable for running
basin water budget calculations.
OUTPUT NoahMP LDASOUT water budget variables:
ACCECAN: Mean accumulated canopy evaporation (mm)
ACCEDIR: Mean accumulated surface evaporation (mm)
ACCETRAN: Mean accumulated transpiration (mm)
ACCPRCP: Mean accumulated precipitation (mm)
CANICE: Mean canopy ice storage (mm)
CANLIQ: Mean canopy liquid water storage (mm)
SFCRNOFF: Mean surface runoff from LSM (meaningful for an LSM-only run) (mm)
SNEQV: Mean snowpack snow water equivalent (mm)
UGDRNOFF: Mean subsurface runoff from LSM
(meaningful
for an LSM-only run) (mm)
SOIL_M1: Mean soil moisture storage in soil layer 1 (top) (mm)
SOIL_M2: Mean soil moisture storage in soil layer 2 (mm)
SOIL_M3: Mean soil moisture storage in soil layer 3 (mm)
SOIL_M4: Mean soil moisture storage in soil layer 4 (bottom) (mm)
A dataframe containing a time series of basin-wide mean water budget variables.
Other modelDataReads: CreateBasinMask
,
ReadChrtgrid
, ReadChrtout
,
ReadFrxstPts
, ReadGwOut
,
ReadLdasoutAll
,
ReadRouteLink
, ReadRtout
1 2 3 4 5 6 7 8 9 10 11 12 | ## Take an OUTPUT directory for a daily LSM timestep model run of Fourmile Creek 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)
registerDoMC(3)
modLdasoutWb1d.mod1.fc <-
ReadLdasoutWb("../RUN.MOD1/OUTPUT", "../DOMAIN/Fulldom_hires_hydrofile_4mile.nc",
parallel=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.