Closed calum-chamberlain closed 5 years ago
This is going to be a bigger job than anticipated. Closing this but might come back to it at some point.
I decided to try just using pyFFTW plugged in to resampling - this ends up being a lot faster than using scipy fft routines for large primes, and faster than interpolation. It is also a simple plugin for this code, and we already rely on FFTW for correlations, so installation doesn't change much (with FFTW installed pyFFTW can be installed via pip, or conda - conda will install FFTW itself if needed).
What does this PR do?
Changes the "resampling" process inutils.pre_processing
to use.interpolate
rather than.resample
for speed and stability.Borrows code from obspy for resampling, using the pyfftw interfaces in place of scipy fftpack.
Why was it initiated? Any relevant Issues?
311
PR Checklist
develop
base branch selected?CHANGES.md
.- [ ] First time contributors have added your name toCONTRIBUTORS.md
.