Replies: 1 comment 2 replies
-
Hi, That is a nice little simulation example you got coded up there - very happy to see the api in use. 🥳 🚀 In general, the answer is yes - the intensity is comparable between frames with respect to rendering method (project, centroid or scintillator). It is, of course, not comparable in cases when the flags for polarization, Lorentz, or structure factors are toggled on and off between different frames. But as long as the rendering method stays fixed, the intention of The rendered intensity of a single diffraction event (originating from a single scattering unit) is always proportional to two variables, namely def _get_intensity_factor(
self,
scattering_unit,
lorentz,
polarization,
structure_factor):
intensity_factor = 1.0
if lorentz:
intensity_factor *= scattering_unit.lorentz_factor
if polarization:
intensity_factor *= scattering_unit.polarization_factor
if structure_factor:
if scattering_unit.phase.structure_factors is not None:
intensity_factor *= (scattering_unit.real_structure_factor **
2 + scattering_unit.imaginary_structure_factor**2)
else:
raise ValueError("Structure factors have not been set, .cif file is required at sample instantiation.")
return intensity_factor This means that the summed intensity (over the detector plane) of single diffraction spot (if it originates from a single scattering unit) is comparable between frames. (It should be noted that diffraction peaks as seen on the detector surface typically are the result of many scattering units diffracting to the same position. Imagine for instance a crystal grain comprised of a 1000 tetrahedrons all with a close to similar orientation. The observed diffraction peak will feature overlap between different parts of the scattering grain volume. Still, the results are very much comparable in terms of intensity between frames. Just a side note to clarify how things work. 🙂 ) Hope that helps, |
Beta Was this translation helpful? Give feedback.
-
I am running scans at different orientation angles of the same sample, using Lorentz and structure_factor corrections.
I would like the results from the different scans to be comparable to each other, as if every tetrahedron "sees" the same photon intensity.
Is that the case by default? Does it depend on the deposition method?
If not. Any idea to perform dose normalization afterwards?
Beta Was this translation helpful? Give feedback.
All reactions