High-dimensional variable selection for spatial regression and covariance estimation