synth.interferogram: Synthetic Interferogram

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

Description

Computes and displays a synthetic interferogram for a wavefront constructed from a vector of Zernike coefficients.

Usage

1
2
synth.interferogram(zcoef, zlist = zlist.qf, phi = 0, 
  size = 255, obstruct = 0, iname = "")

Arguments

zcoef

Vector of Zernike coefficients, with piston term as the first element

zlist

A list with named components n, m, t describing the contents of zcoef

phi

angular coordinate to rotate entire coordinate system

size

Size of matrix representing pupil

obstruct

central obstruction fraction

iname

short string for identification

Details

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.

Value

A size by size matrix of intensity levels in the simulated interferogram.

Note

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.

Author(s)

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

See Also

Zernike, pupil.

Examples

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)

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