Radiative Transfer and Thermodynamics.