Advanced Photon Source

An Office of Science National User Facility


Python-dtxrd scripts are the primary software tools used for simulation and calibration of measurements at 1-BM Optics Test beamline and at X-ray topography laboratory of the APS.

Python-dtxrd is a collection of Python tools developed to aid X-ray diffraction evaluation of single crystals and multi-crystal configurations used in x-ray optics. Among the capabilities of the software are calculations of reflectivity/transmissivity using the dynamical theory of x-ray diffraction, construction of rocking curve maps (for sequential x-ray diffraction topography), calculation of x-ray flux based on PIN diode calibration curves provided by the APS Detector Pool and a few other helpful tools intended to help anyone working with x-ray crystal optics.


Distribution & Impact

The software is distributed under Open Source Licence.

The source code and Python installation script and documentation can be found on the web.

The codes can be executed from any Redhat linux station at the Advanced Photon Source through the BCDA group managed (APSshare) software collection /APSshare/epd/rh6-x86_64/bin/

Debian linux packages are available by contacting the author


Funding Source

This project has been produced using operational funding from the APS, contract DE-AC02-06CH11357.


Please cite

for dtxrd and throughput:S. Stoupin, Y. V. Shvyd’ko, D. Shu, V. D. Blank, S. A. Terentyev, S. N. Polyakov, M. S. Kuznetsov, I. Lemesh, K. Mundboth, S. P. Collins, J. P. Sutter, and M. Tolkiehn, "Hybrid diamond-silicon angular-dispersive x-ray monochromator with 0.25-meV energy bandwidth and high spectral efficiency", Opt. Express 21, 30932 (2013). doi: 10.1364/OE.21.030932

for rctopo: S. Stoupin, S.A. Terentyev, V.D. Blank, Yu.V. Shvyd’ko, K. Goetze, L. Assoufid, S.N. Polyakov, M.S. Kuznetsov, N.V. Kornilov, J. Katsoudas, R. Alonso-Mori, M. Chollet, Y. Feng, J.M. Glownia, H. Lemke, A. Robert, M. Sikorski, S. Song and D. Zhu, "All-diamond optical assemblies for a beam-multiplexing X-ray monochromator at the Linac Coherent Light Source", J. Appl. Cryst. 47, 1329 (2014). doi:10.1107/S1600576714013028

Related Publications

S. Stoupin, V. Blank, S. Terentyev, S. Polyakov, V. Denisov, M. Kuznetsov, Y. Shvyd’ko, D. Shu, P. Emma, J. Maj, et al., Diamond and Related Materials 33, 1 (2013) doi:10.1016/j.diamond.2012.12.009