barc4ro.wavefront_fitting

Functions

calc_chebyshev(leg_vec, npix[, leg_data, mask])

Constructs wavefront with Chebyshev amplitudes leg_vec.

calc_chebyshev_basis(nmodes, npix[, ...])

Calculates a basis of nmodes Chebyshev modes with normalised dimensions [-1, 1].

calc_legendre(leg_vec, npix[, leg_data, mask])

Constructs wavefront with Legendre amplitudes leg_vec.

calc_legendre_basis(nmodes, npix[, ...])

Calculates a basis of nmodes Legendre modes with normalised dimensions [-1, 1].

calc_wft_pol()

calc_wft_pol_basis()

calc_zern_circ_basis(nmodes, rad[, ...])

Calculate a basis of nmodes Zernike modes with radius rad.

calc_zern_rec_basis(nmodes, npix[, ...])

Calculates a basis of nmodes Zernike modes with normalised dimensions [2*np.sqrt(1-a**2), 2a].

calc_zern_sqr_basis(nmodes, npix[, ...])

Calculates a basis of nmodes Zernike modes with normalised dimensions [2*np.sqrt(1-a**2), 2a].

calc_zernike_circ(zern_vec, rad[, ...])

Constructs wavefront with Zernike amplitudes zern_vec.

calc_zernike_rec(zern_vec, npix[, ...])

Constructs wavefront with Zernike amplitudes zern_vec.

calc_zernike_sqr(zern_vec, npix[, ...])

Constructs wavefront with Zernike amplitudes zern_vec.

chebyshev_1D(Cn, X)

Calculates the 1D Chebyshev polynomials on a X grid ranging from -1 to 1.

chebyshev_2D(j, X, Y)

Calculates the orthonormal rectangular Chebyshev mode j on a normalised rectangular grid X and Y given by:

fit_chebyshev(wavefront[, leg_data, nmodes, ...])

Fit nmodes Chebyshev modes to a wavefront.

fit_legendre(wavefront[, leg_data, nmodes, ...])

Fit nmodes Legendre modes to a wavefront.

fit_wft_pol()

fit_zernike_circ(wavefront[, zern_data, ...])

Fit nmodes Zernike modes to a wavefront.

fit_zernike_rec(wavefront[, zern_data, ...])

Fit nmodes Zernike modes to a wavefront.

fit_zernike_sqr(wavefront[, zern_data, ...])

Fit nmodes Zernike modes to a wavefront.

legendre_1D(Ln, X[, norm])

Calculates the 1D Legendre polynomials on a X grid ranging from -1 to 1.

legendre_2D(j, X, Y[, norm])

Calculates the orthonormal rectangular Legendre mode j on a normalised rectangular grid X and Y given by:

mk_circ_mask(r0[, r1, norm, center, dtype, ...])

Make a rectangular matrix of size (r0, r1) where the value of each element is the Euclidean distance to center.

noll_to_zern(j)

Convert linear Noll index to tuple of Zernike indices.

zern_normalisation([nmodes])

Calculates normalisation vector.

zernike_circ(j, rho, phi[, norm])

Calculates Zernike mode with Noll-index j on a square grid of <size>^2 elements

zernike_circ_mn(m, n, rho, phi[, norm])

Calculates Zernike mode (m,n) on grid rho and phi.

zernike_rad(m, n, rho)

Make radial Zernike polynomial on 1D - coordinate grid rho.

zernike_rec(j, a, rho, phi)

Calculates the orthonormal rectangular Zernike mode j on grid rho and phi.

zernike_sqr(j, rho, phi)

Calculates the orthonormal square Zernike mode j on grid rho and phi.