| testfunc | stsdas.sobsolete | testfunc |
testfunc -- Create test data for a specified function.
testfunc function
The testfunc task generates dependent-variable values for any number of pixels and writes them to the standard output device (STDOUT). The user selects the form for the data from a list of 18 commonly-known functions.
The mkfunc task can be used to place these functional data in a real data file (with the correct FITS coordinate parameters).
Value Function
===== ========
bessel Bessel function ('J0')
box Bracewell's box function
comb Dirac comb, Bracewell shah
constant Constant
cosine cosine
delta Delta function
gaussian Gaussian
heaviside Heaviside unit step
line Unit-slope line
pe Even impulse pair
po Odd impulse pair
rectangle Bracewell's box function
shah Dirac comb, Bracewell shah
signum sign (x)
sinc sin (pi x) / (pi x)
sine sine
triangle Bracewell's wedge function
y Unit-slope line
1. Create a 100-point rectangle (i.e., a boxcar) function, centered at pixel 1.
fo> testfunc box2. Create a 235-point triangle (i.e, a wedge) function, centered at pixel 41.
fo> testfunc tri npoint=235 oshift=40
Type "help fourier option=sys" for a higher-level description of the fourier package.