Rainfall estimation using kdp and hydrometeor

Hello all,
I have been trying to use the code given in Filtering and retrievals on raw Swiss C-band data — Project Pythia Cookbook Template
to calculate rainfall. Can anybody explain to me the detailed procedure of how to prepare a temperature profile for radar object? If somebody has used other nwp models apart from Cosmo, please suggest I am not familiar with the cosmo model.