WIP: timeserieswindow2matrix