startest: Star test simulator

View source: R/zernike_misc.r

startestR Documentation

Star test simulator

Description

Simulates a star test.

Usage

startest(wf=NULL, zcoef=NULL, maxorder=14L, phi=0,
	lambda = 1, defocus=5, cp=NULL,
	obstruct=NULL, npad = 4, 
	gamma=2, psfmag=2, displaymtf=TRUE, displaywf=FALSE)

Arguments

wf

A matrix of class pupil containing wavefront values

zcoef

Vector of Zernike coefficients

maxorder

maximum Zernike polynomial order

phi

Angle to rotate wavefront

lambda

Wavelength, in same units as coefficients

defocus

Amount of defocus in waves

cp

pupil parameters

obstruct

Obstruction fraction

npad

Pad factor for FFT

gamma

Gamma value for graphics display

psfmag

Magnification factor for in focus PSF display

displaymtf

Logical: Display MTF?

displaywf

Logical: Display calculated wavefront?

Details

If wf is NULL the wavefront is calculated from the the Zernike coefficients (which should be non-NULL).

Value

A list with the following components:

psf

The in focus point spread function.

otf

The complex optical transfer function, a complex matrix of size pupilsize.

mtf

The modulation transfer function, a real matrix of size pupilsize.

Author(s)

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

References

Born, M. and Wolf, E. 1999, Principles of Optics, 7th Edition, Cambridge University Press.

Suiter, H. R., 1994, Star Testing Astronomical Telescopes, Willman-Bell, Inc.

See Also

Zernike, pupil.


mlpeck/zernike documentation built on Aug. 21, 2024, 8:32 p.m.