Unsupervised learning of low-dimensional dynamical representations from spatiotemporal data