Closed santisoler closed 1 year ago
@LL-Geo, I'm planning to merge this PR during this week. If you have the chance to take a look at it, that would be nice. Otherwise, don't worry, we can always change this code afterwards.
Since horizontal derivatives using finite differences in the grid are more accurate than their FFT counterpart, I think it might be better to offer the finite differences option as the default one. This was also the default behavior in the old fatiando
horizontal derivatives functions.
@LL-Geo, I'm merging this so I can start the release of Harmonica. Don't worry about the review. If you find something we should change, feel free to open an issue or a pr! Thanks again for all the work with the fft filters!
Just had a quick look! That looks great! 👍
Make functions
derivative_easting
andderivative_northing
to compute the horizontal derivatives using central finite-differences through thexarray.DataArray.differentiate
method by default. Add amethod
argument to let users choose if they want to use the FFT implementation or the finite differences one. This implementation mimics the one we had in the oldfatiando
.