From time series to linear system - Part I. Finite dimensional linear time invariant systems