You can use the pp.x script by choosing "plot_num=21" or "plot_num=17" to generate the Gaussian CUBE format from the output of Quantum Espresso. Then, hopefully, you can run the Bader code "http://theory.cm.utexas.edu/henkelman/code/bader/" directly with that cube file.
You can find the procedures step by step in the following link: https://ma.issp.u-tokyo.ac.jp/en/app-post/2320
Furthermore, in order to generate the ground-state density, you should use PAW for two reasons: 1) remove the core electrons and 2) smooth out the system’s wavefunctions close to the atoms, in order to prevent having to use an extremely large number of plane waves to represent the oscillations close to the atomic nuclei.
You can use the pp.x script by choosing "plot_num=21" or "plot_num=17" to generate the Gaussian CUBE format from the output of Quantum Espresso. Then, hopefully, you can run the Bader code "http://theory.cm.utexas.edu/henkelman/code/bader/" directly with that cube file.
You can find the procedures step by step in the following link: https://ma.issp.u-tokyo.ac.jp/en/app-post/2320
Furthermore, in order to generate the ground-state density, you should use PAW for two reasons: 1) remove the core electrons and 2) smooth out the system’s wavefunctions close to the atoms, in order to prevent having to use an extremely large number of plane waves to represent the oscillations close to the atomic nuclei.