Modeling Temporal and Spatial Data Dependence with Bayesian Nonparametrics