Skip to content

Commit 5242805

Browse files
authored
Merge pull request #97 from yucongalicechen/readme
add back background description and an example of instruction in README.rst
2 parents 1dec001 + 7a3a8a4 commit 5242805

File tree

1 file changed

+45
-3
lines changed

1 file changed

+45
-3
lines changed

README.rst

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,30 @@
3535
.. |Tracking| image:: https://img.shields.io/badge/issue_tracking-github-blue
3636
:target: https://github.com/diffpy/diffpy.labpdfproc/issues
3737

38-
Tools for processing x-ray powder diffraction data from laboratory sources
38+
Tools for processing x-ray powder diffraction data from laboratory sources.
3939

40-
* LONGER DESCRIPTION HERE
40+
PDFgetX3 has revolutionized how PDF methods can be applied to solve nanostructure problems.
41+
However, the program was designed for use with Rapid Acquisition PDF (RAPDF) data from synchrotron sources.
42+
A key approximation inherent in the use of PDFgetX3 for RAPDF data is that absorption effects are negligible.
43+
This is typically not the case for laboratory x-ray diffractometers, where absorption effects can be significant.
44+
45+
This app is designed to preprocess data from laboratory x-ray diffractometers before using PDFgetX3 to obtain PDFs.
46+
The app currently carries out an absorption correction assuming a parallel beam capillary geometry
47+
which is the most common geometry for lab PDF measurements.
48+
49+
The theory is described in the following paper:
50+
51+
An ad hoc Absorption Correction for Reliable
52+
Pair-Distribution Functions from Low Energy x-ray Sources
53+
Yucong Chen, Till Schertenleib, Andrew Yang, Pascal Schouwink,
54+
Wendy L. Queen and Simon J. L. Billinge, in preparation.
55+
56+
The related experimental data acquisition protocols are described in the following paper:
57+
58+
Protocols for Obtaining Reliable PDFs from Laboratory
59+
x-ray Sources Using PDFgetX3,
60+
Till Schertenleib, Daniel Schmuckler, Yucong Chen, Geng Bang Jin,
61+
Wendy L. Queen and Simon J. L. Billinge, in preparation.
4162

4263
For more information about the diffpy.labpdfproc library, please consult our `online documentation <https://diffpy.github.io/diffpy.labpdfproc>`_.
4364

@@ -85,6 +106,27 @@ and run the following ::
85106

86107
pip install .
87108

109+
Example
110+
-------
111+
112+
Navigate to the directory that contains 1D diffraction patterns that you would like to process.
113+
Activate the conda environment (`conda activate diffpy.labpdfproc_env`) that contains the package and run the following command ::
114+
115+
labpdfproc <muD> <path/to/inputfile.txt>
116+
117+
Here replace <muD> with the value of muD for your sample
118+
and <path/to/inputfile.txt> with the path and filename of your input file.
119+
For example, if the uncorrected data case is called zro2_mo.xy and is in the current directory
120+
and it has a muD of 2.5 then the command would be ::
121+
122+
labpdfproc 2.5 zro2_mo.xy
123+
124+
Please type ::
125+
126+
labpdfproc --help
127+
128+
for more information on the available options.
129+
88130
Support and Contribute
89131
----------------------
90132

@@ -113,7 +155,7 @@ trying to commit again.
113155

114156
Improvements and fixes are always appreciated.
115157

116-
Before contribuing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.labpdfproc/blob/main/CODE_OF_CONDUCT.rst>`_.
158+
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.labpdfproc/blob/main/CODE_OF_CONDUCT.rst>`_.
117159

118160
Contact
119161
-------

0 commit comments

Comments
 (0)