synth.interferogram: Synthetic interferogram

View source: R/zernike_misc.r

synth.interferogramR Documentation

Synthetic interferogram

Description

Compute and display a synthetic interferogram.

Usage

synth.interferogram(wf = NULL, zcoef = NULL, maxorder = NULL, 
                    nr = nrow(wf), nc = ncol(wf), cp = NULL, 
                    phi = 0, addzc = rep(0, 4), fringescale = 1, 
                    plots = TRUE)

Arguments

wf

A matrix of wavefront values

zcoef

A vector of Zernike coefficients

maxorder

Maximum Zernike polynomial order

nr

Number of rows in the output matrix

nc

Number of columns in the output matrix

cp

A list describing the pupil boundaries, as created by pupil.pars

phi

Amount to rotate the wavefront, in degrees

addzc

A 4-vector with piston, tilt, and defocus terms to be added

fringescale

Fringe scale. Should be 1 for single pass, 0.5 for double, etc.

plots

Logical: Plot the interferogram?

Details

Either wf or zcoef must be non-null, but not both. If zcoef is specified maxorder must be as well.

Additional piston, tilt, and defocus terms can be added to the calculated wavefront using addzc.

Value

A matrix of intensity levels in the calculated interferogram, assigned class "pupil".

Author(s)

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

See Also

pupil.

Examples

# create a list of zernikes
zcoef <- rnorm(length(zlist.fr$n), mean=0, sd=0.01)

iwf <- synth.interferogram(zcoef=zcoef, maxorder=12)

X11()

# show again with some tilt

iwf <- synth.interferogram(zcoef=zcoef, maxorder=12, addzc=c(0,5,5,0))

mlpeck/zernike documentation built on April 19, 2024, 3:16 p.m.