c2vsim.readSWHYD | R Documentation |
c2vsim.readSWHYD Reads the stream hydrograph output file
c2vsim.readSWHYD(filename, Nskip = 5, NtimeSteps = 1056, maxChar = 7000)
filename |
is the name of the stream hydrograph file. For the coarse grid this is by default CVSWhyd.out |
Nskip |
is the number of lines to skip before start reading the line with the stream node ids |
NtimeSteps |
is the number of time steps used in the simulation. By default is set to 1056 |
maxChar |
is the maximum number of characters that should read in a single line |
A list with the following fields: Time: The time steps NodeIds: is a vector with the stream node ids SWHyd: is a matrix NtimeSteps x m, where is m = length(NodeIds).
For the coarse grid model we can read the stream hydrograph by using the default values:
SWHYD <- c2vsim.readSWHYD("CVSWhyd.out")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.