CordexClient reference
Source code in c3s_event_attribution_tools/data/cordex_client.py
__init__(cordex_token)
fetch_cordex_gpd(variable, model_url, bbox, time_range)
Fetch CORDEX data as a GeoDataFrame for a given variable, model, GeoDataFrame, and time range.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
variable
|
str
|
The variable to fetch (e.g., 'tasmax'). |
required |
model_url
|
str
|
The model URL segment to access the specific dataset. (eg. eur11-hist-day-cccma_canesm2-clmcom_clm_cclm4_8_17-r1i1p1) |
required |
bbox
|
tuple
|
A tuple defining the bounding box (min_lat, min_lon, max_lat, max_lon). |
required |
time_range
|
tuple
|
A tuple defining the time range (start_time, end_time). |
required |
Source code in c3s_event_attribution_tools/data/cordex_client.py
fetch_cordex_xr(variable, model_url, bbox, time_range)
Fetch CORDEX data as an xarray Dataset for a given variable, model, bounding box, and time range.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
variable
|
str
|
The variable to fetch (e.g., 'tasmax'). |
required |
model_url
|
str
|
The model URL segment to access the specific dataset. (eg. eur11-hist-day-cccma_canesm2-clmcom_clm_cclm4_8_17-r1i1p1) |
required |
bbox
|
tuple
|
A tuple defining the bounding box (min_lon, min_lat, max_lon, max_lat). |
required |
time_range
|
tuple
|
A tuple defining the time range (start_time, end_time). |
required |
Source code in c3s_event_attribution_tools/data/cordex_client.py
list_available_models()
Placeholder method to list available CORDEX models. In a real implementation, this would query the CORDEX data store.