Repository to hold the importing and processing of TAM data
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Importing and processing of TAM data
To begin using this app is very simple. Just verify you have the necessary prequisites and follow the installation instructions.
Make sure MATLAB is installed. It is available for download in the Software Distribution section under the Help tab after you log into Canvas. https://canvas.ubc.ca/
- Clone the repo to your PC
git clone https://github.com/SolarSpec/TAMviewer.git
- Install the application
Click on the .mlappinstall file in your repository to open and install in MATLAB - Browse the APPS header
You will find the recently installed application and can add it to your favourites
To begin, the user must load some arbitrary TAM data from a selected folder by pressing the "Load Data" button. Please note that the total number of files in the folder must be a square number (e.g. 2^2 = 4 files, 3^2 = 9 files, 4^2 = 16 files, etc.) to ensure the image created is a square. A UI prompt will appear that asks the user to direct the GUI to the desired TAM data, while iterating through multiple magnitudes to find the correct step size. This process is used to adjust the pixel coordinates to create a square image and separate the data properly. If a certain channel is selected for the first .tdms file and is not present in the others, then the script follows a specified heirarchy of channels to assign: ["final A-B";"A-Test dOD"] for processed data and ["B-Test raw"; "A-Test raw"] for raw data. For ease of use, the correctly specified channel is applied to the KinPlot tab title when a pixel is selected, highlighted in green whereas a backup channel is highlighted in red.
After a channel is chosen, the app plots the average data and sets the T0 time. Next the app will generate the fit functions to create a pixel plot that relates to each unique file. Finally, three more useful interactive axes in the tab group at the bottom of the GUI are created for an in-depth analysis of the aggregated files. On the left panel, the user has the ability to switch between an "Intensity Derived" or "RGB" colour scheme. The former creates brighter colours corresponding to larger amplitudes whereas the latter uses colours that are similar in brightness but relates the T50% values (i.e. they are representative of the T50% values). The T0 time automatically sets to the highest peak as this is the shortest time where the data is not affected by the electronic rise time; however, the edit field on the left panel allows for manual selection as well as the interactability of the ROI line in the average plot itself. The colour scale time fields allow the user to manually input the times that determine the full colour range of the pixel plot. The shorter the range, the more distinct the colours.
The user can select a specific pixel of the image plot that will update the KinPlot axes with the selected kinetics data. The HistPlot shows the distribution of the T50%'s for all pixels and its axes scale is determined by the colour scale values. The BkgrdPlot illustrates the DC background levels of each file, oriented in the same way as the pixel plot. The "Select Region" button allows the selection of multiple pixels/files in the image plot which will then reflect on the bottom kinetics tab as an averaged blue trace of the regions instead of the individual selected pixel coloured as a red trace. The user has the ability to add multiple regions or remove all of them and start over. Finally, the user can export certain variables to the workspace for easy investigation which include, the x and y data of all the files, pixel coordinates, the T50 times and the fit coefficients. The "Export Data" button will create a new directory called "ExportedData" which includes an image plot .jpg file and .mat files of the image data, ROI region points, pixel, histogram and T50 data.
This app is currently lacking in any examples. Coming soon!
For more information on any of the internal functions, please refer to the MATLAB Documentation
- Plot the sorted X and Y coordinates in a pixel plot
- Plot the Average Kinetic Trace of all files
- Select the Kinetic Trace of a specified file
- Find or input the T0 time
- Calculate the T50% automatically
- Plot a histogram of each file's T50 value
- Plot a heatmap of all the DC background values that correspond to the sorted pixel plot
- Select multiple regions to change average of selected pixels
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the BSD 3-Clause License. See LICENSE.txt for more information.
SolarSpec - SolarSpec Website - vidihari@student.ubc.ca
Project Link: https://github.com/SolarSpec/TAMviewer
