Version: 0.49.0
Problem
The following script will fail
import openeo
from openeo.api.process import Parameter
c = openeo.connect("openeo.dataspace.copernicus.eu").authenticate_oidc()
s2 = c.load_collection("SENTINEL2_L2A", spatial_extent={"west": 16.0, "south": 48.0, "east": 17.0, "north": 49.0}, temporal_extent=["2021-01-01", "2021-12-31"])
res_param = Parameter.number(
name='resolution'
)
s2 = s2.resample_spatial(
resolution=res_param
)
Because normalize_resample_resolution doesn't allow for an openeo.api.process.Parameter:
|
def normalize_resample_resolution( |
Solution
Support openeo.api.process.Parameter in openeo.utils.normalize.normalize_resample_resolution() by returning something like (None, None) in that case.
CC: @Pratichhya
Version: 0.49.0
Problem
The following script will fail
Because
normalize_resample_resolutiondoesn't allow for anopeneo.api.process.Parameter:openeo-python-client/openeo/utils/normalize.py
Line 4 in 63ac783
Solution
Support
openeo.api.process.Parameterinopeneo.utils.normalize.normalize_resample_resolution()by returning something like(None, None)in that case.CC: @Pratichhya