get_single_scan: extract a single scan from tof spectrum

Description Usage Arguments Value Note See Also Examples

View source: R/single_scan.R

Description

extract a single scan from tof spectrum

Usage

1
get_single_scan(toffile, id)

Arguments

toffile

file name

id

index of scan

Value

vector of single scan

Note

the data block is opened with each individual call in scripts it may prove usefull to open it once and make smaller interactions with it.

this function does not check whether the scan is in the range of measurement. Checks will need to be done manually!

Theoretically the full matrix of scans could be loaded similar to get_peak_matrix - but this will take loads of memory and usually is not desirable.

See Also

get_sum_spec which return the precalculated sum of all individual scans

Examples

1
2
3
4
## Not run: 
get_single_scan("toffile.h5",1)

## End(Not run)

bdcaf/rawTof documentation built on July 17, 2019, 1:09 p.m.