Here you can find a short IDL code to compute the dust temperature of a galaxy from its redshift, SFR and stellar mass. These estimates are based on the results of Magnelli et al. (2013; Eq. 5). If asked, this IDL code will also predict the observed monochromatic fluxes of the galaxy, based on Dale & Helou (2002) SED templates.
More details about the code and about the adopted quantities can be found in the associated README file and in the IDL source itself.
IDL code
README file
Tarball containing code