bennahugo / algorithm_notebooks

0 stars 0 forks source link

Zernike decomposition of holography beam #1

Open JulienNGirard opened 8 years ago

JulienNGirard commented 8 years ago

This is what I submitted to Kela, PhD student at Rhodes, working on beam modelling.

Zernike decomposition (orthogonal basis over a disk) of beams

Please see the sources:

They are ordered using two parameters and they look like this:

First, by observing solely the basis vectors, I can tell that:

To facilitate the access to this transform, I written/adapted it and uploaded a python notebook which make a decomposition of one slice of "shiftedscaled_ant5LLreal.fits" file available on jake. But can be updated to any holography beam.

Following are test plots to decompose the 1000th slice: slice1000

Decomposition using 100 Zernike polynomials in decomposition order zernike-coefficients-byorder

Same coefficients but in decreasing amplitude order, and selection of the 10 most powerful coefficients: zernike-coefficients-bypower

Comparisons of input data, "full" reconstruction (with 100 coeff), "truncated" reconstruction (with 10 coeff) along with error maps (2nd line). Each line is normalized to the same colormap. zernike-comparison

As expected, the fewer coefficients, the larger the error compared to the input data to fit. Again, the Mean Square Error has to be evaluated properly.

Note about pretty plotting: At the end of the notebook you will find commands to edit pretty pictures (multiple plot, colormap normalized by line and a single corresponding colorbar at the end of the line). This is one way to improve and optimize your figures to put into a paper/thesis. Ok, my bad there are some typos on the plots I show.

bennahugo commented 8 years ago

THanks this is really cool stuff