Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mask_scl_dilation gives scrambled results #884

Open
EmileSonneveld opened this issue Sep 26, 2024 · 2 comments
Open

mask_scl_dilation gives scrambled results #884

EmileSonneveld opened this issue Sep 26, 2024 · 2 comments
Assignees

Comments

@EmileSonneveld
Copy link
Contributor

EmileSonneveld commented Sep 26, 2024

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
Copy link
Contributor

jdries commented Sep 26, 2024

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants