<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:08:46 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>[SIM2D-119] Variance map outside fiber traces is very suspicious </title>
                <link>https://pfspipe.ipmu.jp/jira/browse/SIM2D-119</link>
                <project id="10000" key="SIM2D">DRP 2-D Simulator</project>
                    <description>&lt;p&gt;Upper panel shows cutout from the science image from calExp-FA000031r1.fits and lower panel shows cutout from the variance image. As we can see, variance image is very different within fiber traces and outside fibertrace. I doubt that this is wanted behavior? It is creating problems for &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=naka.keigo&quot; class=&quot;user-hover&quot; rel=&quot;naka.keigo&quot;&gt;Keigo Nakamura&lt;/a&gt; when he wants to analyze PSF images in 2d, as the variance image outside fiber traces is very unrealistics.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13710">SIM2D-119</key>
            <summary>Variance map outside fiber traces is very suspicious </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="1" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="rhl">rhl</assignee>
                                    <reporter username="ncaplar">ncaplar</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Aug 2019 21:48:41 +0000</created>
                <updated>Fri, 13 Jan 2023 12:52:05 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="15920" author="price" created="Wed, 7 Aug 2019 23:06:39 +0000"  >&lt;p&gt;The variance is discontinuous because the flat-field is discontinuous: there is no flux outside the area of the trace.&lt;/p&gt;

&lt;p&gt;What specific problems is this causing?&lt;/p&gt;</comment>
                            <comment id="15921" author="ncaplar" created="Wed, 7 Aug 2019 23:16:19 +0000"  >&lt;p&gt;Ok, I suspected something similar. Thanks for clarifying.&lt;/p&gt;

&lt;p&gt;We encountered this problem when he was modeling PSF with PSFx (&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-355&quot; title=&quot;Model the 2D PSF using PSFEx&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-355&quot;&gt;&lt;del&gt;PIPE2D-355&lt;/del&gt;&lt;/a&gt;), i.e., when he tried to work with 2D type algorithm on the simulated data and was cutting 40x40 and 20x20 post-stamp images. I never encountered this problem as I never look at the simulated data and only worked with ``real data&apos;&apos;.&lt;/p&gt;
</comment>
                            <comment id="15922" author="price" created="Wed, 7 Aug 2019 23:18:43 +0000"  >&lt;p&gt;But what is the problem?&lt;br/&gt;
This effect will be present on both simulated and real data.&lt;/p&gt;</comment>
                            <comment id="15923" author="ncaplar" created="Wed, 7 Aug 2019 23:22:59 +0000"  >&lt;p&gt;This effect is not present in the real data. The flux outside traces is not zero in the real data and variance map behaves as expected. If this was present in the real data 2D modeling would be seriously hampered. You might remember, we were even tweaking numbers so that mean of the variance map is the equal to mean of the variance in the science image (&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-278&quot; title=&quot;Variance maps should accurately estimate noise in the images&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-278&quot;&gt;&lt;del&gt;PIPE2D-278&lt;/del&gt;&lt;/a&gt;)? I think we are misunderstanding each other here?&lt;/p&gt;</comment>
                            <comment id="16871" author="price" created="Mon, 16 Mar 2020 23:09:35 +0000"  >&lt;p&gt;Here&apos;s the image (left), mask (center) and variance (right) planes for a part of a &lt;tt&gt;calexp&lt;/tt&gt; produced with the command &lt;tt&gt;detrend.py DATA --calib DATA/CALIB --rerun sim2d-119 --id visit=21460 arm=r&lt;/tt&gt;. I think this shows the same features you&apos;re pointing out in the simulated data. If I&apos;m mistaken, could you please be more specific in identifying the problem?&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/12531/12531_sim2d-119.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="16872" author="ncaplar" created="Mon, 16 Mar 2020 23:16:30 +0000"  >&lt;p&gt;I am very confused. I have never seen this feature when running &lt;tt&gt;detrend.py&lt;/tt&gt; on my side.&#160;&lt;/p&gt;

&lt;p&gt;But the variance value of a pixel should not change depending on the fact if the pixel is within a trace or outside a trace. Right? You are showing there is a clear difference in variance value for pixels within trace and outside trace and that &lt;em&gt;has&lt;/em&gt; to be unwanted behaviour unless I am misunderstanding something.&lt;/p&gt;</comment>
                            <comment id="16873" author="price" created="Mon, 16 Mar 2020 23:25:29 +0000"  >&lt;p&gt;All the pixels outside the trace are masked out, and shouldn&apos;t be used. We have no variance estimate for them in the flat, but they get set to 1. I could set them to a variance of zero, but the drp_stella code we&apos;ve inherited wouldn&apos;t like that. Alternatively, I could set them to a variance of infinity, but I think &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=rhl&quot; class=&quot;user-hover&quot; rel=&quot;rhl&quot;&gt;rhl&lt;/a&gt; has argued against that in the past. What value do you think they should be set to?&lt;/p&gt;

&lt;p&gt;Note also that the flat-field outside the traces is set to 1 everywhere, so if you&apos;re flat-fielding donut images with the fiber flats, you&apos;re probably messing up the images.&lt;/p&gt;</comment>
                            <comment id="16874" author="ncaplar" created="Mon, 16 Mar 2020 23:29:39 +0000"  >&lt;p&gt;How is the computation of variance of pixels outside of trace different than the computation of variance of pixels inside of trace?&lt;/p&gt;

&lt;p&gt;Pixels outside of trace are still needed for estimates of scattering etc...&#160;&lt;/p&gt;

&lt;p&gt;It is not possible to flat field 2d images for me as we do not have traces (as you correctly pointed out)&lt;/p&gt;</comment>
                            <comment id="16875" author="ncaplar" created="Mon, 16 Mar 2020 23:35:34 +0000"  >&lt;p&gt;I guess why I never noticed this is because I turned off flatfielding when doing &lt;tt&gt;detrend&lt;/tt&gt; ?&lt;/p&gt;</comment>
                            <comment id="16923" author="price" created="Mon, 23 Mar 2020 15:53:34 +0000"  >&lt;p&gt;That&apos;s possible.&lt;/p&gt;

&lt;p&gt;I suggest we close this ticket.&lt;/p&gt;</comment>
                            <comment id="16928" author="ncaplar" created="Mon, 23 Mar 2020 21:31:21 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=price&quot; class=&quot;user-hover&quot; rel=&quot;price&quot;&gt;price&lt;/a&gt;&#160;Is the data that you generate above with command &lt;tt&gt;detrend.py DATA --calib DATA/CALIB --rerun sim2d-119 --id visit=21460 arm=r&lt;/tt&gt; avaliable on Tiger somewhere?&lt;/p&gt;</comment>
                            <comment id="16931" author="price" created="Mon, 23 Mar 2020 22:04:34 +0000"  >&lt;p&gt;My data repo is &lt;tt&gt;/scratch/pprice/sim2d-119/DATA&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="16932" author="rhl" created="Mon, 23 Mar 2020 22:22:12 +0000"  >&lt;p&gt;Could this have been a rerun from the &quot;official&quot; data repo?&lt;/p&gt;</comment>
                            <comment id="16933" author="price" created="Mon, 23 Mar 2020 22:27:15 +0000"  >&lt;p&gt;I am not aware of an &quot;official&quot; data repo.&lt;/p&gt;</comment>
                            <comment id="16935" author="rhl" created="Mon, 23 Mar 2020 23:31:03 +0000"  >&lt;p&gt;We are supposed to have all the data on tiger, so that would be the official one.&lt;/p&gt;</comment>
                            <comment id="17000" author="price" created="Mon, 6 Apr 2020 16:09:48 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=rhl&quot; class=&quot;user-hover&quot; rel=&quot;rhl&quot;&gt;rhl&lt;/a&gt;, did you decide how you want to handle this? The problem is that pixels outside the trace have zero weight when normalising by the trace.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12105" name="Screenshot 2019-08-07 14.27.04.png" size="733789" author="ncaplar" created="Wed, 7 Aug 2019 21:45:00 +0000"/>
                            <attachment id="12531" name="sim2d-119.png" size="637722" author="price" created="Mon, 16 Mar 2020 23:07:07 +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|02qpjd:00r20060i2001800i</customfieldvalue>

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

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