nmrglue.fileio.spinsolve.read
- nmrglue.fileio.spinsolve.read(dir='.', specfile=None, acqupar='acqu.par', procpar='proc.par')[source]
Reads spinsolve files from a directory When no spectrum filename is given (specfile), the following list is tried, in that specific order [“nmr_fid.dx”, “data.1d”, “fid.1d”, “spectrum.1d”, “spectrum_processed.1d”] To use the resolution enhanced spectrum use the ‘./Enhanced’ folder as input. Note that spectrum.1d and spectrum_processed.1d contain only data in the frequency domain, so no Fourier transformation is needed. Also, use dic[“spectrum”][“xaxis”] to plot the x-axis
- Parameters
- dirstr
Directory to read from
- specfilestr, optional
Filename to import spectral data from. None uses standard filename from: [“nmr_fid.dx”, “data.1d”, “fid.1d”, “spectrum.1d”, “spectrum_processed.1d”]
- acquparstr, optional
Filename for acquisition parameters. None uses standard name.
- procparstr, optional
Filename for processing parameters. None uses standard name.
- Returns
- dicdict
All parameters that can be present in the data folder: dic[“spectrum”] - First bytes of spectrum(_processed).1d dic[“acqu”] - Parameters present in acqu.par dic[“proc”] - Parameters present in proc.par dic[“dx”] - - Parameters present in the header of nmr_fid.dx
- datandarray
Array of NMR data