Skip to content

Commit ab9c070

Browse files
add file
1 parent 63883f7 commit ab9c070

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from openeo.udf import XarrayDataCube
2+
3+
4+
def apply_datacube(cube: XarrayDataCube, context: dict) -> XarrayDataCube:
5+
factor = context["factor"]
6+
array = cube.get_array() * factor
7+
return XarrayDataCube(array)

0 commit comments

Comments
 (0)