Set-up loop to go through files, calculate RTDs, then save results