slmsuite.holography.toolbox.phase.ince_gaussian

ince_gaussian(grid, p, m, parity=1, ellipticity=1, w=None)[source]

(NotImplemented) Returns the phase farfield for an Ince-Gaussian beam. Consider using these references.

Parameters
  • grid ((array_like, array_like) OR SLM) – Meshgrids of normalized \(\frac{x}{\lambda}\) coordinates corresponding to SLM pixels, in (x_grid, y_grid) form. These are precalculated and stored in any SLM, so such a class can be passed instead of the grids directly.

  • p (int) – Ince polynomial order.

  • m (int) – Ince polynomial degree.

  • parity ({1, -1, 0}) –

    Whether to produce an even (1), odd (-1), or helical (0) Ince polynomial. A helical polynomial is the linear combination of even and odd polynomials.

    \[IG^h_{p,m} = IG^e_{p,m} + iIG^o_{p,m}\]

  • ellipticity (float) – Ellipticity of the beam. The semifocal distance is equal to ellipticity * w, where the foci are the points which define the elliptical coordinate system.

  • w (float) – See _determine_source_radius().

Returns

The phase for this function.

Return type

numpy.ndarray