
Fill nodata gaps along the time axis.
fill_gaps.RdTemporal gap-filling (the verbs xarray spells ffill/bfill/
interpolate_na), implemented as scan_over() bodies:
"ffill"carries the last valid value forward;"bfill"carries the next valid value backward;"linear"interpolates between the nearest valid neighbours (index-weighted, i.e. by slice position, not calendar spacing), falling back to ffill/bfill at the ends.
Usage
fill_gaps(x, method = c("ffill", "bfill", "linear"), over = "t")