interp_main | R Documentation |
Main funtion of interpolation, combined with na.approx, linear and hisavg interpolation.
interp_main(
df,
st,
smax = 100,
nmax = 10,
maxgap = 5,
verbose = TRUE,
sinkfile1 = "interp_lm1.log",
sinkfile2 = "interp_lm2.log",
...
)
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 |
## Not run:
data("prcp")
data("st840")
r <- interp_main(prcp, st840, smax = 200)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.