nmrglue.fileio.varian.write

nmrglue.fileio.varian.write(dir, dic, data, fid_file='fid', procpar_file='procpar', torder=None, repack=False, overwrite=False)[source]

Write Agilent/Varian files to a directory.

Parameters
dirstr

Name of the directory to write to.

dicdict

Dictionary of Agilent/Varian parameters.

dataarray_like

Array of NMR data to write.

fid_filestr, optional

Filename of binary (fid) file in directory to write to.

procpar_filestr, optional

Filename of procpar file in directory to write to.

torder{None, ‘r’, ‘o’, ‘f’ or a Python function} , optional

Description of the mapping of traces in the file to the NMR data matrix. None (the default) will attempt to find this automatically which is typically fine for most NMR experiments. See read() for additional details.

repackbool, optional

True to repack file and block headers. False (default) leaves these as is.

overwritebool, optional

Set to True to overwrite existing files, False will raise a Warning if files already exist.

See also

write_lowmem

Write Agilent/Varian files using mimimal memory

read

Read Agilent/Varian files.