You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def fill(array):
first = first(array,ignore_nodata=true)
last = last(array,ignore_nodata=true)
frontfilled = array_apply(array,if(nodata(x)&& index<middle,first,x)
fully_filled=array_apply(frontfilled, if(nodata(x)&& index>=middle,last,x)
return fully_filled
apply_dimension(dim='t',callback=fill)
The goal is to created a timeseries without nodata, as some methods can not deal with that. Linear interpolation does not extrapolate, so typically can return timeseries with nodata at the start or end.
The text was updated successfully, but these errors were encountered:
Support something like:
The goal is to created a timeseries without nodata, as some methods can not deal with that. Linear interpolation does not extrapolate, so typically can return timeseries with nodata at the start or end.
The text was updated successfully, but these errors were encountered: