This python program reads the diffraction angles and diffraction intensities from a PDF format Powder Diffraction File (PDF) which is outputted by Rigaku's SmartLab Studio ii and outputs these data as a CSV file.
In the field of material science, X-ray diffraction(XRD) is an important method to determine if the desired crystalline phase is fabricated.
In the laboratory, it is sufficient to be able to compare the obtained diffraction pattern with a powder diffraction file(PDF) using the analysis software. On the other hand, when making an XRD chart, it is useful to be able to output powder diffraction data as a numerical file such as CSV.
Rigaku's SmartLab Studio ii is an integrated software to control XRD instruments and analyze diffraction patterns. This software can output powder diffraction files. However, the output format is PDF(portable document file) only, and can not be output in other formats such as CSV.
This program supports material researchers by reading the diffraction angles and intensities from a PDF format Powder Diffraction File (PDF) which is outputted by Rigaku's SmartLab Studio ii and output these data as a CSV file.
- python
- pandas
- pdfminer.six
python3 pdf2csv.py
pdf2csv.py converts all powder diffraction files in the same directory. The CSV files will be created on the same directory.
python3 pdf2csv.py -h
Show help message.
Bug reports, feature requests, and any pull requests are always welcome.