finalized method to reshape mesh for covariance localization