I was wondering if it is possible to combine multiple TimeSeries data objects of values that have different dimensionality into one TemporalData object. Assume the following test scenario of two TimeSeries that are created from a list of integers (s1), a list of lists with three elements each (s2) and a list of time-values.
s1 = {{106, 126, 78}, {106, 123, 78}, {107, 120, 79}, {106, 118, 79}, {106, 117, 79}, {106, 117, 79}, {107, 116, 80}, {107, 116, 80}, {107, 117, 80}, {107, 120, 80}}; s2 = {157357, 157910, 156605, 156971, 156632, 155637, 154101, 153654, 152738, 151989}; t = {1, 2, 3, 4, 5, 6, 8, 9, 10, 11}; {ts1,ts2} = Map[TimeSeries[#, {t}] &, {s1, s2}] Both TimeSeries are created and missing values are interpolated.
ts1[Range[11]] {157357, 157910, 156605, 156971, 156632, 155637, 154869, 154101, 153654, 152738, 151989}
ts2[Range[11]] {{106, 126, 78}, {106, 123, 78}, {107, 120, 79}, {106, 118, 79}, {106, 117, 79}, {106, 117, 79}, {213/2, 233/2, 159/2}, {107, 116, 80}, {107, 116, 80}, {107, 117, 80}, {107, 120, 80}}
However I cannot combine the two TimeSeries into one TemporalData object:
TemporalData[{ts1, ts2}] - What is the problem?
- Is there a workaround or do I have to stick to a list of
TimeSeriesin that case? - A side question: Is it possible to avoid extrapolation in
TimeSeries?
Thanks for any suggestions!



TemporalData[Join[TimeSeries/@Transpose[ts1["Values"]],{ts2}]]for the second part of your question? $\endgroup$