daily_min

earthkit.transforms.temporal.daily_min(*_args, **kwargs)[source]

Calculate the daily minimum.

Parameters:
  • dataarray (xarray.DataArray) – DataArray containing a time dimension.

  • time_dim (str) – Name of the time dimension, or coordinate, in the xarray object to use for the calculation, default behaviour is to deduce time dimension from attributes of coordinates, then fall back to “time”.

  • time_shift (None, timedelta, dict, str or xarray.DataArray, optional) – A time shift to apply to the data prior to calculation, e.g. to change the local time zone. It can be provided as any object that can be understood by pandas.Timedelta, a dictionary is passed as kwargs to pandas.Timedelta. A string that cannot be parsed as a timedelta is interpreted as a reference to a coordinate of the input dataarray, allowing, e.g., for spatially-varying per-gridpoint time zone offsets. An xarray.DataArray can also be provided directly. Default is None.

  • remove_partial_periods (bool) – If True and a time_shift has been applied, the first and last time steps are removed to ensure equality in sampling periods. Default is False.

  • **kwargs – Keyword arguments to be passed to reduce().

Returns:

A dataarray reduced to daily min values

Return type:

xarray.DataArray | xarray.Dataset