Description Usage Arguments Details Value References Examples
afps
returns estimates of phase concentrations using automated full pattern
summation of X-ray powder diffraction data. It is designed for high-throughput cases
involving mineral quantification from large reference libraries.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
lib |
A |
smpl |
A data frame. First column is 2theta, second column is counts |
harmonise |
logical parameter defining whether to harmonise the |
solver |
The optimisation routine to be used. One of |
obj |
The objective function to minimise. One of |
refs |
A character string of reference pattern IDs or names from the specified library.
The IDs or names supplied must be present within the |
std |
The phase ID (e.g. "QUA.1") to be used as internal
standard. Must match an ID provided in the |
force |
An optional string of phase ID's or names specifying which phases should be forced to
remain throughout the automated full pattern summation. The ID's or names supplied must be present
within the |
std_conc |
The concentration of the internal standard (if known) in weight percent. If
unknown then either omit the argument from the function call of use |
omit_std |
A logical parameter to be used when the |
closed |
A logical parameter to be used when the |
normalise |
deprecated. Please use the |
tth_align |
A vector defining the minimum and maximum 2theta values to be used during
alignment (e.g. |
align |
The maximum shift that is allowed during initial 2theta alignment (degrees). Default = 0.1. |
manual_align |
A logical operator denoting whether to optimise the alignment within the
negative/position 2theta range defined in the |
shift |
A single numeric value denoting the maximum (positive or negative) shift, in degrees 2theta, that is allowed during the shifting of selected phases. Default = 0. |
tth_fps |
A vector defining the minimum and maximum 2theta values to be used during
automated full pattern summation (e.g. |
lod |
Optional parameter used to define the limit of detection (in weight percent) of the internal standard
(i.e. the phase provided in the |
amorphous |
A character string of any phase IDs that should be treated as amorphous. These must
match phases present in |
amorphous_lod |
Optional parameter used to exclude amorphous phases if they are below this specified limit (percent). Must be between 0 and 100. Default = 0. |
weighting |
an optional 2 column data frame specifying the 2theta values in the first
column and a numeric weighting vector in the second column that specifies areas of the pattern
to either emphasise (values > 1) or omit (values = 0) when minimising the objective function
defined in the |
... |
other arguments |
Applies automated full pattern summation to an XRPD
measurement to quantify phase concentrations. Requires a powdRlib
library of
reference patterns with reference intensity ratios in order to derive
mineral concentrations. Details provided in Butler and Hillier (2021).
a powdRafps object with components:
tth |
a vector of the 2theta scale of the fitted data |
fitted |
a vector of the count intensities of fitted XRPD pattern |
measured |
a vector of the count intensities of original XRPD measurement (aligned) |
residuals |
a vector of the residuals (measured minus fitted) |
phases |
a dataframe of the phases used to produce the fitted pattern |
phases_grouped |
the phases dataframe grouped and summed by phase_name |
obj |
named vector of the objective parameters summarising the quality of the fit |
weighted_pure_patterns |
a dataframe of reference patterns used to produce the fitted pattern. All patterns have been weighted according to the coefficients used in the fit |
coefficients |
a named vector of coefficients used to produce the fitted pattern |
inputs |
a list of input arguments used in the function call |
Butler, B. M., Hillier, S., 2021.powdR: An R package for quantitative mineralogy using full pattern summation of X-ray powder diffraction data. Comp. Geo. 147, 104662. doi:10.1016/j.cageo.2020.104662
Bish, D.L., Post, J.E., 1989. Modern powder diffraction. Mineralogical Society of America.
Chipera, S.J., Bish, D.L., 2013. Fitting Full X-Ray Diffraction Patterns for Quantitative Analysis: A Method for Readily Quantifying Crystalline and Disordered Phases. Adv. Mater. Phys. Chem. 03, 47-53. doi:10.4236/ampc.2013.31A007
Chipera, S.J., Bish, D.L., 2002. FULLPAT: A full-pattern quantitative analysis program for X-ray powder diffraction using measured and calculated patterns. J. Appl. Crystallogr. 35, 744-749. doi:10.1107/S0021889802017405
Eberl, D.D., 2003. User's guide to RockJock - A program for determining quantitative mineralogy from powder X-ray diffraction data. Boulder, CA.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | #Load the minerals library
data(minerals)
# Load the soils data
data(soils)
## Not run:
afps_sand <- afps(lib = minerals,
smpl = soils$sandstone,
std = "QUA.2",
align = 0.2,
lod = 0.2,
amorphous = "ORG",
amorphous_lod = 1)
afps_lime <- afps(lib = minerals,
smpl = soils$limestone,
std = "QUA.2",
align = 0.2,
lod = 0.2,
amorphous = "ORG",
amorphous_lod = 1)
afps_granite <- afps(lib = minerals,
smpl = soils$granite,
std = "QUA.2",
align = 0.2,
lod = 0.2,
amorphous = "ORG",
amorphous_lod = 1)
#Alternatively run all 3 at once using lapply
afps_soils <- lapply(soils, afps,
lib = minerals,
std = "QUA.2",
align = 0.2,
lod = 0.2,
amorphous = "ORG",
amorphous_lod = 1)
#Automated quantification using the rockjock library
data(rockjock)
data(rockjock_mixtures)
#This takes a few minutes to run
rockjock_a1 <- afps(lib = rockjock,
smpl = rockjock_mixtures$Mix1,
std = "CORUNDUM",
align = 0.3,
lod = 1)
#Quantifying the same sample but defining the internal standard
#concentration (also takes a few minutes to run):
rockjock_a1s <- afps(lib = rockjock,
smpl = rockjock_mixtures$Mix1,
std = "CORUNDUM",
std_conc = 20,
align = 0.3,
lod = 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.