We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tukey
1 parent 781095b commit e934aa0Copy full SHA for e934aa0
1 file changed
mpas_analysis/ocean/index_nino34.py
@@ -16,6 +16,7 @@
16
import pandas as pd
17
import numpy as np
18
from scipy import signal, stats
19
+from scipy.signal.windows import tukey
20
import matplotlib.pyplot as plt
21
22
from mpas_analysis.shared.climatology import climatology
@@ -400,7 +401,7 @@ def _compute_nino34_spectra(self, nino34Index):
400
401
402
# Move nino34Index to numpy to allow functionality with scipy routines
403
ninoIndex = nino34Index.values
- window = signal.tukey(len(ninoIndex), alpha=0.1)
404
+ window = tukey(len(ninoIndex), alpha=0.1)
405
f, Pxx = signal.periodogram(window * ninoIndex,
406
1.0 / constants.sec_per_month)
407
0 commit comments