CASTEP Bader analysis

How to generate the file ".den_fmt" and where is it?