rs_server_cadip/cadip_utils.md
Module for interacting with CADU system through a FastAPI APIRouter.
This module provides functionality to retrieve a list of products from the CADU system for a specified station. It includes an API endpoint, utility functions, and initialization for accessing EODataAccessGateway.
cadip_map_mission(platform, constellation)
Map STAC platform and constellation into OData Satellite.
Input: platform = sentinel-1a Output: A Input: constellation = sentinel-1 Output: A, B, C
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | |
cadip_odata_to_stac_template()
cached
Used each time to read the ODataToSTAC_template json template.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
58 59 60 61 62 63 | |
cadip_reverse_map_mission(platform)
Function used to re-map platform and constellation based on satellite value.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
220 221 222 223 224 225 226 227 228 | |
cadip_session_odata_to_stac_template()
cached
Used each time to read the cadip_session_ODataToSTAC_template json template.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
66 67 68 69 70 71 | |
cadip_session_stac_mapper()
cached
Used each time to read the cadip_sessions_stac_mapper json config.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
82 83 84 85 86 87 | |
cadip_stac_mapper()
cached
Used each time to read the cadip_stac_mapper json config.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
74 75 76 77 78 79 | |
from_session_expand_to_assets_serializer(feature_collection, input_session, mapper)
Associate all expanded files with session from feature_collection and create a stac_pydantic.Asset for each file.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | |
from_session_expand_to_dag_serializer(input_sessions)
Convert a list of sessions containing expanded files metadata into a list of files for serialization into the DB.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
136 137 138 139 140 141 142 143 144 145 146 | |
link_assets_to_session(session_features, asset_items)
Update input session items with associated assets based on session id property.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | |
map_dag_file_to_asset(mapper, product, href)
This function is used to map extended files from odata to stac format.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
125 126 127 128 129 130 131 132 133 | |
prepare_collection(collection)
Used to create a more complex mapping on platform/constallation from odata to stac.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
274 275 276 277 278 279 280 | |
read_conf()
cached
Used each time to read RSPY_CADIP_SEARCH_CONFIG config yaml.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
49 50 51 52 53 54 55 | |
rename_keys(product)
Rename keys in the product dictionary. To match eodag specific properties key name (id / startTime..)
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
108 109 110 111 112 113 114 | |
select_config(configuration_id)
Used to select a specific configuration from yaml file, returns None if not found.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
90 91 92 93 94 95 | |
stac_to_odata(stac_params)
Convert a parameter directory from STAC keys to OData keys. Return the new directory.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
98 99 100 101 102 103 104 105 | |
update_product(product)
Update product with renamed keys and default geometry.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
117 118 119 120 121 122 | |
validate_products(products)
Function used to remove all miconfigured outputs.
Source code in docs/rs-server/services/cadip/rs_server_cadip/cadip_utils.py
171 172 173 174 175 176 177 178 179 180 181 | |