fixing TGV data analysis script.