spec = sw_omegasum(spec,Name,Value)


spec = sw_omegasum(spec,Name,Value) removes the degenerate modes from the dispersion stored in and sorts the modes according to increasing energy. It also removes ghost modes if a lower intensity limit is given.

The degenerate energies are substituted with NaN values.

Name-Value Pair Arguments

Energy tolerance, within the given value two energies are considered equal. Default value is .
The minimum intensity value, below which the mode is removed. Default value is 0 (no modes are dropped due to weak intensity).
Value that is assigned to modes that are removed. Default value is NaN (good for plotting). 0 can be used if further numerical analysis, such as binning will be applied.

See Also

spinw.spinwave | sw_egrid