VARY Name
VARY Purpose
Execute IDL code varying parameters using sliders.
Category
Calling Sequence
vary
Inputs
Keyword Parameters
Keywords
/LAST execute last setup if any. Outputs
Common Blocks
vary_com Notes
Notes: Useful to execute IDL code or a routine using
a number of parameters with various values. The parameters
may be given sliders that can vary their values. Also
up to 5 existing variable may be specified as part of
the IDL code to execute. The variables and slider
parameters are indicated in the IDL code text using special
characters to tag each: variables start with # and
slider parameters start with $. Example IDL code:
tv,shift(#img1,$xshift,$yshift),chan=2
The image in img1 will be shifted by xshift and yshift
(controlled by 2 sliders) and displayed in the green channel.
This routine will prompt for the IDL code text and the
min, max, and default for each slider parameter.
The IDL code may also be a call to a procedure, so complex
operations are possible. The entered IDL code will be
modified: the variables will be replaced with P1, P2, ...
and the $ tags for the parameters will be dropped when
the code is displayed in the slider widget.
Modification History
R. Sterner, 2005 May 13
R. Sterner, 2005 Jul 11 --- Added /uniq to slider param call.
Copyright (C) 2005, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.