get_ts function

Get the input raw time series