throw error when using periodic cov for non 1d data