xoa.dyn.VerticalModes.decomp#
- VerticalModes.decomp(da, nmodes=None)[source]#
Decompose profiles into the amplitudes of the vertical modes
The amplitude of the barotropic mode is the vertical mean of the profile.
- Parameters:
da (xarray.DataArray) – Profiles, with the vertical dimension of the modes and possibly other dimensions, that are broadcast with the ones of the modes. It must be defined at all the levels of the water columns, or the amplitudes are missing.
nmodes (None, int) – Number of modes to keep, which defaults to all of them.
- Returns:
xarray.DataArray – The amplitudes, with the
modedimension first and the other dimensions of the profiles, without the vertical one.
See also