Description Usage Arguments Examples
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.
1 2 3 |
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). |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.