A Filtering Approach To Remove Finite-Difference Errors From Wave Equation Simulations