daily_median

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

Calculate the daily climatological median.

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

  • 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