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

resample_spatial SCL #1001

Open
HansVRP opened this issue Jan 16, 2025 · 2 comments
Open

resample_spatial SCL #1001

HansVRP opened this issue Jan 16, 2025 · 2 comments

Comments

@HansVRP
Copy link

HansVRP commented Jan 16, 2025

Resample spatial on discrete layer creates incorrect result:

connection = openeo.connect("openeo.dataspace.copernicus.eu")
connection.authenticate_oidc()
cube = connection.load_collection(
    "SENTINEL2_L2A",
    spatial_extent={
        "west": 459960,
        "south": 6290220,
        "east": 509760,
        "north": 6400020,
        "crs": "EPSG:32605",
    },
    temporal_extent="2020-05-29",
    bands=["SCL"],
    max_cloud_cover=90,
)
cube.resample_spatial(resolution=60, method="near").download("scl_resampled.tif")
cube.download("scl_native.tif")

SCL should only contain class 0-11, nevertheless, higher values are created

Image

@filipsch
Copy link

The included image seems to swap the two? The one on the right hand side seems to have the values above 11?

@HansVRP
Copy link
Author

HansVRP commented Jan 17, 2025

good point, I'll double check the image.

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

2 participants