pyprocar icon indicating copy to clipboard operation
pyprocar copied to clipboard

Export bandplot data

Open SubeenLim opened this issue 1 year ago • 1 comments

For developer,

For comparing scf band structure and wannier band structure, I exported pyprocar bandplot data. band.py

pyprocar.bandsplot(code='qe', fermi = 7.7617, fermi_shift = 7.7617, elimit = [3.7617,11.7617], mode='plain', dirname=data_dir, export_data_file=os.path.join(data_dir,'data.csv'))

data.csv is well produced after pyprocar code. But kpath_value is not k-points in crystal coordinates. KakaoTalk_20241129_180656787

From #159 Getting data issue, I updated package.

conda create -n pyporcar python==3.9
conda activate pyprocar
git clone [email protected]:romerogroup/pyprocar.git
cd pyprocar
pip install -e .

Is there any way to export k-points in crystal coordinates?

Best regards, subeen

SubeenLim avatar Nov 29 '24 09:11 SubeenLim

Dear @SubeenLim,

Although not a direct answer to your question, I use a script to plot wannier bands for VASP calculations: https://github.com/uthpalaherath/MatSciScripts/blob/master/plotWannierBands.py that takes care of this problem.

It takes the Fermi energy from a VASP OUTCAR file, but you could modify it to parse it from the QE output.

Hope that helps.

Best, Uthpala

uthpalaherath avatar Nov 30 '24 00:11 uthpalaherath