We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63883f7 commit ab9c070Copy full SHA for ab9c070
tests/udf/udf_code/multiply_factor.py
@@ -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