<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:58:07 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-792] DetectorMap updated using reduceArc doesn&apos;t capture slit offsets</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-792</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&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;
reduceArc.py /projects/HSC/PFS/Subaru --calib /scratch/pprice/pipe2d-706/CALIB --rerun rhl/stability -c reduceExposure.isr.doFlat=False reduceExposure.useCalexp=True readLineList.restrictByLamps=False fitDetectorMap.soften=0.2 identifyLines.findLines.doSubtractContinuum=True identifyLines.findLines.threshold=10 reduceExposure.doOffsetDetectorMap=False doUpdateDetectorMap=True fitDetectorMap.doSlitOffsets=True identifyLines.findLines.fittingRadius=2 --id arm=b^r visit=41374..41377^41381..41384^41418..41421^41425..41428 -j 20&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;should generate a good detectorMap from a set of Ar/Ne/Kr/ArHg lines. However, when I look at the offsets from the resulting detectorMap it seems that fiberId 464 is off by c. 0.025 pixels in x (see  &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;13439_thumb&quot; href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/13439/13439_stabilityDetMap.png&quot; title=&quot;stabilityDetMap.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;13439&quot; file-preview-title=&quot;stabilityDetMap.png&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/thumbnail/13439/_thumb_13439.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/a&gt;&lt;/span&gt; ).&lt;/p&gt;

&lt;p&gt;Note that &lt;tt&gt;fitDetectorMap.doSlitOffsets=True&lt;/tt&gt; so I &lt;em&gt;am&lt;/em&gt; expecting to update the slit offsets in this case.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15487">PIPE2D-792</key>
            <summary>DetectorMap updated using reduceArc doesn&apos;t capture slit 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="price">price</assignee>
                                    <reporter username="rhl">rhl</reporter>
                        <labels>
                    </labels>
                <created>Mon, 22 Mar 2021 18:50:07 +0000</created>
                <updated>Fri, 26 Mar 2021 16:11:51 +0000</updated>
                            <resolved>Fri, 26 Mar 2021 16:11:51 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="18955" author="price" created="Tue, 23 Mar 2021 15:46:40 +0000"  >&lt;p&gt;I can&apos;t reproduce this. I wonder if you&apos;re reading the correct detectorMap?&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;
reduceArc.py /projects/HSC/PFS/Subaru --calib /scratch/pprice/pipe2d-706/CALIB --rerun price/pipe2d-792 -c reduceExposure.isr.doFlat=False reduceExposure.useCalexp=True readLineList.restrictByLamps=False fitDetectorMap.soften=0.2 identifyLines.findLines.doSubtractContinuum=True identifyLines.findLines.threshold=10 reduceExposure.doOffsetDetectorMap=False doUpdateDetectorMap=True fitDetectorMap.doSlitOffsets=True identifyLines.findLines.fittingRadius=2 --id arm=r visit=41374..41377^41381..41384^41418..41421^41425..41428 -j 20

reduceArc.fitDetectorMap INFO: Final fit: chi2=1562.356214 dof=5298 xRMS=0.046792 yRMS=0.150495 (0.012952 nm, 4.836037 km/s) from 2667/2738 lines
reduceArc.fitDetectorMap INFO: Fit quality from reserved lines: chi2=317.102439 xRMS=0.027624 yRMS=0.055329 (0.004762 nm, 1.777947 km/s) from 303 lines (10.0%)
reduceArc.fitDetectorMap INFO: Softening errors by 0.068387 pixels (0.005886 nm, 2.197560 km/s) to yield chi^2/dof=1
reduceArc.fitDetectorMap INFO: Softened fit: chi2=5158.014724 dof=5298 xRMS=0.035890 yRMS=0.098473 (0.008475 nm, 3.164337 km/s) from 2667/3041 lines
reduceArc.fitDetectorMap INFO: Softened fit quality from reserved lines: chi2=1426.640587 xRMS=0.026431 yRMS=0.051665 (0.004446 nm, 1.660197 km/s) from 303 lines (10.0%)

&amp;gt;&amp;gt;&amp;gt; from lsst.daf.persistence &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; Butler
&amp;gt;&amp;gt;&amp;gt; from pfs.drp.stella &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; DetectorMap
&amp;gt;&amp;gt;&amp;gt; butler = Butler(&lt;span class=&quot;code-quote&quot;&gt;&quot;/projects/HSC/PFS/Subaru/rerun/price/pipe2d-792&quot;&lt;/span&gt;)
&amp;gt;&amp;gt;&amp;gt; lines = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;arcLines&quot;&lt;/span&gt;, visit=41374, arm=&lt;span class=&quot;code-quote&quot;&gt;&quot;r&quot;&lt;/span&gt;)
&amp;gt;&amp;gt;&amp;gt; detMap = DetectorMap.readFits(&lt;span class=&quot;code-quote&quot;&gt;&quot;/projects/HSC/PFS/Subaru/rerun/price/pipe2d-792/DETECTORMAP/pfsDetectorMap-041374-r1.fits&quot;&lt;/span&gt;)
&amp;gt;&amp;gt;&amp;gt; xyFit = detMap.findPoint(lines.fiberId, lines.wavelength)
&amp;gt;&amp;gt;&amp;gt; select = lines.fiberId == 464
&amp;gt;&amp;gt;&amp;gt; (xyFit[:, 0] - lines.x)[select]
array([-0.01342672,  0.00048829,  0.00229483, -0.00329692,  0.01108743,
        0.00165179, -0.02782915,  0.00258571, -0.00547261, -0.00282912,
       -0.00731705, -0.02812789,  0.01557468,  0.01771366,  0.1476121 ,
        0.03942108])
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The above values are with &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-780&quot; title=&quot;reduceArcs should include all the fibres in the output DetectorMap&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-780&quot;&gt;&lt;del&gt;PIPE2D-780&lt;/del&gt;&lt;/a&gt;, but I get very similar values with master.&lt;/p&gt;</comment>
                            <comment id="19003" author="rhl" created="Fri, 26 Mar 2021 16:11:51 +0000"  >&lt;p&gt;Looks like user error, as Paul suspected. &#160;Closing.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13439" name="stabilityDetMap.png" size="116562" author="rhl" created="Mon, 22 Mar 2021 18:47:18 +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|02qpt6:508yl0chzzy000001r</customfieldvalue>

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

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