In this paper introduced were the analysis method of thermal neutron diffraction spectra and how to make the input files (parameters and data ) and to execute the RIETAN profile refinement program in detail.As an example
the refinement process of a rare-earth permanent magnetic compound Ho 2Fe 9Ga 8 was illustrated.