Skip to content

Commit

Permalink
array_interpolate_linear: Apply interpolation also on NaN values.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Oct 30, 2023
1 parent d8cf96a commit b3c7e48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- `array_interpolate_linear`: Apply interpolation also on NaN values.
- `clip`: Throw an exception if min > max [#472](https://github.com/Open-EO/openeo-processes/issues/472)

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions array_interpolate_linear.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "array_interpolate_linear",
"summary": "One-dimensional linear interpolation for arrays",
"description": "Performs a linear interpolation for each of the no-data values (`null`) in the array given, except for leading and trailing no-data values.\n\nThe linear interpolants are defined by the array indices or labels (x) and the values in the array (y).",
"description": "Performs a linear interpolation for each of the NaN and no-data values (`null`) in the array given, except for leading and trailing NaN and no-data values.\n\nThe linear interpolants are defined by the array indices or labels (x axis) and the values in the array (y axis).",
"categories": [
"arrays",
"math",
Expand All @@ -10,7 +10,7 @@
"parameters": [
{
"name": "data",
"description": "An array of numbers and no-data values.\n\nIf the given array is a labeled array, the labels must have a natural/inherent label order and the process expects the labels to be sorted accordingly. This is the default behavior in openEO for spatial and temporal dimensions.",
"description": "An array of numbers (including NaN and ±infinity) and no-data values.\n\nIf the given array is a labeled array, the labels must have a natural/inherent label order and the process expects the labels to be sorted accordingly. This is the default behavior in openEO for spatial and temporal dimensions.",
"schema": {
"type": "array",
"items": {
Expand All @@ -23,7 +23,7 @@
}
],
"returns": {
"description": "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.",
"description": "An array with NaN and 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.",
"schema": {
"type": "array",
"items": {
Expand Down

0 comments on commit b3c7e48

Please sign in to comment.