Although I'm aware of several workarounds available to handle the extrapolation warnings raised by the interpolation that takes place in some built-in functions (e.g., ContourPlot
), I find the "ExtrapolationHandler"
option cannot be used directly inside the ResamplingMethod
of TimeSeriesResample
.
For instance,
TimeSeriesResample[TimeSeries[Table[{i, RandomReal[]}, {i,300}]], {Range[301]}]
will raise the following warning:
InterpolatingFunction::dmval: Input value {301} lies outside the range of data in the interpolating function. Extrapolation will be used.
As such, my question is:
what is an elegant way of handling extrapolation raised by TimeSeriesResample
? i.e., detect the range outliers and take action on them.
I want something like "ExtrapolationHandler"
in Interpolation
.