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

Simplify setting (max) cloud coverage in load_collection #328

Closed
soxofaan opened this issue Sep 20, 2022 · 1 comment
Closed

Simplify setting (max) cloud coverage in load_collection #328

soxofaan opened this issue Sep 20, 2022 · 1 comment
Assignees

Comments

@soxofaan
Copy link
Member

Setting max cloud cover can be quite important when loading a collection (e.g. to avoid loading unusable raw data).
It's currently however quite cryptic to do that with the python client:

cube = connection.load_collection(
    ... , 
    properties={"eo:cloud_cover": lambda v: v == 80}
)

There should be a user friendly shortcut (e.g. a dedicated Connection.load_collection argument to lower the bar to use this, and promote usage.

@soxofaan
Copy link
Member Author

soxofaan commented Oct 4, 2022

a1a35c9 added max_cloud_cover argument to load_collection:

cube = connection.load_collection(
        "S2",
        max_cloud_cover=75,
    )

@soxofaan soxofaan closed this as completed Oct 4, 2022
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