xesn.XData.normalize#
- XData.normalize(xda, keep_attrs=False)#
Very simple, this may eventually be hooked up with e.g., scikit-learn for more advanced normalization. Right now, normalize with scalars
biasandscaleas\[(xda - bias) / scale\]- Parameters:
xda (xarray.DataArray) – with the field to be normalized
keep_attrs (bool) – if True, keep attributes in xda
- Returns:
xda (xarray.DataArray) – normalized