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

How to change the screen size or resolution when viewing a small focus image? #166

Open
TWANG006 opened this issue Dec 27, 2023 · 2 comments

Comments

@TWANG006
Copy link

TWANG006 commented Dec 27, 2023

I am new to xrt. I just tried a very simple example with a point source, a toroidal mirror and a screen. The screen was positioned at the focus, as seen by the image below.
image

However, it should see the aberration when zoomed in, as shown in the image below.
image

This can be done by xrtGlow by zooming in the plot with mouse. But I was not able to achieve the same result using the xrtQook GUI with the plots function.

How can I visualize the aberration with a finer screen grid or smaller screen? Thank you so much in advance.

@kklmn
Copy link
Owner

kklmn commented Dec 27, 2023

Hi!

xrtGlow provides a preview, it was not meant to operate millions of rays and make fine histograms. However, you can achieve this in a script where you can accumulate zillions of rays in a selected view region. xrtQook can make such a script for you but you can also write it yourself following the supplied examples and the documentation. xrtQook also makes viewing the documentation easier because it is rendered in the Qook's right panel.

Create a plot that visualizes the local beam of your screen01. Optionally modify its x and z axes in limits and number of bins. Optionally change the color axis to a beam property that you want to emphasize by color. Save the script and run it. You can make all modifications right in the script before you run it, you don't have to re-introduce them in Qook and then re-create the script.

For educational purpose, please put the resulting plot in this thread.

@TWANG006
Copy link
Author

Hi!

xrtGlow provides a preview, it was not meant to operate millions of rays and make fine histograms. However, you can achieve this in a script where you can accumulate zillions of rays in a selected view region. xrtQook can make such a script for you but you can also write it yourself following the supplied examples and the documentation. xrtQook also makes viewing the documentation easier because it is rendered in the Qook's right panel.

Create a plot that visualizes the local beam of your screen01. Optionally modify its x and z axes in limits and number of bins. Optionally change the color axis to a beam property that you want to emphasize by color. Save the script and run it. You can make all modifications right in the script before you run it, you don't have to re-introduce them in Qook and then re-create the script.

For educational purpose, please put the resulting plot in this thread.

Thank you so much for the advice. I will give it a try and post the result here as a future reference.

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