rs_workflows/utils/stac.md¶
STAC utilities
search(env, cql2, span_name, stac_client_selector, error_if_empty=False, start_log_message=None)
async
¶
Search items in a STAC catalogue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env
|
FlowEnvArgs
|
Prefect flow environment (at least the owner_id is required) |
required |
cql2
|
dict
|
CQL2 filter read from the processor tasktable. |
required |
span_name
|
str
|
Name of the OpenTelemetry span. |
required |
stac_client_selector
|
StacClientSelector
|
Function receiving the flow environment and returning the STAC client plus source-specific search keyword arguments. |
required |
error_if_empty
|
bool
|
Raise a ValueError if the results are empty. |
False
|
start_log_message
|
str | None
|
Optional search start log message. |
None
|