program to process time series data