This repository provides a set of Python scripts for processing and analyzing dye-tracer data using a deconvolution-based approach.
-
Peak_fitter_so.py
This function file must be located in the same directory asstd_water.pyandbtc_so.py.
It is called internally by these scripts to perform peak fitting during data processing. -
std_water.py
This script processes all dye standard samples prepared in water.
It computes a linear correlation between dye concentration and peak area, which is then used to calibrate water samples for each campaign. -
btc_so.py
This script generates breakthrough curves (BTCs) for all water samples in every campaign.
Results are automatically saved in a folder namedbtc/, with subfolders created for each campaign.
All dye water sample data (including dye standards) can be downloaded from HydroShare at the following link:
🔗 Spectrofluorophotometer Dye Water Samples
Before running the scripts, ensure that the directory paths in your code correspond to the final locations of these files on your computer.
By default, btc_so.py will create a folder named results/ in the working directory defined in the script.
You may modify this directory path to specify a different output location if desired.
- Place all three scripts (
Peak_fitter_so.py,std_water.py,btc_so.py) in the same directory. - Run
std_water.pyto calibrate dye concentration relationships. - Run
btc_so.pyto generate BTC curves for all campaigns. - Review the results saved in the automatically generated
results/andbtc/folders.
- Python 3.8+
- Common scientific libraries:
numpy,pandas,scipy,matplotlib
This project is licensed under the MIT License.
© 2025 Yoon Research Group, University of Florida