Skip to content

Commit

Permalink
tile size must now be multiple of 16 in openeo
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegerickx committed Nov 7, 2024
1 parent b07674f commit 45d6666
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/worldcereal/openeo/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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=[
Expand Down Expand Up @@ -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},
Expand All @@ -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=[
Expand Down Expand Up @@ -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},
Expand Down

0 comments on commit 45d6666

Please sign in to comment.