GetSpecXaxisFromH5: x-axis values of mass spectrum.

View source: R/RcppExports.R

GetSpecXaxisFromH5R Documentation

x-axis values of mass spectrum.

Description

GetSpecXaxisFromH5 returns an array of x-axis values of the mass spectrum.

Usage

GetSpecXaxisFromH5(Filename, Type = 1L, writeIndex = 0L)

Arguments

Filename

Path/filename of the HDF5 file.

Type

x-axis type (0: sample index, 1: mass/charge [Th] (default), -1: mass/charge [Th] (2nd TOF), 2: time of flight [microsec], -2: time of flight [microsec] (2nd TOF), 3: frequency [kHz]).

writeIndex

Write index to use for mass calibration (relevant only for abs(Type)== 1 or 2). If the data file has no /TofData/MassCalibration dataset the standard mass calibration parameters are used (same for all values of writeIndex). Default is 0.

Value

A vector containing the x-axis values.

Examples

## Not run: 
GetSpecXaxisFromH5("path/to/file.h5")

## End(Not run)

pasturm/TofDaqR documentation built on July 20, 2024, 9:44 a.m.