Closed CommonClimate closed 3 years ago
Issue is due to unevenly vs evenly spaced signal for the last frequency point (regardless whether it's the Nyquist frequency).
This is a problem with the original implementation rather than the Pyleoclim wrapper. Suggest putting a warning if the series is evenly-spaced that there might be a spurious value at high frequency end.
Describe the bug L-S method shows a singularity at the Nyquist frequency.
To Reproduce generate a harmonic, evenly spaced series ts and apply
ts.spectral(method = 'lomb_scargle)
. Expected behavior There should be no singularity at the Nyquist frequency ScreenshotsAdditional context Requires updating the method generating the frequency vector for the L-S method.