From 45d66668794591f9d8a2a3d64e4e07bc70f342d8 Mon Sep 17 00:00:00 2001 From: jdegerickx Date: Thu, 7 Nov 2024 11:54:19 +0100 Subject: [PATCH] tile size must now be multiple of 16 in openeo --- src/worldcereal/openeo/mapping.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/worldcereal/openeo/mapping.py b/src/worldcereal/openeo/mapping.py index d91f0014..7aef62d9 100644 --- a/src/worldcereal/openeo/mapping.py +++ b/src/worldcereal/openeo/mapping.py @@ -51,8 +51,8 @@ def _cropland_map( cube=inputs, parameters=cropland_parameters.feature_parameters.model_dump(), size=[ - {"dimension": "x", "unit": "px", "value": 100}, - {"dimension": "y", "unit": "px", "value": 100}, + {"dimension": "x", "unit": "px", "value": 128}, + {"dimension": "y", "unit": "px", "value": 128}, ], overlap=[ {"dimension": "x", "unit": "px", "value": 0}, @@ -74,8 +74,8 @@ def _cropland_map( cube=features, parameters=parameters, size=[ - {"dimension": "x", "unit": "px", "value": 100}, - {"dimension": "y", "unit": "px", "value": 100}, + {"dimension": "x", "unit": "px", "value": 128}, + {"dimension": "y", "unit": "px", "value": 128}, {"dimension": "t", "value": "P1D"}, ], overlap=[ @@ -136,8 +136,8 @@ def _croptype_map( cube=inputs, parameters=croptype_parameters.feature_parameters.model_dump(), size=[ - {"dimension": "x", "unit": "px", "value": 100}, - {"dimension": "y", "unit": "px", "value": 100}, + {"dimension": "x", "unit": "px", "value": 128}, + {"dimension": "y", "unit": "px", "value": 128}, ], overlap=[ {"dimension": "x", "unit": "px", "value": 0}, @@ -160,8 +160,8 @@ def _croptype_map( cube=features, parameters=parameters, size=[ - {"dimension": "x", "unit": "px", "value": 100}, - {"dimension": "y", "unit": "px", "value": 100}, + {"dimension": "x", "unit": "px", "value": 128}, + {"dimension": "y", "unit": "px", "value": 128}, {"dimension": "t", "value": "P1D"}, ], overlap=[ @@ -230,8 +230,8 @@ def _postprocess( cube=classes, parameters=parameters, size=[ - {"dimension": "x", "unit": "px", "value": 100}, - {"dimension": "y", "unit": "px", "value": 100}, + {"dimension": "x", "unit": "px", "value": 128}, + {"dimension": "y", "unit": "px", "value": 128}, ], overlap=[ {"dimension": "x", "unit": "px", "value": 0},