sup3r.qa.utilities.tke_wavenumber_spectrum
- tke_wavenumber_spectrum(u, v, x_range=None, axis=0)[source]
Turbulent Kinetic Energy Spectrum. Gives the portion of kinetic energy associated with each wavenumber.
- Parameters:
u (ndarray) – (lat, lon) U component of wind
v (ndarray) – (lat, lon) V component of wind
x_range (list | None) – List with min and max wavenumber. When comparing spectra for different domains this needs to be tailored to the specific domain. e.g. k = [1/max_length, …, 1/min_length] If this is not specified k with be set to [0, …, len(y)] where y is the fft output.
axis (int) – Axis to average over to get a 1D wind field. If axis=0 this returns the zonal energy spectrum
- Returns:
ndarray – Array of wavenumbers corresponding to energy amplitudes
ndarray – 1D array of amplitudes corresponding to the portion of total energy with a given wavenumber