calculate the temperature of cold molecules