interpolate.river.mom: Interpolates river inflow data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/interpolate.river.mom.R

Description

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.

Usage

1
2
interpolate.river.mom(inData, from = inData$tstep, to = "none",
  method = "step")

Arguments

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

Value

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).

Author(s)

Daniel Neumann, daniel.neumann@io-warnemuende.de

See Also

read.river.mom, write.river.netCDF, write.river.append2Inflow, write.river.newInflow, mean.river.mom

Examples

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')
  

neumannd/riverdata documentation built on March 4, 2020, 4:22 a.m.