make_hexike_basis
- hcipy.mode_basis.make_hexike_basis(grid, num_modes, circum_diameter, hexagon_angle=0, cache=None)
Make a hexike basis.
This is based on [Mahajan2006]. This function creates a Zernike mode basis, then numerically orthogonalizes it using Gram-Schmidt orthogonalization.
[Mahajan2006]Virendra N. Mahajan and Guang-ming Dai, “Orthonormal polynomials for hexagonal pupils,” Opt. Lett. 31, 2462-2464 (2006)
- Parameters:
- gridhcipy.Grid
The grid on which to compute the mode basis.
- num_modesint
The number of hexike modes to compute.
- circum_diameterfloat
The circum-diameter of the hexagonal aperture.
- hexagon_anglefloat
The angle of the hexagon. At an angle of 0, the point of the hexagon points up.
- cachedictionary or None
A dictionary containing previously calculated Hexike modes on the same grid. This function is for speedup only, and therefore the cache is expected to be valid. You can reuse the cache for future calculations on the same exact grid. The given dictionary is updated with the current calculation.