Source: cli/stream/spect_calc.pro
spect_calc Calculate a ratio or other combination from streams of the current dataset and add them as new streams. Usage: spect_calc, index, value Arguments: index int input The stream index (2-element array) value float input The value to combine with the stream. Keywords: ratio If set, then form the ratio of the 2 streams (default action). difference If set, then form the difference between the streams. product If set, then form the product of the 2 streams. sum If set, then form the sum of the 2 streams power If set, then raise a stream to a power. inverse If set, then form the inverse of the first stream (the scalar value is ignored). operation string The symbolic operation to perform. scalar_first If set, then the calculation is <value> <op> <stream> rather than <stream> <op> <value> panel int The panel index into which to insert then new stream (if not given, then a new panel is created). Notes: Only one type of operation can be applied for each invocation. Datasets: SPECT History: Original (after rate): 7/5/02; SJT