percentiles¶
- earthkit.transforms.climatology.percentiles(dataarray: Dataset | DataArray, p: float | list, **_kwargs) DataArray[source]¶
Calculate a set of climatological percentiles.
- Parameters:
dataarray (xarray.DataArray) – The DataArray over which to calculate the climatological percentiles. Must contain a time dimension.
p (float | list) – The pecentile, or list of percentiles, to calculate the climatology.
frequency (str (optional)) – Valid options are day, week and month.
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: