Skip to main content

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


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)

Uploaded Source

Built Distribution

pytnt-0.1.0-py2.py3-none-any.whl (28.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page