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 :

filename : str

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

shape : tuple 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_2d : bool, optional

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

read_blockhead : bool, optional

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

Returns :

dic : dict

Dictionary of Agilent/Varian binary file parameters.

data : ndarray

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.

Previous topic

nmrglue.fileio.varian.read_lowmem

Next topic

nmrglue.fileio.varian.write_fid

This Page