wave_bases

seas.waveletFunctions.wave_bases(mother: str, k: numpy.ndarray, scale: int, param: int)[source]

WAVE_BASES 1D Wavelet functions Morlet, Paul, or DOG

DAUGHTER,FOURIER_FACTOR,COI,DOFMIN = wave_bases(MOTHER,K,SCALE,PARAM)

Computes the wavelet function as a function of Fourier frequency, used for the wavelet transform in Fourier space. (This program is called automatically by WAVELET)

INPUTS:

MOTHER = a string, equal to ‘MORLET’ or ‘PAUL’ or ‘DOG’ K = a vector, the Fourier frequencies at which to calculate the wavelet SCALE = a number, the wavelet scale PARAM = the nondimensional parameter for the wavelet function

OUTPUTS:

DAUGHTER = a vector, the wavelet function FOURIER_FACTOR = the ratio of Fourier period to scale COI = a number, the cone-of-influence size at the scale DOFMIN = a number, degrees of freedom for each point in the wavelet power

(either 2 for Morlet and Paul, or 1 for the DOG)