add code to extract time series, resulting CSV