io
read_csdf ¶
Read NMR data from a SIMPSON CSDF file.
Parameters:
-
filename(str) –Path to the
.csdffile. -
simpy_data(Simpy) –Object to populate with spectrum data.
Source code in simpyson/io.py
read_fid ¶
Read NMR data from a SIMPSON FID file.
Parameters:
-
filename(str) –Path to the
.fidfile. -
simpy_data(Simpy) –Object to populate with FID data.
Raises:
-
ValueError–If required header fields (NP, SW) are missing.
Source code in simpyson/io.py
read_simp ¶
Read SIMPSON NMR data from a file into a unified Simpy object.
The file format is determined from the extension if format is not
given explicitly.
Parameters:
-
filename(str) –Path to the SIMPSON output file.
-
format(str or None, default:None) –File format (
'spe','fid','xreim','csdf'). If None, guessed from the file extension. -
b0(str or None, default:None) –Magnetic field strength (e.g.,
'9.4T','400MHz'). Needed for ppm conversion. -
nucleus(str or None, default:None) –Nucleus type (e.g.,
'1H','13C'). Needed for ppm conversion.
Returns:
-
Simpy–Object containing the loaded data.
Raises:
-
ValueError–If the file format cannot be determined or is unsupported.
-
OSError–If the file cannot be read or parsed.
Source code in simpyson/io.py
read_spe ¶
Read NMR data from a SIMPSON SPE file.
Parameters:
-
filename(str) –Path to the
.spefile. -
simpy_data(Simpy) –Object to populate with spectrum data.
Raises:
-
ValueError–If required header fields (NP, SW) are missing.
Source code in simpyson/io.py
read_xreim ¶
Read NMR data from a SIMPSON file saved with the -xreim option.
Parameters:
-
filename(str) –Path to the
.xreimfile. -
simpy_data(Simpy) –Object to populate with xreim data.