Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for padding nodata in timeseries #837

Open
jdries opened this issue Aug 19, 2024 · 1 comment
Open

support for padding nodata in timeseries #837

jdries opened this issue Aug 19, 2024 · 1 comment

Comments

@jdries
Copy link
Contributor

jdries commented Aug 19, 2024

Support something like:

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.

@soxofaan
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants