std

earthkit.transforms.climatology.std(*_args, **_kwargs) Dataset | DataArray[source]

Calculate the climatological standard deviation.

Parameters:
  • dataarray (xarray.DataArray) – The DataArray over which to calculate the climatological standard deviation. Must contain a time dimension.

  • frequency (str (optional)) – Valid options are day, week, month and year. The default is year.

  • bin_widths (int or list (optional)) – If bin_widths is an int, it defines the width of each group bin on the frequency provided by frequency. If bin_widths is a sequence it defines the edges of each bin, allowing for non-uniform bin widths.

  • time_dim (str (optional)) – Name of the time dimension in the data object, default behaviour is to detect the time dimension from the input object

  • **reduce_kwargs – Any other kwargs that are accepted by earthkit.transforms.aggregate.reduce (except how)

Return type:

xarray.DataArray