Description Usage Arguments Value Author(s) See Also Examples
View source: R/interpolate.river.mom.R
Interpolates river inflow data in the time dimensions. Currently, only interpolation from monthly to values is implemented. Additionally, only the interpolation methods 'step' is implemented.
1 2 | interpolate.river.mom(inData, from = inData$tstep, to = "none",
method = "step")
|
inData |
list containing a data.frame (in$data) with river inflow data, a character array (in$units) with corresponding units, and a character (in$format). |
from |
character: current data averaging interval; does not need to be set if in$tstep is set properly; if not, it can be manually set to e.g. 'annual', 'monthly', or 'daily' |
to |
character, target time interval; e.g. 'annual', 'monthly', or 'daily' |
method |
character, interpolation method |
list of newly averaged data; same structure as input data
list containing a data.frame (out$data), a character array (out$units), and two character variables (out$format and out$tstep). The first contains the actual data formatted as a data.frame. The second contains the units to the corresponding columns of the data.frame. The third contains the source/format of data (here: 'mom'; can also be 'swat'). The fourth contains information on the time step of the data (resp.: on which time interval they are averaged).
Daniel Neumann, daniel.neumann@io-warnemuende.de
read.river.mom, write.river.netCDF, write.river.append2Inflow, write.river.newInflow, mean.river.mom
1 2 3 4 5 6 | # read a file:
test.mom.monthly <- read.river.mom('files/GER_Dan_Str_Warnow.dat')
# interpolate from monthly to daily
test.mom.daily <- interpolate.river.mom(test.mom.monthly, to = 'daily', method = 'step')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.