How can I extract data from the output files of VASP-6.3 (vasprun.xml)?

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Locked
Message
Author
manoj_wijesingha
Newbie
Newbie
Posts: 20
Joined: Wed Sep 21, 2022 6:52 pm

How can I extract data from the output files of VASP-6.3 (vasprun.xml)?

#1 Post by manoj_wijesingha » Tue Nov 01, 2022 3:52 am

I need to extract data from vasprun.xml file to plot DOS or Band structure. So, I need to know that without using py4vasp what are the other possible methods or software to use to extract data from this output file. Thank you

jonathan_lahnsteiner2
Global Moderator
Global Moderator
Posts: 215
Joined: Fri Jul 01, 2022 2:17 pm

Re: How can I extract data from the output files of VASP-6.3 (vasprun.xml)?

#2 Post by jonathan_lahnsteiner2 » Wed Nov 02, 2022 8:38 am

Dear manoj_wijesingha,

To extract data from the vasprun.xml file you could for example use p4vasp.
Another option would be to use vasprun
https://vasprun-xml.readthedocs.io/en/latest/index.html

And if you want to write your own python script you can install an xml reader as
https://docs.python.org/3/library/xml.e ... ttree.html
for your python package and extract the data yourself.
I hope this helps

All the best Jonathan

Locked