xoa.dyn.VerticalModes.energy_share#
- VerticalModes.energy_share(u, v=None)[source]#
Get the share of the kinetic energy of each mode
The mean kinetic energy over the water column is the sum of the squared amplitudes of the modes, by orthogonality. This is the ratio of each of them to the total.
- Parameters:
u (xarray.DataArray) – Profiles of the currents, or of a single component
v (None, xarray.DataArray) – Profiles of the other component
- Returns:
xarray.DataArray – Shares between 0 and 1, with the
modedimension first
See also