xesn.XData.normalize

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 bias and scale as

\[(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