sup3r.qa.utilities.tke_frequency_spectrum

sup3r.qa.utilities.tke_frequency_spectrum#

tke_frequency_spectrum(u, v, f_range=None)[source]#

Kinetic Energy Spectrum. Gives the portion of kinetic energy associated with each frequency.

Parameters:
  • u (ndarray) – (lat, lon) U component of wind

  • v (ndarray) – (lat, lon) V component of wind

  • f_range (list | None) – List with min and max frequency. When comparing spectra for different domains this needs to be tailored to the specific domain. e.g. f = [1/max_time, …, 1/min_time] If this is not specified f with be set to [0, …, len(y)] where y is the fft output.

Returns:

ndarray – 1D array of amplitudes corresponding to the portion of total energy with a given frequency