Analyzes the THz output and prepares an intensity mesh
To get started, download the executables here
- Edit the settings.txt based on your needs. More information on settings
- Make sure the executable and "settings.txt" is in the same folder.
- For windows, double-click the program.
- There is no executable for Mac OS. Follow the compilation guide.
- Edit the settings.txt based on your needs. More information on settings
- Make sure the executable and "settings.txt" is in the same folder.
- Double-click the program or when using a terminal, you can use
./Analyze_THzcommand
In order to use the program, you will need to provide a "settings.txt" input file.
settings.txt for fft analysis
data_path = ./data
data_method= fft
freq_method = sampling
freq_arg = 2 8 10
id = ceramic2_wav
save_raw =True
verbose = True
settings.txt for peak analysis
data_path = ./data
data_method= peak
id = ceramic2_wav
save_raw =True
verbose = True
- The data path of the data.
- Does not accept the space character.
- The processing method for the data.
- ACCEPTED VALUES:
fft,peak
- The method of producing frequency list.
freq_methodACCEPTED VALUES:single,sampling,interval- For
single- manually / individually supply the requested frequencies infreq_arg. - For
sampling- The list of requested frequency is produced vianumpy.linspace(start=freq_arg[0], end=freq_arg[1], num=freq_arg[2]) - For
interval- The list of requested frequency is produced vianumpy.arange(start=freq_arg[0], end=freq_arg[1], step=freq_arg[2])
- For
- The string to identify the data filenames to be processed.
- NO SPACES
- Setting to save the transformed datasets.
- ACCEPTED VALUES:
True,False
- Setting to maximize output in terminal.
- ACCEPTED VALUES:
True,False
- fft-transformed dataset in
analysis_output/trans_data/ - Final intensity dataset (in x-y space) for each frequency in
analysis_output/main_data/ - The Final dataset filenames have its mapping to chosen frequency in
Freq_Filnames.dat
- Final intensity dataset (in x-y space) for peak-to-peak data in
analysis_output/main_data/ - Final intensity dataset with data interpolation
analysis_output/main_data/
Note: The interpolation is done usingscipy.ndimage.zoomsubroutine. The order in thisd function can be 0-5.
The interpolation is based on spline method. order = 0 is nearest neighbor, order = 1 is Bilinear, and higher order spline corresponds to higher order derivatives.
See more information on spline orders here
Note: Do not use conda to download packages as it creates a large executable (a known issue).
conda create --name thz
conda activate thz
conda install -c conda-forge pip python=3.7
pip install numpy pyinstaller tqdm scipypyinstaller --clean --onefile -i icon.ico --name Analyze_THz main.pyThe executable can be found in dist/