xcube-dev / xcube-sh

An xcube plugin to allow generating data cubes from the Sentinel Hub Cloud API
MIT License
13 stars 10 forks source link

Allow filtering observations #98

Open forman opened 1 year ago

forman commented 1 year ago

A new parameter extra_search_params has been added the CubeConfig as well as to the data store's open_data() method.

The value of extra_search_params is a dictionary that defines additional search parameters when querying the individual observations (time slices) that will form the data cube. Examples for such parameters are the keys "filter", "filter-lang", or "fields". More on this can be found in the Sentinel Hub Catalog API documentation.

Note that extra_search_params will be ignored if time_period is used (i.e., given and not None).

Closes #93.

TonioF commented 1 year ago

My biggest problem here is to validate it. Can you add a test or a notebook?

Can you still do this to show how to use this new parameter?