Skip to main content

Module resample

Module resample 

Source
Expand description

Resampling along a time dimension, like xarray.DataArray.resample.

Each time goes into one bin of a regular Frequency. Bins are closed on the left and are labeled by their start, like the pandas defaults:

  • Fixed periods (day, hour, minute, second) count from midnight of the day of the first time, like pandas origin="start_day".
  • Calendar periods (month, year) count from the month or year of the first time, like pandas MS and YS.

Structs§

Frequency
A regular time step: step times a calendar period, for example 6 hours.

Constants§

MAX_BINS
Upper limit of the number of bins, against memory exhaustion.

Functions§

resample
Reduce a per time bin along dim.