Skip to contents

Reads a Bruker FID file. The sample's acqus file is used to determine how to interpret the raw binary data: BYTORDA gives the byte order, DTYPA gives the data type (32-bit integer or 64-bit double), TD gives the number of raw (real+imaginary interleaved) data points actually acquired, and SW_h (the spectral width, in Hz) is used to build the acquisition time axis.

Usage

nmr_read_bruker_fid(sample_name)

Arguments

sample_name

A single sample directory. It must contain an acqus file and a fid file.

Value

A data frame with columns time_s (the acquisition time, in seconds, of each complex data point) and fid_complex (the free induction decay, as a complex vector). Returns NULL if the sample has no fid file.

Examples

fid <- nmr_read_bruker_fid("sample.fid")