<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:55:25 JST 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[PIPE2D-614] Illumination estimate of the pupil should be constant across different defocuses for single spot</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-614</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;Pupil illumination is the same at different levels of defocus, and only the wavefront changes. At the moment, I do iterative estimate which fits each spot at each defocus separately. This sometimes produces a consistent estimate of the illumination, but sometimes not. In particular, FRD estimate is often discrepant at different levels of defocus. Example.png shows an example of two spots. In the upper row, the estimate is inconsistent at two sides of defocus (frd_s values are very different). In the lower row, example where they are consistent. The estimation code should handle this properly, by analyzing images at the same time.&lt;/p&gt;</description>
                <environment></environment>
        <key id="14601">PIPE2D-614</key>
            <summary>Illumination estimate of the pupil should be constant across different defocuses for single spot</summary>
                <type id="3" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10518&amp;avatarType=issuetype">Task</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10002" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="The issue is resolved, reviewed, and merged">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="ncaplar">ncaplar</assignee>
                                    <reporter username="ncaplar">ncaplar</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Jun 2020 12:45:13 +0000</created>
                <updated>Mon, 4 Jan 2021 20:23:19 +0000</updated>
                            <resolved>Fri, 20 Nov 2020 13:59:23 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                <comments>
                            <comment id="17552" author="ncaplar" created="Mon, 17 Aug 2020 23:23:17 +0000"  >&lt;p&gt;I have uploaded images showing the current state of the processing. All images are analyzed at once (although this can still be improved, to be discussed below). The code uses an algorithm from Tokovinin &amp;amp; Heathcote 2006 to search for the best wavefront solution. This is a code I mentioned in&#160;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-354&quot; title=&quot;Estimate high-order Zernike from defocused images&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-354&quot;&gt;&lt;del&gt;PIPE2D-354&lt;/del&gt;&lt;/a&gt; (and is the basis for &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-553&quot; title=&quot;Estimate higher-order Zernike terms for large number of images&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-553&quot;&gt;&lt;del&gt;PIPE2D-553&lt;/del&gt;&lt;/a&gt;, even though it is not mentioned explicitly there).&#160;&lt;/p&gt;

&lt;p&gt;The quality.png shows the chi*2 reduced of images as a function of defocus. It shows the maximal chi2 (i.e., effectively very close to just np.mean(sci_image2/var_image) ), and chi*2 after model is subtracted. I am also showing line showing improvement of log-factor of 2.3, which is roughly the level of improvement which I have been getting with single image fitting.&lt;/p&gt;

&lt;p&gt;I am then showing several images showing fitting at different refocused. One can see that I am missing some global dependence - observed how there is a systematic trend in the residuals (more red in the bottom left and top right, more blue in bottom right and top left.)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I am then showing results in the focus, in 2d space and 1d space. Even though this is very high signal to noise spot so some deviations is expected, the results can certainly be improved.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;At the moment the code still effectively analyzes individual images, suggests solutions for each image, and then interpolates the solution before going to the next step in the iteration. The proper way would be to analyze all images at once.&#160;&lt;/p&gt;</comment>
                            <comment id="18062" author="ncaplar" created="Fri, 20 Nov 2020 13:48:58 +0000"  >&lt;p&gt;I have implemented the version of the code that is able to analyze multiple images at once in a relatively economic and sustainable fashion.&lt;/p&gt;

&lt;p&gt;The code works in several steps:&lt;/p&gt;

&lt;p&gt;1. Given the initial guess for the parameters, find the best wavefront that minimizes the likelihood of all images. To do that I move wavefront parameters one by one and recorded the change that this does to the images. I then solve the linear equation which aims to maximize the likelihood. This assumes that we are making small enough steps that the changes are linear and that we are close enough to the real solution that making these small steps makes sense. This is a relatively expensive step as creating the images for the change of each parameter takes time (around 30 to 40 seconds when working on 40 cores).&#160;&lt;/p&gt;

&lt;p&gt;2. There is an optimization algorithm that explores non-wavefront parameters. For probing of the non-wavefront parameters I also try to find the best wavefront parameters without recalculating the images, i.e., assuming that changes due to wavefront parameters changes are the same as calculated in step 1.&#160; &#160;&#160;&lt;/p&gt;

&lt;p&gt;3. If you found the parameters which are better than at the beginning, go back to step one and update the full result. Iterate until you converged.&#160;&lt;/p&gt;</comment>
                            <comment id="18063" author="ncaplar" created="Fri, 20 Nov 2020 13:51:14 +0000"  >&lt;p&gt;Another improvement is the fact that I have discovered that 3 struts that hold the detector are not of the same width. In previous versions of the algorithm, they have been fixed to be the same, which was creating large problems for the algorithm. I am still trying to go to understand which numbers should be inserted, but a preliminary test in which the vertical struts is 33% larger than the other 2 struts gives a significant improvment.&lt;/p&gt;</comment>
                            <comment id="18064" author="ncaplar" created="Fri, 20 Nov 2020 13:54:10 +0000"  >&lt;p&gt;I have also added images showing the improvement results:&lt;/p&gt;

&lt;p&gt;1.&#160;Example_final_defocused - 2d results for one of the spots when defocused&lt;br/&gt;
2.&#160;Example_final_focused - 2d results for the same spot in focus&lt;br/&gt;
3.&#160;Example_1d_extraction_large - 1d result extraction&lt;br/&gt;
4.&#160;Example_1d_extraction - 1d result extraction, zoomed&#160;&lt;/p&gt;</comment>
                            <comment id="18065" author="ncaplar" created="Fri, 20 Nov 2020 13:59:13 +0000"  >&lt;p&gt;I will now close this ticket and use this algorithm to analyze defocused data from Subaru.&#160;&lt;/p&gt;

&lt;p&gt;The only improvement I hope to make is a more accurate description of struts, based on conversations with Jim and &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=fmadec&quot; class=&quot;user-hover&quot; rel=&quot;fmadec&quot;&gt;fmadec&lt;/a&gt;. I will open a separate ticket for this.&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="14713">PIPE2D-631</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="15041">PIPE2D-654</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="15079">PIPE2D-671</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="15078">PIPE2D-670</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="13536">PIPE2D-406</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13206" name="Example_1d_extraction_large.png" size="69761" author="ncaplar" created="Fri, 20 Nov 2020 13:22:24 +0000"/>
                            <attachment id="13207" name="Example_1d_extraction.png" size="94926" author="ncaplar" created="Fri, 20 Nov 2020 13:22:24 +0000"/>
                            <attachment id="13208" name="Example_final_defocused.png" size="98967" author="ncaplar" created="Fri, 20 Nov 2020 13:22:24 +0000"/>
                            <attachment id="13209" name="Example_final_focused.png" size="67595" author="ncaplar" created="Fri, 20 Nov 2020 13:22:24 +0000"/>
                            <attachment id="12800" name="Example.png" size="92311" author="ncaplar" created="Mon, 29 Jun 2020 12:43:17 +0000"/>
                            <attachment id="12819" name="focus1d_large.png" size="71505" author="ncaplar" created="Thu, 13 Aug 2020 21:42:20 +0000"/>
                            <attachment id="12820" name="focus1d.png" size="121453" author="ncaplar" created="Thu, 13 Aug 2020 21:42:21 +0000"/>
                            <attachment id="12817" name="focus_log.png" size="75223" author="ncaplar" created="Thu, 13 Aug 2020 21:42:20 +0000"/>
                            <attachment id="12818" name="focus.png" size="68900" author="ncaplar" created="Thu, 13 Aug 2020 21:42:20 +0000"/>
                            <attachment id="12821" name="m3_example.png" size="85700" author="ncaplar" created="Thu, 13 Aug 2020 21:42:21 +0000"/>
                            <attachment id="12822" name="m4_example.png" size="99352" author="ncaplar" created="Thu, 13 Aug 2020 21:42:21 +0000"/>
                            <attachment id="12823" name="p3_example.png" size="87283" author="ncaplar" created="Thu, 13 Aug 2020 21:42:21 +0000"/>
                            <attachment id="12824" name="p4_example.png" size="99819" author="ncaplar" created="Thu, 13 Aug 2020 21:42:21 +0000"/>
                            <attachment id="12825" name="Quality.png" size="54024" author="ncaplar" created="Thu, 13 Aug 2020 21:42:21 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|02qps2:j</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="93">2DDRP-2021 A</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        </customfields>
    </item>
</channel>
</rss>