nmrglue.fileio.bruker.guess_udic

nmrglue.fileio.bruker.guess_udic(dic, data, strip_fake=False)[source]

Guess parameters of universal dictionary from dic, data pair.

Parameters
dicdict

Dictionary of Bruker parameters.

datandarray

Array of NMR data.

strip_fake: bool

If data is proceed (i.e. read using bruker.read_pdata) and the Bruker processing parameters STSI and/or STSR are set, the returned sweep width and carrier frequencies is changed to values that are incorrect but instead can are intended to trick the normal unit_conversion object into producing the correct result.

Returns
udicdict

Universal dictionary of spectral parameters.