next up previous 174
Next: Polynomial baselines
Up: Getting To Know Your Baselines
Previous: Getting To Know Your Baselines


Linear baselines

To take a linear baseline out of your spectrum use the command remove-linear-baseline. For example, I want to remove a linear baseline from the current spectrum. The following command will do it:

$>\!>$ r-l-b

If you are in interactive mode the screen will display the current spectrum with the first of the previously chosen boxes (if any) outlined in dot-dashed lines. If you are using Xwindows click first on the title bar at the top of the plot window - it will be labelled ``PGPLOT Window 1''; depending on how your system is set up clicking elsewhere in the window may give erroneous results. Then either

To see the end result, all you need to do now is type `n'. Remember, to get out of the interactive mode, type `e' with the cursor anywhere inside the plot window. If you want to leave the interactive mode altogther use the command

$>\!>$ s-i n

In non-interactive mode the following exchange is typical. The result in this particular instance is shown in Figure [*]. Remember, EOF is Control-d.

 >> r-l-b 
 Doing R-L-B for quadrant/sub-band #   1
   2 baseline regions currently defined
  Type intervals, one at a time, EOF to finish
 Current units are km/s  
 
 # [   46.00,   56.03] 30 50
 # [   80.00,   90.02] 80 100
 >>

\includegraphics[angle=-90,width=3.5in]{sc8_rlb.ps}
Figure: The upper spectrum is the original after averaging several observations. Basically in this case there is an offset in the baselevel due to the continuum background of the source (G34.3). Below it is the effect of removing a linear baseline tied to clean (line-free) regions of the spectrum.



next up previous 174
Next: Polynomial baselines
Up: Getting To Know Your Baselines
Previous: Getting To Know Your Baselines

Specx Cookbook
Starlink Cookbook 8
Henry Matthews, Tim Jenness
1st March 1997
E-mail:P.W.Draper@durham.ac.uk

Copyright © 2008 Science and Technology Facilities Council