C-PLOT

Scientific Graphics and Data Analysis

C.11.2. - Specifying scans



Scans can be retrieved by entering either the scan number (option +S, the default) or the file position number (option -S).

Scan numbers are determined by the #S lines in the file (see below). The file position number is the sequence position of the scan in the file, irrespective of scan number.

When selecting by scan numbers, if there is more than one scan with the same number, the last of them is retrieved. You can specify which instance of a repeated scan number to retrieve by appending a decimal point and an index number to the scan number. For example, selecting scan number 10.3 retrieves the third scan from the start of the file that has scan number 10.

Negative numbers count back from the end of the file and are always considered to be file-position numbers. For example,
fn . -1
will always return the last scan in the file.

You can enter multiple scan numbers to select the scans you are interested in. Scan numbers that end with b are used as background scans. For example,
fn . 12b 13 14b 15b 16 17b
Data in the background scans will be subtracted from the data in the non-background scans that has corresponding x values. Choosing a background scan will force the data to be sorted by x values.

You can read in a group of consecutive scans with
fn . 3-7 10-14
This command would read in scans 3 through 7 and 10 through 14.