gsplitpdos and gsumpdos for extracting PDOS from DOSCAR (Xiao san) gsplitpdos: extract DOSCAR to Total DOS and PDOS for each atom (not each element). gsumpdos: sum PDOS for selected atoms. pdos.py: plot Total DOS and PDOS for each element. When the folder includes POSCAR DOSCAR OUTCAR PROCAR put pdos-all.py gsplitpdos and gsumpdos in this folder. (1) run "python pdos-all.py", it generates txt files of PDOS for each element and save all figures for Total DOS and PDOS for each element. (2) run "python pdos-all.py?? +? filename", it plots the DOS of the selected file. There is one error "grep: write error" when running "python pdos-all.py" it's because I use? "os.system("bash ./gsplitpdos")" But it seems to be no effect in the output files. If I remove the line 28 "os.system("bash ./gsplitpdos")", this error disappears. In this case, I need to run "bash ./gsplitpdos" before "python pdos-all.py"