Skip to content

Commit

Permalink
Fix linear scale range (#151)
Browse files Browse the repository at this point in the history
* partial fix of sggregate_temporal

* Revert "partial fix of sggregate_temporal"

This reverts commit bfd7a7e.

* adding filter_bbox

* Update filter_bbox

* Updated filter_bbox and _xr_interop

* add missing clip

* add missing clip

* fix style
  • Loading branch information
clausmichele authored Aug 16, 2023
1 parent 9f184e5 commit b1a1196
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openeo_processes_dask/process_implementations/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def arctan2(y, x):


def linear_scale_range(x, inputMin, inputMax, outputMin=0.0, outputMax=1.0):
x = clip(x, inputMin, inputMax)
lsr = ((x - inputMin) / (inputMax - inputMin)) * (outputMax - outputMin) + outputMin
return lsr

Expand Down

0 comments on commit b1a1196

Please sign in to comment.