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 :

filename : str

Filename of Agilent/Varian binary file to write to.

dic : dict

Dictionary of Agilent/Varian file parameters.

data : array_like

Array of NMR data.

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

Trace ordering. See read() for details.

repack : bool, optional

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

correct : bool, 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.

overwrite : bool, 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.

Previous topic

nmrglue.fileio.varian.read_fid_lowmem

Next topic

nmrglue.fileio.varian.read_fid_ntraces

This Page