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

Add conditionals between two data cubes #27

Open
danlooo opened this issue Jan 16, 2024 · 0 comments
Open

Add conditionals between two data cubes #27

danlooo opened this issue Jan 16, 2024 · 0 comments

Comments

@danlooo
Copy link
Collaborator

danlooo commented Jan 16, 2024

Allow to create a mask by comparing elements between two data cubes having the same dimensions:

cube["B01"] .> cube["B02"]

A simple merge_cube with overlap_resolver of process greater than (gt) does not work, because it is not supported e.g. by the backend https://openeocloud.vito.be/openeo/1.0.0

The python client adds the gt comparison to the process graph of reduce_dimension, circumventing merge_cube, because both bands originate from the same collection.

In addition, how to combine multiple conditionals e.g.

@. cube["B01"] > 1 && cube["B02"]  > 2

Need to implement &&, ||, xor, nor

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

1 participant