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
Return Value
An array with no-data values being replaced with interpolated values. If not at least 2 numerical values are available in the array, the array stays the same.
Data type: number, null
The problem is that it's not really clear when a null should be returned.
E.g. it doesn't say if the null should be propagated if data itself is null.
For an empty array I would assume that an empty array should be returned ("If not at least 2 numerical values are available in the array, the array stays the same.")
Proposed solution:
Add more info to the documentation / change the documentation.
Additional context:
/
The text was updated successfully, but these errors were encountered:
Good catch. Actually, the return value is completely wrong. It should be array<number|null> instead and then I think it should be clearer what happens, right? See the commit above for the fix.
For an empty array I would assume that an empty array should be returned
Correct. That's captured by "If not at least 2 numerical values are available in the array, the array stays the same."
All inputs for data that are non-array should result in an error.
Process ID: array_interpolate_linear
Describe the issue:
The documentation (https://docs.openeo.cloud/processes/?#array_interpolate_linear) says that the return value for this process can be array or
null
.The problem is that it's not really clear when a
null
should be returned.E.g. it doesn't say if the
null
should be propagated ifdata
itself isnull
.For an empty array I would assume that an empty array should be returned ("If not at least 2 numerical values are available in the array, the array stays the same.")
Proposed solution:
Add more info to the documentation / change the documentation.
Additional context:
/
The text was updated successfully, but these errors were encountered: