Summarystats: Wavefront summaries

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Estimate the RMS or P-V wavefront error over the pupil given in the argument.

Usage

1
2
3

Arguments

pupil

pupil is the matrix created by the call to pupil

rms

The rms wavefront error

Value

An estimate of the RMS or P-V error of the wavefront, or Strehl ratio.

Note

The function pupilrms simply returns the standard deviation of the defined values in pupil, which is a crude but usually good enough approximation to the properly defined integral over the aperture.

For a wavefront defined entirely in terms of a vector zcoef of Zernike coefficients rms <- sqrt(crossprod(zcoef)) is faster and more accurate.

pupilpv does the obvious. There is no analytical solution in general for P-V.

strehlratio computes Mahajan's approximation to the Strehl ratio.

Author(s)

M.L. Peck mpeck1@ix.netcom.com

See Also

pupil.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# A random vector of Zernike coefficients

zcoef <- rnorm(length(zlist.qf$n), mean=0, sd=0.01)
wf <- pupil(zcoef=zcoef)
image(wf, col=topo.colors(256), asp=1)
contour(wf, add=TRUE)
pupilrms(wf)
sqrt(crossprod(zcoef)) #should be the same to about 4 digits
pupilpv(wf)
strehlratio(sqrt(crossprod(zcoef))) #probably around 0.8

matwey/Rfringe documentation built on May 12, 2019, 8:43 a.m.