interp_main: interp_main

View source: R/interp_main.R

interp_mainR Documentation

interp_main

Description

Main funtion of interpolation, combined with na.approx, linear and hisavg interpolation.

Usage

interp_main(
  df,
  st,
  smax = 100,
  nmax = 10,
  maxgap = 5,
  verbose = TRUE,
  sinkfile1 = "interp_lm1.log",
  sinkfile2 = "interp_lm2.log",
  ...
)

Arguments

df

data.frame, with dimension of [n_date, 1+n_station], and the first column is date.

st

data.frame, with column at least of 'site', 'lat', 'lon' (degree).

smax

maximum searching radius (km) of linear interpolation, default is 100km.

nmax

maximum number stations used in linear interpolation, default is 10.

maxgap

maximum gap used in interp_approx interpolation

...

ignored

Examples

## Not run: 
data("prcp")
data("st840")
r <- interp_main(prcp, st840, smax = 200)

## End(Not run)

kongdd/MissInfo documentation built on Jan. 14, 2024, 2:22 a.m.