From b3c7e481a82b2956e5e1e4a6c1e08ef86652e1b0 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Mon, 30 Oct 2023 17:29:02 +0100 Subject: [PATCH] `array_interpolate_linear`: Apply interpolation also on NaN values. --- CHANGELOG.md | 1 + array_interpolate_linear.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87dbf987..2dc1e229 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/array_interpolate_linear.json b/array_interpolate_linear.json index 021522b0..e290652b 100644 --- a/array_interpolate_linear.json +++ b/array_interpolate_linear.json @@ -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", @@ -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": { @@ -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": {