Jashcraf / poke

Poke (pronounced poh-keh) is a Polarization Ray Tracing and Gaussian Beamlet module for Python
BSD 3-Clause "New" or "Revised" License
32 stars 6 forks source link

6.1 Troubleshooting an Arbitrarily Aberrated GBD System #17

Closed Jashcraf closed 1 year ago

Jashcraf commented 1 year ago

Tilt applied to Hubble_Test.zmx secondary mirror of 0.05 deg in the x direction. Evaluating field at marginal focus, and using the on-axis ray transfer matrix as the matrix for the entire system.

Wavelength = 1.65um

image

Pardon the centering but the FFT centers by default, and GBD is computing the field at the real position on the image plane, which is about a detector position away. These are plotted on the same pixel scale.

Jashcraf commented 1 year ago

Defocus leaves something to be desired, I wonder what's different image

Here's the ray transfer matrix image

Jashcraf commented 1 year ago

Try using the entire ray transfer matrix! Or possibly doing the vignetting after the raytracing instead of before

Jashcraf commented 1 year ago

Vignette issue was with how ZOS pre-allocates a square grid of rays but lets the user put in fewer rays than allocated, so there were a bunch of trailing zeros. This was fixed in the latest commit

Jashcraf commented 1 year ago

After iterating with Dr. Worku I've gotten this for the tilt test image

We need to do all of the gaussian beam evaluation on the plane transverse to the individual gaussian beam. But something is still off. I'm not rotating the decenter parameter, what happens if I apply the same transformation there?

Jashcraf commented 1 year ago

Using the same rotation on the decenter parameter didn't work. Maybe it has to do with the OPD?

Jashcraf commented 1 year ago

Maybe we need to get rid of the centroid offset? Nah it spreads the beam around too much

Jashcraf commented 1 year ago

Implemented Dr. Worku's method after iterating, we now get approximately equivalent results!

On-Axis

image

0.05 deg tilt on M2

image

5mm defocus

image

Closing issue, method will be elaborated on in the manuscript.