<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:55:36 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-631] Illumination constant defocuses  - improvement of the analysis </title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-631</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;As mentioned in the comments of &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-614&quot; title=&quot;Illumination estimate of the pupil should be constant across different defocuses for single spot&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-614&quot;&gt;&lt;del&gt;PIPE2D-614&lt;/del&gt;&lt;/a&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. &apos;&apos;&#160;&lt;/p&gt;

&lt;p&gt;I am currently implementing this algorithm.&#160;&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="14713">PIPE2D-631</key>
            <summary>Illumination constant defocuses  - improvement of the analysis </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>Wed, 2 Sep 2020 18:40:00 +0000</created>
                <updated>Mon, 4 Jan 2021 20:23:21 +0000</updated>
                            <resolved>Fri, 20 Nov 2020 13:59:58 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="17701" author="ncaplar" created="Mon, 14 Sep 2020 21:44:09 +0000"  >&lt;p&gt;I have implemented the analysis that truly fits all of the images at once, using the Tokovinin algorithm (see comments in &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-614&quot; title=&quot;Illumination estimate of the pupil should be constant across different defocuses for single spot&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-614&quot;&gt;&lt;del&gt;PIPE2D-614&lt;/del&gt;&lt;/a&gt;). As it is obvious from the ``Fitting_example.png&apos;&apos;, the fitting issues that I noticed in&#160;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-614&quot; title=&quot;Illumination estimate of the pupil should be constant across different defocuses for single spot&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-614&quot;&gt;&lt;del&gt;PIPE2D-614&lt;/del&gt;&lt;/a&gt; has not been removed by this procedure.&#160;&lt;/p&gt;</comment>
                            <comment id="17702" author="rhl" created="Mon, 14 Sep 2020 22:29:04 +0000"  >&lt;p&gt;Is this all images for one &lt;tt&gt;(fibre, wavelength)&lt;/tt&gt; or all images for one fibre, or for the whole focal plane? &#160;I suspect the first.&lt;/p&gt;</comment>
                            <comment id="17703" author="ncaplar" created="Mon, 14 Sep 2020 22:34:46 +0000"  >&lt;p&gt;Yes, it is the first, 9 images going into this evaluation. In this case, it is 3 images on one side of defocus (+4mm,+3.5mm,+3mm slit movement), 3 around focus (+0.5,0,-0.5), and 3 from other side of defocus (-4mm,-3.5mm,-3mm).&#160;&lt;/p&gt;



&lt;p&gt;It is quite fast, converging in about an hour while using 120 cores - but that is because it is a very brutal straightforward algorithm that linearly converges and gets stuck in these weird minimums.&lt;/p&gt;</comment>
                            <comment id="17866" author="ncaplar" created="Mon, 12 Oct 2020 16:28:59 +0000"  >&lt;p&gt;I want to below give a short overview of some work that I have done last week. Unfortunately, I think that this was somewhat a red herring and in the next post, I will describe some of my current ideas.&lt;/p&gt;

&lt;p&gt;I wanted to see if I can specify the wavefront that I need to achieve to explain the observed data by changing individual pixels in the wavefront. So instead of modifying a relatively small set of Zernike parameters, I was modifying a large number of individual pixels in the wavefront. In this context, I have split my wavefront into 51x51 pixels. I would move the wavefront by a small amount in each of those pixels and record the change that this causes in the model image. After that, I looked at the linear combination of these movements that would minimize the residual from the input science image. For instance, one example of the prediction of this improvement is shown in ``Linear_prediction_of_change_to_model.png&apos;&apos;. ``Wavefront_pixel_change&apos;&apos; shows the change to the wavefront that I have applied in order to predict the improved residual.&lt;/p&gt;

&lt;p&gt;``Actual_change&apos;&apos; shows the result of this change to the wavefront. As we can see, the change is very different than what is expected from our nice prediction.&#160;&lt;/p&gt;

&lt;p&gt;I also tried to directly fit this proposed wavefront with Zernike polynomials in order to get a smooth solution to the problem. This is shown in ``Zernike_interpolation_to_wavefront&apos;&apos;. The results are again unsatisfactory (Actual_change_after_Zernike_wavefront_aprox).&lt;/p&gt;</comment>
                            <comment id="17867" author="ncaplar" created="Mon, 12 Oct 2020 16:39:47 +0000"  >&lt;p&gt;At the moment I think the problem is that I am fitting wavefront parameters and pupil parameters separately. So, I first propose a change to the wavefront, and then I move pupil parameters. What happens here is that A) the initial guess for the pupil parameters is a little bit off (as one can see from the struts and detector edges being visible in the residuals) b) I propose a change to wavefront parameters which try really hard to compensate these differences from struts and detector c) when I try to fit pupil parameters they fail to reach correct solutions because wavefront parameters have been stretched so hard to compensate.&lt;/p&gt;

&lt;p&gt;Obviously, these need to fit together. I am have avoided that so far because changes in the pupil illumination parameters do not have such nice linear properties as wavefront parameters (i.e., changing the amplitude of a Zernike parameters changes the amplitude of flux in the final image at the same spots in a linear fashion, as long the change is small). Moving detector to the left or right does not have the same property.&lt;/p&gt;

&lt;p&gt;I think the solution is to determine which parts of the donut are obscured when moving pupil parameters (e.g., moving detector), so I can have a shortcut to determine what changing those parameters will have on the final image, without having to regenerate the whole image each and every time when I move the detector in the fitting procedure.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="18066" author="ncaplar" created="Fri, 20 Nov 2020 13:59:50 +0000"  >&lt;p&gt;summarized in &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-614&quot; title=&quot;Illumination estimate of the pupil should be constant across different defocuses for single spot&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-614&quot;&gt;&lt;del&gt;PIPE2D-614&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="14601">PIPE2D-614</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13126" name="Actual_change_after_Zernike_wavefront_aprox.png" size="61084" author="ncaplar" created="Mon, 12 Oct 2020 16:31:26 +0000"/>
                            <attachment id="13119" name="Actual_change.png" size="65616" author="ncaplar" created="Mon, 12 Oct 2020 16:18:17 +0000"/>
                            <attachment id="13000" name="Fitting_example.png" size="109078" author="ncaplar" created="Mon, 14 Sep 2020 21:42:00 +0000"/>
                            <attachment id="13122" name="Linear_prediction_of_change_to_model.png" size="37103" author="ncaplar" created="Mon, 12 Oct 2020 16:28:04 +0000"/>
                            <attachment id="13120" name="Wavefront_pixel_change.png" size="120306" author="ncaplar" created="Mon, 12 Oct 2020 16:18:25 +0000"/>
                            <attachment id="13121" name="Zernike_interpolation_to_wavefront.png" size="135256" author="ncaplar" created="Mon, 12 Oct 2020 16:25:56 +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:mi</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>