my_code_base.esd.utils

Functions

compute_weighted_mean(ds)

Compute the weighted mean of a given xarray dataset.

rename_obs(ds[, rename_dict])

Homogenize observation datasets to common naming.

Module Contents

my_code_base.esd.utils.compute_weighted_mean(ds)[source]

Compute the weighted mean of a given xarray dataset.

Parameters:
(xarray.Dataset) : ds

Returns:

xarray.DataArray

Return type:

The computed weighted mean.

my_code_base.esd.utils.rename_obs(ds, rename_dict=None)[source]

Homogenize observation datasets to common naming. Following the function xmip.preprocessing.rename_cmip6, thereby omitting source_id and extending the renaming_dict.