to_30min#

popo.profiles.smartds.to_30min(a)#

Average adjacent 15-minute samples onto the 30-minute grid.

Mean rather than sum: these are power multipliers, not energy, so the mean is the quantity that survives the change of interval.

Parameters:

a (ndarray) – Array of shape (steps, customers) at 15-minute resolution, with steps even.

Return type:

ndarray

Returns:

Array of shape (steps // 2, customers).