cmip6_downscaling.methods.deepsd.utils.normalize

Contents

cmip6_downscaling.methods.deepsd.utils.normalize#

cmip6_downscaling.methods.deepsd.utils.normalize(ds: Dataset, dims: list[str] = ['lat', 'lon'], epsilon: float = 1e-06) Dataset[source]#

Normalize dataset

Parameters:
dsxr.Dataset

Input dataset

dimlist

Dimensions over which to apply mean and standard deviation

epsilonfloat

Value to add to standard deviation during normalization

Returns:
xr.Dataset

Normalized dataset