nmrglue.fileio.jcampdx.read

nmrglue.fileio.jcampdx.read(filename)[source]

Read JCAMP-DX file

Parameters
filenamestr

File to read from.

Returns
dicdict

Dictionary of parameters. In the case of multiple data sections in file, parameters of first NMR SPECTRUM or NMR FID are read to base level and others are stored under _datatype_<DATATYPE> keys in the dictionary.

datandarray

Array of NMR data, or a list NMR data arrays in order [real, imaginary]