Module modeselection

This file must return a table with two fields: atmos and ocean, each of which contain an array with the selected {Nx,Ny} wavenumbers of the modes to be included in the respective components of MAOOAM.

e.g.

return {
  atmos = {{1,1},{1,2},{2,1},{2,2}},
  ocean = {{1,1},{1,2},{2,1},{2,2}},
}

It includes a utility function getmodes(Nxmax, Nymax) which generates all combinations of wavenumbers from {1,1} up to {Nxmax,Nymax}. Using this function, the table above can be simplified to:

return {
  atmos = getmodes(2,2),
  ocean = getmodes(2,2),
}

Functions

getmodes (Nx_max, Ny_max) Function to generate the mode blocks for either ocean or atmosphere up to given wavenumbers.


Functions

getmodes (Nx_max, Ny_max)
Function to generate the mode blocks for either ocean or atmosphere up to given wavenumbers.

Parameters:

  • Nx_max Upper limit of the x wavenumber
  • Ny_max Upper limit of the y wavenumber
generated by LDoc 1.4.3 Last updated 2016-03-11 16:19:27