Deep generative models for high dimensional spatial and temporal data analysis