The following reference information was taken from: http://mtp.jpl.nasa.gov/notes/sat/sat.html

The relationship between static air temperature (SAT or Ts), and total air temperature (TAT or Tt), was given by:

(1)

where is the ratio of the specific heats at constant pressure and volume, and is the Mach Number, which is the ratio of the aircraft's true air speed (TAS or va) , and the local velocity of sound vs .
Now the velocity of sound (to first order) depends only on the static air temperature ( ), where all the quantities have been previously defined except the Gas Constant, R , which for dry air is 287.053 J kg-1 K -1 .

Measuring Temperature

We need to be clear about what is meant by the various temperatures:

The figure to the right shows the relationship between these temperatures. As might be expected, Tr is always less than Tt, and both these approach Ts as the Mach Number approaches zero. All of these temperatures can be be related to the flight speed, but Tm is more involved. As shown by the cyan and white vertical box, Tm may be higher or lower than Tt and Tr due to sensor design, location, and parasitics for any particular flight condition(that is, speed and attitude). In extreme case such as for vortex-producing probe designs or for severe weather conditions, Tm may actually be less than Ts. For a well-designed temperature probe, however, it is possible to achieve Tm > 0.995 Tt.

The parameter that relates the Tr to Tt and Ts is called the recovery factor ( r ), which is defined by:

(19)

Using this definition in Equation (1) we obtain:

(20)

For most total temperature sensors, the recovery factor varies with Mach Number. It is now more common to use the recovery correction defined by:

(21)

Typically, the recovery correction varies with Mach Number below M = 1, but is constant for higher Mach Numbers. The recovery factor is related to the recovery correction by:

(22)

Based on wind tunnel measurements for a specific total air temperature probe, a chart for the dependence of the recovery correction on Mach Number can be created. This in turn can be used in Equation (22) to obtain the recovery factor (r), which in turn, by assuming that Tm very closely equals Tr , allows Equation (20) to be solved for Ts. How well all this can be done depends on how well the total temperature probe is characterized for a number of other important effects:

Time Constant: How fast the probe responds depends on the heat capacity of the sensor parts

Generally the probe manufacturer will provide tables or equations which can be used in the Air Data Computer (ADC) to correct for these effects.

This document provides additional information on the subject of air temperature measurement on aircraft: http://www.grc.nasa.gov/WWW/BGH/stagtmp.html