CBDModel#
- class cbclib.CBDModel(basis, sample, setup, transform=None, shape=None)[source]#
Prediction model for Convergent Beam Diffraction (CBD) pattern. The method uses the geometrical schematic of CBD diffraction in the reciprocal space [CBM] to predict a CBD pattern for the given crystalline sample.
- Parameters
References
- CBM
Ho, Joseph X et al. “Convergent-beam method in macromolecular crystallography”, Acta crystallographica Section D, Biological crystallography vol. 58, Pt. 12 (2002): 2087-95, https://doi.org/10.1107/s0907444902017511.
- filter_hkl(hkl)[source]#
Return a set of reciprocal lattice points that lie in the region of reciprocal space involved in diffraction.
- generate_streaks(hkl, width, hkl_index=False)[source]#
Generate a CBD pattern. Return a set of streaks in
cbclib.Streakscontainer.
- pattern_dataframe(hkl, width, profile='gauss', hkl_index=False)[source]#
Predict a CBD pattern and return in the
pandas.DataFrameformat.- Parameters
hkl (
ndarray) – Set of reciprocal lattice point to use for prediction.width (
float) – Difrraction streak width in pixels of a predicted pattern.profile (
str) –Line width profiles. The following keyword values are allowed:
tophat : Top-hat (rectangular) function profile.
linear : Linear (triangular) function profile.
quad : Quadratic (parabola) function profile.
gauss : Gaussian function profile.
hkl_index (
bool) – Savehklindices in the streaks container if True.
- Return type
- Returns
A pattern in
pandas.DataFrameformat.