ReadLakeout: Read LAKEOUT files from gridded lake routing option and...

Description Usage Arguments Examples

Description

Read LAKEOUT files from gridded lake routing option and create data frame/table for selected lakes. ReadLakeout reads in the WRF-Hydro LAKEOUT files from gridded lake routing: Community Release version.

Usage

1
2
3
ReadLakeout(pathOutdir = NULL, lakeidList = NULL, parallel = FALSE,
  useDatatable = TRUE, pattern = glob2rx("*.LAKEOUT_DOMAIN*"),
  idvar = NULL)

Arguments

pathOutdir

The full pathname to the WRF-Hydro lake output files.

lakeidList

The list of lakeids to put in the output data table. These lakeids correspond to the lakes in the LAKEGRID, LAKEPARM and lakes.shp files that are either read in from ComIDs or created in the routing files from the ArcGIS pre-processing tools.

parallel

Logical for running in parallel mode (must have a parallel backend installed and registered (e.g., doMC or doParallel); requires doMC and foreach libraries (DEFAULT=FALSE)

useDatatable

Logical for utilizing the data.table package and outputting in data.table format (DEFAULT=TRUE)

pattern

Pattern to match in the model output (e.g. *LAKEOUT_DOMAIN1*)

idvar

Tracker of variable that identifies the lake ID (lakeidList is a subset of this variable).

Examples

1
2
3
4
5
6
7
8
9
# This function loops through LAKEOUT files in the pathOutdir and creates a data frame or
# data table to store inflow, outflow, elevation and the station_id (lakeid).  The lakeids
# correspond to the lakes in the LAKEGRID, LAKEPARM and lakes.shp files that are
# created in the routing files from the ArcGIS pre-processing tools.
## Not run: 
ReadLakeout('~/wrfHydroTestCases/FRN.REACH/OUTPUT',
     lakeidList=c("1", "5"),idvar="feature_id")

## End(Not run)

NCAR/rwrfhydro documentation built on Feb. 28, 2021, 12:47 p.m.