Read NMR data files in the TecMag .tnt file format
Project description
pytnt
Simple Python module for accessing .tnt NMR data files produced by TecMag's TNMR software.
Usage
>>> from pytnt import TNTfile
>>> tnt = TNTfile('my-data-file.tnt')
## The raw NMR FID data
>>> fid_data = tnt.DATA
>>> fid_data.dtype
dtype('complex64')
>>> fid_data.shape
(16384, 1, 1, 1)
## The Fourier-transformed spectrum data
>>> spec_data = tnt.freq_ppm()
>>> spec_data.dtype
dtype('float64')
>>> spec_data.shape
(16384,)
## Some metadata
>>> tnt.date
datetime.datetime(2012, 11, 29, 15, 32, 3)
>>> tnt.magnet_field # in Tesla
2.11
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytnt-0.1.0.tar.gz
(36.9 kB
view hashes)
Built Distribution
pytnt-0.1.0-py2.py3-none-any.whl
(28.0 kB
view hashes)
Close
Hashes for pytnt-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18593a85af62e7dc895e10f3ea2bfef760eefa88bc743fcd6e9562a42d4af8f3 |
|
MD5 | 3aab9d689733aff030c6bb05463efc37 |
|
BLAKE2b-256 | c010f3556a67cb716b3884eef5bd4495de74ea29836a9d72b14f770e98f06d9d |