nmrglue.fileio.bruker.read_jcamp
- nmrglue.fileio.bruker.read_jcamp(filename, encoding='UTF-8')[source]
Read a Bruker JCAMP-DX file into a dictionary.
Creates two special dictionary keys _coreheader and _comments Bruker parameter “$FOO” are extracted into strings, floats or lists and assigned to dic[“FOO”]
- Parameters
- filenamestr
Filename of Bruker JCAMP-DX file.
- encodingstr
Encoding of Bruker JCAMP-DX file. Defaults to the system default locale
- Returns
- dicdict
Dictionary of parameters in file.
See also
write_jcamp
Write a Bruker JCAMP-DX file.
Notes
This is not a fully functional JCAMP-DX reader, it is only intended to read Bruker acqus (and similar) files.