Skip to content

Simple python module for accessing .tnt data files from TecMag's TNMR software

License

Notifications You must be signed in to change notification settings

chatcannon/pytnt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple python module for accessing .tnt data files from TecMag's TNMR software

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •