nmrglue.fileio.bruker.write_jcamp

nmrglue.fileio.bruker.write_jcamp(dic, filename, overwrite=False)[source]

Write a Bruker JCAMP-DX file from a dictionary

Written file will differ slightly from Bruker’s JCAMP-DX files in that all multi-value parameters will be written on multiple lines. Bruker is inconsistent on what is written to a single line and what is not. In addition line breaks may be slightly different but will always be within JCAMP-DX specification. Finally long floating point values may loose precision when writing.

For example:

##$QS= (0..7)83 83 83 83 83 83 83 22

will be written as

##$QS= (0..7) 83 83 83 83 83 83 83 22

Parameters :

dic : dict

Dictionary of parameters to write

filename : str

Filename of JCAMP-DX file to write

overwrite : bool, optional

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

See also

read_jcamp
Read a Bruker JCAMP-DX file.

Previous topic

nmrglue.fileio.bruker.read_jcamp

Next topic

nmrglue.fileio.bruker.read_pprog

This Page