Parameterizing the interstellar dust temperature