streaminterp: Interpolation of streaming data

View source: R/streaminginterp.R

streaminterpR Documentation

Interpolation of streaming data

Description

Interpolation of streaming data

Usage

streaminterp(dt, paramlist, yearmon, trim_rstack = TRUE,
  trim_negative = TRUE, costrasname = "barrier60large2e2.tif", tname = NA,
  vname = NA, missprop = 0.16, fdir = getOption("fdir"))

Arguments

dt

input data frame

paramlist

list of parameters (dt column names) to interpolate

yearmon

a file path used to extract basename

trim_rstack

logical trim the raster stack by the convex hull of training points?

trim_negative

logical set negative values to zero?

costrasname

character file.path to cost raster

tname

file.path location to save training dataset

vname

file.path location to save validation dataset

missprop

numeric proportion of missing data allowed. Variables with a greater proportion of missing data will be dropped.

fdir

character file path to local data directory

Examples

## Not run: 
dt <- streamget(yearmon = 201513, qa = TRUE)
streaminterp(dt, paramlist = c("sal"), yearmon = 201513)

## End(Not run)

jsta/DataflowR documentation built on Sept. 27, 2022, 11:13 p.m.