A Time-Varying Low-Dimensional Representation For Spatio-Temporal Data