Open-EO / openeo-processes

Interoperable processes for openEO's big Earth observation cloud processing.
https://processes.openeo.org
Apache License 2.0
49 stars 14 forks source link

array_interpolate_linear: toggle to also extrapolate leading/trailing no-data #510

Closed soxofaan closed 3 weeks ago

soxofaan commented 1 month ago

Proposed Process ID: array_interpolate_linear Proposed Parameter Name: extrapolate (boolean) Optional: yes, default: false

Context

Users of array_interpolate_linear often also want to extrapolate leading/trailing no-data values

Data Type

boolean: just a toggle to enable extrapolation

m-mohr commented 3 weeks ago

Sounds good, PRs are welcome.

soxofaan commented 3 weeks ago

FYI: we discussed this a bit more internally and it turns out that naive extrapolation is not that useful in practice. Users seem more interested in some kind of back-/front-fill approach where first/last value (or even an aggregation of multiple values) is used to fill in the leading/trailing no-data places. But I think this deserves it's own process instead of massively complicating array_interpolate_linear which is quite settled already.

So maybe it's best to close this current ticket for now