pysteps.nowcasts.utils.binned_timesteps

pysteps.nowcasts.utils.binned_timesteps#

pysteps.nowcasts.utils.binned_timesteps(timesteps)#

Compute a binning of the given irregular time steps.

Parameters:

timesteps (array_like) – List or one-dimensional array containing the time steps in ascending order.

Returns:

out – List of length int(np.ceil(timesteps[-1]))+1 containing the bins. Each element is a list containing the indices of the time steps falling in the bin (excluding the right edge).

Return type:

list