add rate_limit to clipping functions
square_off() interpolates pandas Series to produce "square wave" or "stair step" time series