channel command |
channel -get spname indices channel -set spname indices value
Allows you to set or get the values of channels in a spectrum.
This commands allow you to retrieve and or modify the values of a spectrum channel. The -get qualifier fetches the values of a channel, while the -set qualifier sets the value of a channel. In the syntax above:
The result, on success, is the value of the channel prior to the command.
channel -get OnedSpectrum 128
Returns the value of the 128'th channel in OnedSpectrum.
channel -set TwodSpectrum {123 456} 100
Sets channel (123,456) of TwodSpectrum to 100.
for {set i 0 } { $i < 128 } {incr i } { for {set j 0} {$j < 128 } {incr j } [ channel -set TwodSpectrum "$i $j" 0 ]}
Clears the bottom 128x128 block of channels in TwodSpectrum. Note that {$i $j} will not work because the substitutions are inhibited within {}'s.
Last Modified: October 28, 2003
by: fox@nscl.msu.edu
© Copyright NSCL 1999, All rights reserved