nmrglue.fileio.varian.write_fid_lowmem

nmrglue.fileio.varian.write_fid_lowmem(filename, dic, data, torder='f', repack=False, overwrite=False)[source]

Write a Agilent/Varian binary (fid) file using mimimal amounts of memory.

File is written trace by trace with each trace read from data before writing to reduce memory usage.

Parameters
filenamestr

Filename of Agilent/Varian binary file to write to.

dicdict

Dictionary of Agilent/Varian file parameters.

dataarray_like

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

Write a Agilent/Varian binary.

write

Write Agilent/Varian files to a directory.