dkriegner / xrayutilities

xrayutilities - a package with useful scripts for X-ray diffraction physicists
http://xrayutilities.sourceforge.io
GNU General Public License v2.0
83 stars 29 forks source link

Kappa diffractometer #132

Closed brussel13 closed 2 years ago

brussel13 commented 2 years ago

I wonder if any thought has been put into implementation of Kappa geometry diffractometers. One could imagine specifying an axis with something like "30x+60y+" to represent that the axis lies in the xy plane at 30 degrees to positive x and 60 to positive y? It's possible there is a way to do this already and I have just missed it.

https://journals.iucr.org/j/issues/1999/05/00/gl0599/gl0599.pdf

dkriegner commented 2 years ago

yes there is a way to do this already. The problem is the bad documentation of this and many other features.

Please look at https://github.com/dkriegner/xrayutilities/blob/main/examples/xrayutilities_experiment_kappa.py and see if this explains it sufficiently.

On Wed, Dec 1, 2021 at 4:58 AM brussel13 @.***> wrote:

I wonder if any thought has been put into implementation of Kappa geometry diffractometers. One could imagine specifying an axis with something like "30x+60y+" to represent that the axis lies in the xy plane at 30 degrees to positive x and 60 to positive y? It's possible there is a way to do this already and I have just missed it.

https://journals.iucr.org/j/issues/1999/05/00/gl0599/gl0599.pdf

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dkriegner/xrayutilities/issues/132, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKZJFONJSNG3S35G7D3IHLUOWMOHANCNFSM5JDOAQRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

dkriegner commented 2 years ago

@brussel13 if the previous comment answers your question, this issue could be closed?

brussel13 commented 2 years ago

Dominik,

Yes, I did find the kappa support. Thank you. Is there any consideration of a more general axis definition? Please feel free to close the this.

Ross


From: Dominik Kriegner @.> Sent: Monday, December 20, 2021 2:26 AM To: dkriegner/xrayutilities @.> Cc: Harder, Ross J. @.>; Mention @.> Subject: Re: [dkriegner/xrayutilities] Kappa diffractometer (Issue #132)

@brussel13https://github.com/brussel13 if the previous comment answers your question, this issue could be closed?

— Reply to this email directly, view it on GitHubhttps://github.com/dkriegner/xrayutilities/issues/132#issuecomment-997701217, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABZ6SOF7JLZY2OF6RXSI7QDUR3SB3ANCNFSM5JDOAQRQ. You are receiving this because you were mentioned.Message ID: @.***>

dkriegner commented 2 years ago

Hi, sorry for late reply.

Is there any consideration of a more general axis definition?

I am not sure if I understand the question. As I see it, one can with the current code define a completely general axis direction. It might need that one adds some fake axis to provide the rotation of the axis but its possible.

I also must omit that non-orthogonal axis is not something I saw often. Since the kappa axis which seems to be the only frequent implemtation is somewhat handles rather easily I see no need for code changes at the moment.

If someone indeed has a goniometer which has multiple weirdly oriented rotation axis one might want to change things a bit. But using some fake axis to provide the tilt of the rotation axis even this can be implemented with the current code (but I agree this is not elegant in this case).

cheers Dominik