<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:06:10 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-1329] Individual fibers have significant offsets</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1329</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=shamano&quot; class=&quot;user-hover&quot; rel=&quot;shamano&quot;&gt;Satoshi Hamano&lt;/a&gt; reports that some individual fibers (e.g., the right-most few on r3) have a consistent x offset w.r.t. the &lt;tt&gt;detectorMap&amp;#95;used&lt;/tt&gt;, when looking at visits from the July run (in particular, I think, quartz exposures from 2023-07-26). This would indicate that the fix from &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1324&quot; title=&quot;Support fitting x/y offsets when updating the detectorMap&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-1324&quot;&gt;&lt;del&gt;PIPE2D-1324&lt;/del&gt;&lt;/a&gt; was unsuccessful.&lt;/p&gt;</description>
                <environment></environment>
        <key id="24203">PIPE2D-1329</key>
            <summary>Individual fibers have significant offsets</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10100" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="No further work should be done on this.">Won&apos;t Fix</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="shamano">Satoshi Hamano</assignee>
                                    <reporter username="price">price</reporter>
                        <labels>
                            <label>EDR</label>
                    </labels>
                <created>Tue, 14 Nov 2023 01:13:05 +0000</created>
                <updated>Wed, 31 Jan 2024 20:06:37 +0000</updated>
                            <resolved>Wed, 31 Jan 2024 20:06:37 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                <comments>
                            <comment id="35810" author="price" created="Tue, 14 Nov 2023 15:21:14 +0000"  >&lt;p&gt;I am unable to reproduce the plots that &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=shamano&quot; class=&quot;user-hover&quot; rel=&quot;shamano&quot;&gt;Satoshi Hamano&lt;/a&gt; showed last night. His plots had a solid red band extending all the way down the right-hand side, indicating that fibers were not being corrected. The following plot looks very different: no fiber is all red or all blue (in line with our expectations after applying slit offsets in the detectorMap), and we&apos;re seeing features that we know are present in the data (like the epoxy bumps on the edges of each CCD) and revealing large-scale tree rings clearly.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=shamano&quot; class=&quot;user-hover&quot; rel=&quot;shamano&quot;&gt;Satoshi Hamano&lt;/a&gt;, could you please provide examples that demonstrate the problems you&apos;ve discovered, including the &lt;tt&gt;dataId&lt;/tt&gt; and plots for a small number of egregious cases?&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; matplotlib.pyplot as plt
&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; matplotlib.cm
from matplotlib.colors &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; Normalize
from pfs.drp.stella.fitDistortedDetectorMap &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; addColorbar

dataId = dict(visit=98626, arm=&lt;span class=&quot;code-quote&quot;&gt;&quot;r&quot;&lt;/span&gt;, spectrograph=3)
lines = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;arcLines&quot;&lt;/span&gt;, dataId)
detectorMap = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;detectorMap_used&quot;&lt;/span&gt;, dataId)

dx = lines.x - detectorMap.getXCenter(lines.fiberId, lines.y)

norm = Normalize(vmin=-0.1, vmax=0.1)
cmap = matplotlib.cm.get_cmap(&lt;span class=&quot;code-quote&quot;&gt;&quot;coolwarm&quot;&lt;/span&gt;)

fig, axes = plt.subplots()
axes.hexbin(lines.x, lines.y, C=dx, gridsize=100, cmap=cmap, norm=norm)
addColorbar(fig, axes, cmap, norm, &lt;span class=&quot;code-quote&quot;&gt;&quot;dx (pixels)&quot;&lt;/span&gt;)
axes.set_aspect(&lt;span class=&quot;code-quote&quot;&gt;&quot;equal&quot;&lt;/span&gt;)
axes.set_xlabel(&lt;span class=&quot;code-quote&quot;&gt;&quot;x (pixels)&quot;&lt;/span&gt;)
axes.set_ylabel(&lt;span class=&quot;code-quote&quot;&gt;&quot;y (pixels)&quot;&lt;/span&gt;)
axes.set_title(f&lt;span class=&quot;code-quote&quot;&gt;&quot;{dataId}&quot;&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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/16700/16700_98626r3-dx.png&quot; width=&quot;900&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="35821" author="arnaud.lefur" created="Tue, 14 Nov 2023 22:59:06 +0000"  >&lt;p&gt;Have you chosen a mod4 visit intentionally ? Same plot with full density quartz, it certainly feels different : &lt;br/&gt;
 &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;16702_thumb&quot; href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/16702/16702_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88+2023-11-15+9.38.11.png&quot; title=&quot;&#12473;&#12463;&#12522;&#12540;&#12531;&#12471;&#12519;&#12483;&#12488; 2023-11-15 9.38.11.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;16702&quot; file-preview-title=&quot;&#12473;&#12463;&#12522;&#12540;&#12531;&#12471;&#12519;&#12483;&#12488; 2023-11-15 9.38.11.png&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/thumbnail/16701/_thumb_16701.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;</comment>
                            <comment id="35822" author="shamano" created="Wed, 15 Nov 2023 00:40:05 +0000"  >&lt;p&gt;As an example, dataId={visit=98627, spectrograph=3, arm=&apos;r&apos;}.&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/thumbnail/16702/_thumb_16702.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="35823" author="shamano" created="Wed, 15 Nov 2023 00:45:40 +0000"  >&lt;p&gt;I make an image from the pfsArm and traces as follows. I measure the profiles center and widths from the calexp.image.array and image.array.&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;from pfs.drp.stella import SpectrumSet

calexp = butler.get(&apos;calexp&apos;, dataId)
detMap = butler.get(&apos;detectorMap_used&apos;, dataId)
profiles = butler.get(&quot;fiberProfiles&quot;, dataId)
pfsArm = butler.get(&quot;pfsArm&quot;, dataId)

spectra = SpectrumSet.fromPfsArm(pfsArm)
traces = profiles.makeFiberTracesFromDetectorMap(detMap)
image = spectra.makeImage(calexp.getDimensions(), traces)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="35824" author="price" created="Wed, 15 Nov 2023 02:19:47 +0000"  >&lt;p&gt;98627 is a different visit than what I&apos;ve posted, but I don&apos;t think it can look so very different. So I believe your results are different from what both &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=wtgee&quot; class=&quot;user-hover&quot; rel=&quot;wtgee&quot;&gt;Wilfred Gee&lt;/a&gt; and I get (although both of these are based on the arcLines, but I think those are generally regarded as reliable), which I think means you need to validate your work before we can proceed on this.&lt;/p&gt;</comment>
                            <comment id="35825" author="rhl" created="Wed, 15 Nov 2023 16:25:15 +0000"  >&lt;p&gt;This is the same request as the one on &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1330&quot; title=&quot;Investigate the large scale feature of detectorMap offsets on detector&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-1330&quot;&gt;&lt;del&gt;PIPE2D-1330&lt;/del&gt;&lt;/a&gt;.  Please provide the code as .py files on GitHub, and also details of how  your centroids compare with the ones in the arcLines files.   It&apos;s perfectly possible that your ones are correct, but we need to sort out the differences (and potentially correct the centroids that the pipeline generates).&lt;/p&gt;</comment>
                            <comment id="35868" author="shamano" created="Thu, 16 Nov 2023 03:42:33 +0000"  >&lt;p&gt;I checked my code step by step, but couldn&apos;t identify the cause of the large X offset seen in my r3 plots. I attached a notebook that contains the part of calculating residual image in my extraction QA script. I run the notebook with w.2023.45 version, and confirmed that the same large X offset could be seen in the residual image. Could you check if there is a problem with my code?&lt;br/&gt;
&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/16712/16712_largeXOffset.ipynb&quot; title=&quot;largeXOffset.ipynb attached to PIPE2D-1329&quot;&gt;largeXOffset.ipynb&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://pfspipe.ipmu.jp/jira/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="35900" author="price" created="Thu, 16 Nov 2023 13:29:01 +0000"  >&lt;p&gt;What in the notebook looks reasonable, but it&apos;s far from enough to be able to reproduce your results.&lt;/p&gt;</comment>
                            <comment id="35901" author="shamano" created="Thu, 16 Nov 2023 23:21:56 +0000"  >&lt;p&gt;I attached the reproduced result.&#160;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/16800/16800_largeXOffset-2.ipynb&quot; title=&quot;largeXOffset-2.ipynb attached to PIPE2D-1329&quot;&gt;largeXOffset-2.ipynb&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://pfspipe.ipmu.jp/jira/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;The python code used for generating the QA plots is also attached, but the readability is poor.&#160;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/16801/16801_extractionQa.py&quot; title=&quot;extractionQa.py attached to PIPE2D-1329&quot;&gt;extractionQa.py&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://pfspipe.ipmu.jp/jira/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="35902" author="price" created="Fri, 17 Nov 2023 16:14:15 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=shamano&quot; class=&quot;user-hover&quot; rel=&quot;shamano&quot;&gt;Satoshi Hamano&lt;/a&gt; is measuring the x position of the trace in the &lt;tt&gt;calexp&lt;/tt&gt; and in the model image (constructed from the &lt;tt&gt;pfsArm&lt;/tt&gt;, &lt;tt&gt;profiles&lt;/tt&gt; and &lt;tt&gt;detectorMap&amp;#95;used&lt;/tt&gt;), and his plots show that there is a difference in these x positions for those fibers on the far right. This is also revealed in a straight subtraction of the &lt;tt&gt;calexp&lt;/tt&gt; and the model image. These differences are not present in the &lt;tt&gt;arcLines&lt;/tt&gt; measurements written by the pipeline (which measures the position of the trace in the &lt;tt&gt;calexp&lt;/tt&gt;) because the problem is in the model image: the profile is off-center (by about a third of a pixel) for those far-right fibers. This is further fallout from the inaccurate detectorMaps caused by the flat-field screen not being used on the first night of the July run. Below I show the profile for &lt;tt&gt;fiberId=1307&lt;/tt&gt;. The results of &lt;tt&gt;profiles&lt;span class=&quot;error&quot;&gt;&amp;#91;1307&amp;#93;&lt;/span&gt;.calculateStatistics()&lt;/tt&gt; demonstrate the problem also (note the &lt;tt&gt;centroid&lt;/tt&gt; values):&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Struct(centroid=[-0.3664167395365968 -0.33592957113018446 -0.2319049640704939]; width=[2.0435098090603625 2.0388422530999777 2.073611949172245]; min=[-0.006259117354348317 -0.002724690172294439 -0.0007977413487588208]; max=[2.3501915455243494 2.3594814341754806 2.32601427057499])
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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/16802/16802_profile-r3-1307.png&quot; width=&quot;900&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="36722" author="kiyoto.yabe" created="Fri, 19 Jan 2024 16:18:40 +0000"  >&lt;p&gt;Regenerating profiles with slit offset option resolved this problem, so I think we can close this ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="24204">PIPE2D-1330</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="16702" name="&#12473;&#12463;&#12522;&#12540;&#12531;&#12471;&#12519;&#12483;&#12488; 2023-11-15 9.38.11.png" size="2638136" author="shamano" created="Wed, 15 Nov 2023 00:38:18 +0000"/>
                            <attachment id="16701" name="97240-r3-dx.png" size="935796" author="arnaud.lefur" created="Tue, 14 Nov 2023 22:40:39 +0000"/>
                            <attachment id="16700" name="98626r3-dx.png" size="848895" author="price" created="Tue, 14 Nov 2023 15:12:45 +0000"/>
                            <attachment id="16801" name="extractionQa.py" size="35749" author="shamano" created="Thu, 16 Nov 2023 23:19:44 +0000"/>
                            <attachment id="16800" name="largeXOffset-2.ipynb" size="3057671" author="shamano" created="Thu, 16 Nov 2023 23:18:45 +0000"/>
                            <attachment id="16712" name="largeXOffset.ipynb" size="268973" author="shamano" created="Thu, 16 Nov 2023 03:33:36 +0000"/>
                            <attachment id="16802" name="profile-r3-1307.png" size="107348" author="price" created="Fri, 17 Nov 2023 16:12:37 +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|02qph7:06r091</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="170">EDR+AIT</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>