spherical.grid.utilities
modes
modes(self, ell_max=None, **kwargs)
Source: spherical/grid/utilities.py
Return mode weights of function decomposed into SWSHs The output array has one less dimension than this object; rather than the last two axes giving the values on the two-dimensional grid, the last axis gives the mode weights.
Parameters
-
ell_max:{None, int},optionalMaximum ell value in the output. If None, the result will have enough ell values to express the data on the grid without aliasing: (max(n_phi, n_theta) - 1) // 2.
-
**kwargs:AnyAdditional keyword arguments are passed through to the Modes constructor on output