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
|
Source code in docs/rs-client-libraries/rs_workflows/utils/stac.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |