Temp curve and print data to csv