This is a comprehensive collection of data analysis routines for analyzing time-domain terahertz spectroscopy (TDTS) data with Igor Pro, a data analysis application provided by WaveMetrics.
In order to run these procedures I recommend saving the .ipf files in the "User Files Directory" of Igor so that the procedures can be accessed by any Igor experiment. Each .ipf file has a control panel GUI which makes running the analysis routines easy. The GUI can be accessed either through the macros menu or simple by pressing Ctrl-2. Detailed instructions for using each piece of code can be found at the top of each .ipf file.
Detailed instructions for using each piece of code can be found at the top of each .ipf file. However, a brief summary of the code is as follows:
The main analysis procedure "NJL_TDTSAnalysisCode.ipf" was written to interface with a data processing procedure written by laserstonewall. I recommend saving this procedure in the "User Files Directory" along with the routines provided here for best results and improved capabilities.
The main analysis procedure, "NJL_TDTSAnalysisCode.ipf" file, is a data analysis routine which is capable of loading raw data from a TDTS experiment, performing analysis according to user specifications, and producing publishable quality plots. In this routine, the user specifies the type of sample being investigated - possibilities include single crystals, thin films, or single crystals mounted to a substrate - and also if the experiment was performed as a function of either temperature or magnetic field. Although, the code should be easily adaptable to analyze data as a function of any parameter, it's just a matter of naming conventions. This procedure is also capable of analyzing data taken with the fast rotating polarizer technique developed in the Armitage lab.
The routine is applicable to dielectric conductors, magnetic insulators, and superconducting samples and is capable of computing the complex conductivity, the complex magnetic susceptibility, and Faraday rotation in both the linear and circular bases. It can also perform frequency cuts at user specified frequencies for all the above quantities.
Also included is a procedure "NJL_MagneticSusceptibilityCode.ipf" which allows the user to quickly calculate the complex magnetic susceptibility of a sample from a TDTS measurement. This procedure is a greatly condensed and simplified version of the main analysis procedure described above. Here, the user feeds the program only the complex raw transmission of a sample (with naming conventions described in the code) and then the procedure calculates the complex index of refraction and complex magnetic susceptibility of the sample. For more information regarding the method for calculating the complex magnetic susceptibility, please see Chapter 2 of my Ph.D. thesis.
I ask that you please give credit by citing this repository if using or adapting this code for your own research. Also, If you compute the magnetic susceptibility of your sample with these procedures, then please cite my Phys. Rev. Lett. publication from which that analysis originated.
These procedures were developed in the group of Professor N. Peter Armitage in the Johns Hopkins University Physics Department.
If you would like help using this code, found this code useful, or have suggestions for improvements please feel free to contact me at Laurita.Nicholas@gmail.com.