def temperature_from_potential(theta,p):
T = theta/((ps/p)**kappa)<EOL>return T<EOL>
Convert potential temperature to in-situ temperature.

    Input:  theta is potential temperature in Kelvin
            p is pressure in mb or hPa
    Output: absolute temperature in Kelvin.