>> set-interactive Interactive plotting? (Y/N) [Y] N
Now SPECX can carry out things like remove-linear-baselines without plotting the spectra on the screen, and asking lots of questions first. The advantage is when you want to use the same regions for removing baselines, or a similar operation like find-spectrum-statistics in several spectra. For instance, I want to use the regions from -40 to -20 km/s and from 20 to 40km/s for removing a linear baseline from several spectra, put them into a file called gooddata.sdf and have it repeat the command until I'm done. I would write the following command file, which I'll call rlb.spx:
r-g-d\?\ r-l-b\-40 -20\20 40\ wr-sp\1\
The ? in the first line will prompt me for a scan number every time I run the command file. I have specified the linear baseline fit regions between the backslashes, which indicate where responses are be expected to anticipated questions from the SPECX command. I put the data in file number 1 with the wr-sp command, which is gooddata.sdf (I'm assuming you had no other open files). To run the command file type
@rlb
and SPECX will ask which scan you want to read (because of the ?). Alternatively, you could type, say,
@rlb 137
and the file will process scan 137, without any further ado.
Specx Cookbook Reduction of millimetre wave data