sidfex.remaptime.obs2fcst | R Documentation |
Remap SIDFEx observations temporally to forecast times, with linear or nearest-neighbour interpolation.
sidfex.remaptime.obs2fcst(obs=NULL,fcst,method="linear",extrapolate=FALSE,return.remapinfo=FALSE,data.path=NULL,verbose=TRUE)
obs |
a list with SIDFEx observations as returned by |
fcst |
a list with SIDFEx forecasts as returned by |
method |
a character specifying which method to use for interpolation (and extrapolation). Valid methods are 'linear' (default) and 'nearestneighbour'. |
extrapolate |
a logical value specifying whether or not to extrapolate observations to times outside of the observational time range. Default is |
return.remapinfo |
a logical value specifying whether or not to include information on the time remapping (indices and weights of respective earlier and later neighbour points, plus the vector |
data.path |
|
verbose |
a logical value specifying whether to produce warnings, in particular when new time axes reach outside original time axes. Default is |
A list with two entries, the first of which named 'remaptime.obs2fcst' returns the arguments provided for 'method' and 'extrapolate'. The second entry named 'res.list' is a list with one entry for each forecast provided in 'fcst$res.list', with observed coordinates and, if provided, values (BP, Ts, TA, ...) interpolated to forecast times.
This function is used to evaluate SIDFEx forecasts, e.g., in sidfex.plot.speedangle
.
Would be good to add parameters interpolate.maxdist
and extrapolate.maxdist
to determine how far (in time) interpolation and extrapolation are done, so that, if the time difference is larger, the resulting data points will be NA.
Helge Goessling
sidfex.read.fcst
, sidfex.read.obs
, sidfex.plot.speedangle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.