Skip to content

Commit

Permalink
updated docstrings for wavelet_coherence()
Browse files Browse the repository at this point in the history
  • Loading branch information
CommonClimate committed Jan 6, 2024
1 parent db86a3c commit 2f3e7f2
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pyleoclim/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -3201,7 +3201,21 @@ def wavelet_coherence(self, target_series, method='cwt', settings=None,
coh_wwz.plot()
As with wavelet analysis, both CWT and WWZ admit optional arguments through `settings`.
Significance is assessed similarly as with PSD or Scalogram objects:
For instance, one can adjust the resolution of the time axis on which coherence is evaluated:
.. jupyter-execute::
coh_wwz = ts_air.wavelet_coherence(ts_nino, method = 'wwz', settings = {'ntau':20})
coh_wwz.plot()
The frequency (scale) axis can also be customized, e.g. to focus on scales from 1 to 20y, with 24 scales:
.. jupyter-execute::
coh = ts_air.wavelet_coherence(ts_nino, freq_kwargs={'fmin':1/20,'fmax':1,'nf':24})
coh.plot()
Significance is assessed similarly to PSD or Scalogram objects:
.. jupyter-execute::
Expand All @@ -3219,6 +3233,8 @@ def wavelet_coherence(self, target_series, method='cwt', settings=None,
cwt_sig.dashboard()
Note: this design balances many considerations, and is not easily customizable.
'''
if not verbose:
warnings.simplefilter('ignore')
Expand Down

0 comments on commit 2f3e7f2

Please sign in to comment.