RAnEnExtra::approxLeadTimes interpolate forecasts across the lead time dimension.

approxLeadTimes(
  forecasts,
  flt_dimension,
  old_flts,
  new_flts,
  method = "linear",
  parallel = FALSE
)

Arguments

forecasts

A 4-dimensional array

flt_dimension

Which dimension is the lead time dimension.

old_flts

Original forecast lead times in seconds

new_flts

New forecast lead times in seconds

method

The method argument passed to approx.

parallel

Whether to use future_apply for parallelization