We developed an automatic code to determine some physical parameters describing the radiation of a simple one-temperature black body model and implemented it to calculating the temperatures and masses of molecular clouds in several star formation regions, using the observed IR emission fluxes for the chosen sources. Calculations show that the used commonly simplifications need to study in more detail for estimating the accuracy of computing results.