deafrica_tools.load_era5#
Functions to retrieve ERA5 gridded climate data.
Updated Apr 2026
Functions
|
Load ERA5 variable from public ARCO ERA5 Zarr. |
- deafrica_tools.load_era5.load_era5(var, lat, lon, time, reduce_func='mean', resample='1D', chunks='auto', compute=False, show_progress=True)#
Load ERA5 variable from public ARCO ERA5 Zarr.
- Parameters:
var (str) – One of ERA5_VARS.
lat (list/tuple) – Latitude range as (min_lat, max_lat).
lon (list/tuple) – Longitude range as (min_lon, max_lon).
time (str, np.datetime64, list or tuple) – Single date or date range.
reduce_func (str or callable) – “mean”, “sum”, “min”, “max”, or a NumPy function.
resample (str) – Resampling frequency, e.g. “1D”, “1M”.
chunks (dict) – Dask chunks.
compute (bool) – If True, loads result into memory.
show_progress (bool) – If True, prints progress updates.
- Return type:
xarray.Dataset