Open-EO / openeo-geopyspark-driver

OpenEO driver for GeoPySpark (Geotrellis)
Apache License 2.0
26 stars 4 forks source link

mask_scl_dilation gives scrambled results #884

Open EmileSonneveld opened 1 month ago

EmileSonneveld commented 1 month ago

Encountered by Wouter D. This process graph will give scrambled results:

connection = openeo.connect("openeo.dataspace.copernicus.eu").authenticate_oidc()
collection = connection.load_collection(
    "SENTINEL2_L2A",
    spatial_extent={"west": 5.0, "south": 51.2, "east": 5.1, "north": 51.3},
    temporal_extent="2021-06",
    bands=["B04", "B08", "SCL"],
    max_cloud_cover=95
)
collection = collection.process("mask_scl_dilation", scl_band_name="SCL", data=collection)
collection = collection.ndvi(red="B04", nir="B08", target_band="NDVI-band").filter_bands("NDVI-band")
collection = collection.reduce_temporal("mean")
ndvi_job = collection.create_job(title="NDVI", out_format="GTiff")
ndvi_job.start_and_wait().get_results().download_file("ndvi-file.nc") # or .tiff

image

jdries commented 1 month ago

FYI, I've seen this before, but the fix here is really to remove this deprecated method everywhere and switch to the new one. So doing a search on doc & sample repo's. Fixing the issue itself is low prio for now.

soxofaan commented 1 month ago

I see this ticket moved to DE-OPENEO, but it is still assigned to me, is that intentional @JeroenVerstraelen ?