Open-EO / openeo-js-client

JavaScript and TypeScript client for the openEO API.
https://open-eo.github.io/openeo-js-client/latest/
Apache License 2.0
15 stars 6 forks source link

builder.load_collection by specific UUID and/or Product Name and cloud cover % #59

Open rifatSDAS opened 1 year ago

rifatSDAS commented 1 year ago

Hi,

Is there any possible way to call specific data, e.g., Sentinel 2 L2A, with UUID or Product Title and max cloud cover %?

m-mohr commented 1 year ago

Something like this should work for e.g. cloud cover < 25:

let cc = function(value) {
    return this.lt(value, 25)
}
builder.load_collection("S2", ..., ..., [...], {"eo:cloud_cover", cc});

Untested though. We should probably add some documentation around this.