{"id":905,"date":"2016-06-30T14:32:51","date_gmt":"2016-06-30T21:32:51","guid":{"rendered":"https:\/\/live-optics-wp.pantheonsite.io\/milster\/?page_id=905"},"modified":"2016-06-30T14:55:07","modified_gmt":"2016-06-30T21:55:07","slug":"aberrations-panel","status":"publish","type":"page","link":"https:\/\/wp.optics.arizona.edu\/milster\/resources\/optiscan-simulation-program\/optiscan-help-desk\/index\/aberrations-panel\/","title":{"rendered":"Aberrations Panel"},"content":{"rendered":"<p>The\u00a0<em>Aberrations Panel<\/em>\u00a0is used to add aberration into the lens calculations.<\/p>\n<h3>Aberration Calculation Portion :<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-934\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/aberration_panel_none.jpg\" alt=\"aberration_panel_none\" width=\"505\" height=\"152\" data-id=\"934\" srcset=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/aberration_panel_none.jpg 505w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/aberration_panel_none-300x90.jpg 300w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/p>\n<hr \/>\n<p><strong>None<\/strong><\/p>\n<p>No aberration calculations are performed.<\/p>\n<hr \/>\n<p><strong>Custom\u00a0File<\/strong><\/p>\n<p>The aberration data is loaded from the specified file.\u00a0 Here,\u00a0<em>opd1<\/em>\u00a0contains the aberration data:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-912\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/abberation_panel.custom.gif\" alt=\"abberation_panel.custom\" width=\"530\" height=\"133\" data-id=\"912\" \/><\/p>\n<p>The aberration data should be stored in the project&#8217;s\u00a0<em>optics<\/em>\u00a0folder.<\/p>\n<p><strong>Ray\u00a0Trace<\/strong><\/p>\n<p>Use a Ray Trace to calculate the aberrations.\u00a0 If the &#8220;Save Result&#8221; check box is checked, then the resulting aberration calculation is saved to the specified file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-914\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/abberation_panel.raytrace.gif\" alt=\"abberation_panel.raytrace\" width=\"513\" height=\"165\" data-id=\"914\" \/><\/p>\n<p>Here, the Ray Trace calculation is stored in a file called\u00a0<em>opd1.mat<\/em>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-915\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/abberation_panel.raytrace2.gif\" alt=\"abberation_panel.raytrace2\" width=\"511\" height=\"136\" data-id=\"915\" \/><\/p>\n<p>The output of the ray trace calculation is stored in the project&#8217;s\u00a0<em>optics<\/em>\u00a0folder.<\/p>\n<p><strong>Zernike<\/strong><\/p>\n<p>Use the Zernike polynomial coefficients, which are found in the specified Zernike coefficient file, to calculate the aberrations.\u00a0 Here, the file\u00a0<em>zerndata.mat<\/em>\u00a0contains the required Zernike coefficients:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-916\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/abberation_panel.zernike.gif\" alt=\"abberation_panel.zernike\" width=\"516\" height=\"131\" data-id=\"916\" \/><\/p>\n<p>Zernike coefficient files should be stored in the project&#8217;s\u00a0<em>optics<\/em>\u00a0folder. \u00a0 The .mat file must contain the vector\u00a0<em>zvec<\/em>. This file needs to be created before being able to use this function. To create it, first set up a\u00a0<em>zvec<\/em>\u00a0variable like the one in the example below. Afterwards use this command:\u00a0<em>save &#8220;filepath\\filename&#8221; zvec<\/em>. Remember that this should be in the project&#8217;s\u00a0<em>optics<\/em>\u00a0folder. The information box titled\u00a0<em>Zernike File<\/em>\u00a0should show the correct directory to save the file in. To edit the file just load it into the Matlab workspace and save it again.<\/p>\n<p><em>zvec<\/em>\u00a0has the following format:<\/p>\n<p>zvec(1) = order of the Zernike expansion.<\/p>\n<p>zvec(2) = sampling in the pupil.\u00a0 This is the number of points across the pupil diameter that are used to calculate the initial Zernike distribution.\u00a0 The Zernike phase map resulting from the calculation will be resampled according to the sampling Npupil specified in the optics module, so it is recommended that zvec(2) be greater than Npupil.<\/p>\n<p>zvec(3) through zvec(<em>i<\/em>) contain the Zernike coefficients as specified in Malacara,\u00a0<u>Optical Shop Testing<\/u>.<\/p>\n<p>Example:<\/p>\n<p>zvec = [3 100 0 0 0 0 0 0 0 0 0.33 0];<\/p>\n<p>This zvec produces a third-degree Zernike expansion that uses 100 points across the diameter of the pupil for the initial calculation.\u00a0 This particular choice of coefficients exhibits 1.0 wave of coma in the y direction with 0.33 waves of tilt.<\/p>\n<p><strong>Zernike Polynomials U<\/strong><sub><strong>nm<\/strong><\/sub><strong>\u00a0Up to Fourth Degree<\/strong><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td>\n<p align=\"center\"><strong>zvec(i)<br \/>\ncomponent<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>n<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>m<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>n-2m<\/strong><\/p>\n<\/td>\n<td><strong>Zernike polynomial<\/strong><\/td>\n<td>\n<p align=\"center\"><strong>Monomial representation<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>Meaning<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<hr \/>\n<\/td>\n<\/tr>\n<tr>\n<td>zvec(3)<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>Constant Term<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<hr \/>\n<\/td>\n<\/tr>\n<tr>\n<td>zvec(4)<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td>\u03c1sin(\u03b8)<\/td>\n<td>x<\/td>\n<td>Tilt in x direction<\/td>\n<\/tr>\n<tr>\n<td>zvec(5)<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>-1<\/td>\n<td>\u03c1cos(\u03b8)<\/td>\n<td>y<\/td>\n<td>Tilt in y direction<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<hr \/>\n<\/td>\n<\/tr>\n<tr>\n<td>zvec(6)<\/td>\n<td>2<\/td>\n<td>0<\/td>\n<td>2<\/td>\n<td>\u03c1<sup>2<\/sup>sin2(\u03b8)<\/td>\n<td>2xy<\/td>\n<td>Astigmatism with axis at +\/- 45 degrees<\/td>\n<\/tr>\n<tr>\n<td>zvec(7)<\/td>\n<td>2<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<td>2\u03c1<sup>2<\/sup>-1<\/td>\n<td>-1\u00a0+\u00a02y2\u00a0+\u00a02&#215;2<\/td>\n<td>Focus shift<\/td>\n<\/tr>\n<tr>\n<td>zvec(8)<\/td>\n<td>2<\/td>\n<td>2<\/td>\n<td>-2<\/td>\n<td>\u03c1<sup>2<\/sup>cos(2\u03b8)<\/td>\n<td>y2\u00a0&#8211;\u00a0x2<\/td>\n<td>Astigmatism with axis at 0 or 90 degrees<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<hr \/>\n<\/td>\n<\/tr>\n<tr>\n<td>zvec(9)<\/td>\n<td>3<\/td>\n<td>0<\/td>\n<td>3<\/td>\n<td>\u03c1<sup>3<\/sup>sin(3\u03b8)<\/td>\n<td>3xy2\u00a0&#8211;\u00a0x3<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td>zvec(10)<\/td>\n<td>3<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>(3\u03c1<sup>3<\/sup>-2\u03c1)sin(\u03b8)<\/td>\n<td>-2y\u00a0+\u00a03xy2\u00a0+\u00a03&#215;3<\/td>\n<td>Third order coma along x axis<\/td>\n<\/tr>\n<tr>\n<td>zvec(11)<\/td>\n<td>3<\/td>\n<td>2<\/td>\n<td>-1<\/td>\n<td>(3\u03c1<sup>3<\/sup>-2\u03c1)cos(\u03b8)<\/td>\n<td>-2y\u00a0+\u00a03y3\u00a0+\u00a03x2y<\/td>\n<td>Third order coma along y axis<\/td>\n<\/tr>\n<tr>\n<td>zvec(12)<\/td>\n<td>3<\/td>\n<td>3<\/td>\n<td>-3<\/td>\n<td>\u03c1<sup>3<\/sup>cos(3\u03b8)<\/td>\n<td>y3\u00a0&#8211;\u00a03x2y<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<hr \/>\n<\/td>\n<\/tr>\n<tr>\n<td>zvec(13)<\/td>\n<td>4<\/td>\n<td>0<\/td>\n<td>4<\/td>\n<td>\u03c1<sup>4<\/sup>sin(4\u03b8)<\/td>\n<td>4y3x\u00a0&#8211;\u00a04x3y<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td>zvec(14)<\/td>\n<td>4<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>(4\u03c1<sup>4<\/sup>-3\u03c1<sup>2<\/sup>)sin(2\u03b8)<\/td>\n<td>-6xy\u00a0+\u00a08y3x\u00a0+\u00a08x3y<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td>zvec(15)<\/td>\n<td>4<\/td>\n<td>2<\/td>\n<td>0<\/td>\n<td>(6\u03c1<sup>4<\/sup>-6\u03c1<sup>2<\/sup>+1)<\/td>\n<td>1\u00a0&#8211;\u00a06y2\u00a0&#8211;\u00a06&#215;2\u00a0+\u00a06y4\u00a0+\u00a012x2y2\u00a0+\u00a06&#215;4<\/td>\n<td>Third order spherical aberration<\/td>\n<\/tr>\n<tr>\n<td>zvec(16)<\/td>\n<td>4<\/td>\n<td>3<\/td>\n<td>-2<\/td>\n<td>(4\u03c1<sup>4<\/sup>-3\u03c1<sup>2<\/sup>)cos(2\u03b8)<\/td>\n<td>-3y2\u00a0+\u00a03&#215;2\u00a0+\u00a04y4\u00a0&#8211;\u00a04&#215;4<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td>zvec(17)<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<td>-4<\/td>\n<td>\u03c1<sup>4<\/sup>cos(4\u03b8)<\/td>\n<td>y4\u00a0&#8211;\u00a06x2y2\u00a0+\u00a0x4<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>The\u00a0Aberrations Panel\u00a0is used to add aberration into the lens calculations. Aberration Calculation Portion : None No aberration calculations are performed. Custom\u00a0File The aberration data is loaded from the specified file.\u00a0 Here,\u00a0opd1\u00a0contains the aberration data: The aberration data should be stored in the project&#8217;s\u00a0optics\u00a0folder. Ray\u00a0Trace Use a Ray Trace to calculate the aberrations.\u00a0 If the &#8220;Save Result&#8221; check box is checked,<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":894,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-905","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/comments?post=905"}],"version-history":[{"count":11,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/905\/revisions"}],"predecessor-version":[{"id":944,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/905\/revisions\/944"}],"up":[{"embeddable":true,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/894"}],"wp:attachment":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/media?parent=905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}