Skip to content

Frequency demodulation for TDO in pulsed fields

Notifications You must be signed in to change notification settings

loganbvh/tdo-demod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tdo-demod

Frequency demodulation for TDO in pulsed fields


demodulator.py is a collection of Python functions for performing FFT-based frequency demodulation and other initial processing steps for TDO data taken in pulsed magnetic fields. Only two data formats are supported at the moment (see ExampleData), but the demodulation and spline fitting routines are general-purpose, meaning that one only needs to load data into the correct dictionary form in order to process it using demod(), spline_plot(), and data_save(). That form is: osc_dict = {'file': ..., 'dt_fast': ..., 'tdo': ..., 'dt_slow': ..., 'Field': ...}, where file is a string, dt_fast and dt_slow are doubles, and tdo and Field are numpy arrays.

Dependencies:

  • numpy
  • pandas
  • scipy (interpolate, integrate, signal)
  • tqmd (displays progress bar during demodulation)

I have included an example IPython notebook and some example data to demonstrate usage. (The only feature not shown in the examples is the tqmd progress bar for demod().)

I have also included demod.m, the original MATLAB script I wrote to demodulate data having the format of the included LANL data. It's worse than demodulator in pretty much every way, but may be useful to someone.

Author: Logan Bishop-Van Horn, logan.bvh@gmail.com