rs_server_prip/prip_retriever.md¶
Create / cache an EODAG provider for a given PRIP station (s1a, s1c, s2a …).
Usage
provider = init_prip_provider("s1a")
init_prip_provider(station)
cached
¶
Initialize the prip provider for the given station.
It initializes an eodag provider for the given station. The EODAG configuration file is read from the path given in the EODAG_PRIP_CONFIG var env if set. It is read from the path config/prip_ws_config.yaml otherwise.
If the station is unknown or if the prip station configuration reading fails, a specific exception is raised to inform the caller of the issue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
station
|
str
|
the station to interact with. |
required |
Returns:
| Type | Description |
|---|---|
EodagProvider
|
the EodagProvider initialized |