File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ using the openEO Python Client library:
29
29
30
30
# Build a UDF object from an inline string with Python source code.
31
31
udf = openeo.UDF(
32
- """
33
- import xarray
32
+ """
33
+ import xarray
34
34
35
- def apply_datacube(cube: xarray.DataArray, context: dict) -> xarray.DataArray:
36
- cube.values = 0.0001 * cube.values
37
- return cube
38
- """
35
+ def apply_datacube(cube: xarray.DataArray, context: dict) -> xarray.DataArray:
36
+ cube.values = 0.0001 * cube.values
37
+ return cube
38
+ """
39
39
)
40
40
41
41
# Or load the UDF code from a separate file.
@@ -252,13 +252,13 @@ The UDF-specific part is highlighted.
252
252
253
253
# Create a UDF object from inline source code.
254
254
udf = openeo.UDF(
255
- """
256
- import xarray
255
+ """
256
+ import xarray
257
257
258
- def apply_datacube(cube: xarray.DataArray, context: dict) -> xarray.DataArray:
259
- cube.values = 0.0001 * cube.values
260
- return cube
261
- """
258
+ def apply_datacube(cube: xarray.DataArray, context: dict) -> xarray.DataArray:
259
+ cube.values = 0.0001 * cube.values
260
+ return cube
261
+ """
262
262
)
263
263
264
264
# Pass UDF object as child process to `apply`.
You can’t perform that action at this time.
0 commit comments