Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

q-chi 2dintegration for grazing incidence #2320

Open
ljr-1959 opened this issue Nov 4, 2024 · 2 comments
Open

q-chi 2dintegration for grazing incidence #2320

ljr-1959 opened this issue Nov 4, 2024 · 2 comments

Comments

@ljr-1959
Copy link

ljr-1959 commented Nov 4, 2024

Kudo's for adding grazing support.
Am I correct that there are no chigi_deg and chigi_rad AZMUTHAL_UNITS such that one cannot create a q-chi plot for the fiber/grazing geometry? (Equivalent to transform_polar of pygix)
If so, can this please be added. That transform is powerful when constructing pole-figures...
Thanks

@EdgarGF93
Copy link
Collaborator

EdgarGF93 commented Nov 5, 2024

Hello, pyFAI allows now to easily make a qip (in-plane) vs qoop (out-of-plane) representation of the pattern, that is the one that generates the missing wedge. This representation is useful for fiber/grazing-incidence, it's sensitive to incident_angle/tilt_angle, etc.
If you want to make a q-chi plot representation, (if I understand you correctly), this is the classical integrate2d result of pyFAI:

from pyFAI import load
from pyFAI.calibrant import get_calibrant
from pyFAI import detector_factory
from pyFAI.gui.jupyter import plot2d, subplots
from pyFAI.azimuthalIntegrator import AzimuthalIntegrator

ai = AzimuthalIntegrator(dist=0.1, wavelength=1e-10, detector=detector_factory("Pilatus1M"))
cal = get_calibrant('LaB6')
data = cal.fake_calibration_image(ai=ai)
res2d = ai.integrate2d(data=data, npt_rad=1000)

fig, ax = subplots()
plot2d(res2d, ax=ax)
ax.get_images()[0].set_clim(-1,1)

image

But this q is the modulus of the scattering vector, so it's the standard reshaping (or caking), to analyze textures in powder diffraction (so, it's not really specific for grazing-incidence)

If I'm missing something on your request, please tell me :)

@ljr-1959
Copy link
Author

ljr-1959 commented Nov 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants