Utilities to manipulate timeseries - useful for preprocessing prior to analysis