ILAMB.Variable.Variable.coarsenInTime

Variable.coarsenInTime(intervals, window=0.0)[source]

Compute the mean function value in each of the input intervals.

Parameters
  • intervals (array of shape (n,2)) – An array of n intervals where the first entry is the beginning and the second entry is the end of the interval

  • window (float, optional) – Extend each interval before and after by this amount of time

Returns

coarse – The coarsened variable

Return type

ILAMB.Variable.Variable