next up previous
Next: Spectrum Statistics
Up: A More Complete Introduction to SPECX
Previous: The special case of the 750-MHz mode

Arithmetic With Spectra

  As you saw before when I was removing baselines, you can subtract the X register from the Y register and have the difference become the new X register. The command is subtract-spectrum. SPECX can also add the X and Y together and average them. The commands are add-spectrum and average-spectrum. average-spectrum (ave is enough) is the usual choice, and uses weights when averaging that are determined by the integration time divided by the square root of the system temperatures of the two spectra.

While I'm on the subject, SPECX also has multiply-spectrum and divide-spectrum. Skipping the conversational mode the commands would be e.g.:

$\gt\!\gt$ mult 2.0

and

$\gt\!\gt$ div 7.8

The defaults factors are set to unity (they used to be zero).



 

next up previous
Next: Spectrum Statistics
Up: A More Complete Introduction to SPECX
Previous: The special case of the 750-MHz mode

Specx Cookbook Reduction of millimetre wave data
Starlink Cookbook 8
Henry Matthews, Tim Jenness
1st March 1997
E-mail:ussc@star.rl.ac.uk

Copyright © 2005 Council for the Central Laboratory of the Research Councils