rs_workflows/catalog_flow.md
Catalog flow implementation
catalog_search(env, catalog_cql2, error_if_empty=False)
async
Search Catalog items.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env
|
FlowEnvArgs
|
Prefect flow environment (at least the owner_id is required) |
required |
catalog_cql2
|
dict
|
CQL2 filter. |
required |
error_if_empty
|
bool
|
Raise a ValueError if the results are empty. |
False
|
Source code in docs/rs-client-libraries/rs_workflows/catalog_flow.py
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 | |
catalog_search_task(*args, **kwargs)
async
See: search
Source code in docs/rs-client-libraries/rs_workflows/catalog_flow.py
168 169 170 171 | |
publish(env, catalog_collection_identifier, payload_file, items)
async
Publish items to the catalog
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env
|
FlowEnvArgs
|
Prefect flow environment |
required |
catalog_collection_identifier
|
list[dict]
|
Catalog collection identifier where the items are staged |
required |
payload_file
|
PayloadSchema
|
Payload file configuration for the dpr processor |
required |
items
|
list[dict]
|
Items to publish, as STAC dicts |
required |
Source code in docs/rs-client-libraries/rs_workflows/catalog_flow.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | |