Skip to content

A converter from PDF format Powder Diffraction File to CSV file.

License

Notifications You must be signed in to change notification settings

marinebox/SmartLab_PDF_pdf2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

SmartLab_PDF_pdf2csv

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.

Description

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.

Requirements

  • python
  • pandas
  • pdfminer.six

How to use

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.

Others

Bug reports, feature requests, and any pull requests are always welcome.

LICENSE

MIT