rs_workflows/utils/cadip.md¶
Helper task to interact with the rs-cadip.
cadip_session_search(env, cadip_collection_identifier, limit=10)
async
¶
Search for CADIP sessions within a given time interval.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env
|
FlowEnvArgs
|
Flow environment arguments (e.g., owner_id, credentials). |
required |
cadip_collection_identifier
|
list[str]
|
CADIP collection identifier (e.g., "s1_sgs") to specify the station. |
required |
limit
|
int
|
Number maximum of STAC items to be retrieved |
10
|
Returns:
| Name | Type | Description |
|---|---|---|
ItemCollection |
ItemCollection
|
A pystac ItemCollection containing the sessions found. |
Source code in docs/rs-client-libraries/rs_workflows/utils/cadip.py
get_cadip_station(flow_env, session, cadip_collections)
async
¶
Retrieve a cadip station that owns the session.
Source code in docs/rs-client-libraries/rs_workflows/utils/cadip.py
is_evicted(item)
¶
Check if the CADIP session is evicted.