Description Usage Arguments Details Value Note Author(s) See Also Examples
Computes and displays a synthetic interferogram for a wavefront constructed from a vector of Zernike coefficients.
1 2 | synth.interferogram(zcoef, zlist = zlist.qf, phi = 0,
size = 255, obstruct = 0, iname = "")
|
zcoef |
Vector of Zernike coefficients, with piston term as the first element |
zlist |
A list with named components |
phi |
angular coordinate to rotate entire coordinate system |
size |
Size of matrix representing pupil |
obstruct |
central obstruction fraction |
iname |
short string for identification |
It's important to note that zcoef
is treated differently than in other functions
that use the same variable name. The first element must be a piston (constant) term,
which is stripped off and passed to pupil
as the piston
argument. The length
of zcoef
therefore should be one more than the length of zlist$n
.
A size
by size
matrix of intensity levels in the simulated interferogram.
The relationship between wavefront phase and intensity is
iwf <- cos(2 * pi * wf + pi)
, which is the value returned by
synth.interferogram
. The plot routine in this function
plots the image on a 256 level grayscale.
M.L. Peck mpeck1@ix.netcom.com
1 2 3 4 5 6 7 8 9 | zcoef <- c(0, 3, 3, rnorm(length(zlist.qf$n)-2, mean=0, sd = .01))
temp <- synth.interferogram(zcoef, iname="Random wavefront")
# lets see what it looks like in a star test
zcoef <- zcoef[-1]
zcoef[1:2] <- 0
fraunhofer(zcoef, displaywf=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.