cwt (pyleoclim.utils.wavelet.cwt)

pyleoclim.utils.wavelet.cwt(ys, ts, scales, wavelet='morl', sampling_period=1.0, method='conv', axis=- 1)[source]

Continous wavelet transform for evenly spaced data

pywavelet documentation: https://pywavelets.readthedocs.io/en/latest/ref/cwt.html

Parameters
  • ys (array) – signal

  • ts (array) – time

  • scales (array (float)) – different wavelet scales to use

  • wavelet (str) – types of wavelet options in function documentation link. The default is ‘morl’ for a morlet wavelet.

  • sampling_period (float, optional) – sampling period for frequencies output. The default is 1.0.

  • method (str, optional) – cwt computation method. ‘conv’,’fft’. or ‘auto’ The default is ‘conv’.

  • axis (int, optional) – axis over which to compute cwt. The default is -1, the last axis.

Returns

res

‘freq’ - array(float)

frequencies

’time’ - array(float) ‘amplitude’ - array(float) ‘coi’ - array(float)

cone of inference

Return type

dictionary