There are serious non-linear errors in flow measurement of ultrasonic heat meter utilizing time differencemethod.This paper gives detailed calculation and analysis to explain that the errors are caused by the changes of flu-id temperature. To solve this problem,a temperature compensation algorithm based on least squares curve fitting isproposed. Temperature compensation is realized through establishing a non-linear mapping model between flow rateand fluid temperature. However,each meter has different metrol...