nmrglue.fileio.varian.write_fid

nmrglue.fileio.varian.write_fid(filename, dic, data, torder='flat', repack=False, correct=True, overwrite=False)[source]

Write a Agilent/Varian binary (fid) file.

Parameters
filenamestr

Filename of Agilent/Varian binary file to write to.

dicdict

Dictionary of Agilent/Varian file parameters.

datandarray

Array of NMR data.

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

Trace ordering. See read() for details.

repackbool, optional

True to repack file and block headers. False leave as is.

correctbool, optional

True (the default) will correct mis-sized np and nblocks values in dic. False will write out the incorrect values to the file header and record the full data set, the resulting file will not be readable by nmrglue.

overwritebool, optional

Set True to overwrite an existing file, False will raise a Warning if the file exists.

See also

write_fid_lowmem

Write a Agilent/Varian binary file using mimimal amounts of memory

write

Write Agilent/Varian files to a directory.