nmrglue.fileio.varian.read_fid

nmrglue.fileio.varian.read_fid(filename, shape=None, torder='flat', as_2d=False, read_blockhead=False)[source]

Read a Agilent/Varian binary (fid) file.

Parameters
filenamestr

Filename of Agilent/Varian binary file (fid) to read.

shapetuple of ints, optional

Shape of the binary data. If not provided data is returned as a 2D array. Required if more than one trace per block (non-standard).

torder{‘f’, ‘n’, ‘o’}

Trace order. See read() for details.

as_2dbool, optional

True to return the data as a 2D array, ignoring the shape and torder parameters.

read_blockheadbool, optional

True to read the Agilent/Varian blockheaders(s) into the returned dictionary. False ignores them.

Returns
dicdict

Dictionary of Agilent/Varian binary file parameters.

datandarray

Array of NMR data.

See also

read_fid_lowmem

Read a Agilent/Varian binary file using minimal amounts of memory.

read

Read Agilent/Varian files from a directory.