<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:59:04 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-864] bootstrap does not identify lines correctly for med-res data</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-864</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;As briefly mentioned during the last DRP telecon 2021-06-18, I am having difficulty generating a bootstrapped detectormap for medium-resolution data.&lt;/p&gt;

&lt;p&gt;running &lt;tt&gt;bootstrapDetectorMap&lt;/tt&gt; with arc visit=63106 (room_lights, no_screen) and flat visit=63050 with debug on:&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;
bootstrapDetectorMap.py /projects/HSC/PFS/Subaru/ --calib /projects/HSC/PFS/Subaru/CALIB-SuNSS-2021-06-16 --rerun hassan/bstrapMed --flatId visit=63050 arm=m --arcId visit=63106 arm=m --debug
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;We see the line identification shown in figure &apos;bootstrap medRes.png&apos;. The arc lines are clearly apparent, but the crosses do not match any of the lines.&lt;/p&gt;

&lt;p&gt;This is in contrast to running the same task against DCB &lt;tt&gt;r&lt;/tt&gt; data:&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;
bootstrapDetectorMap.py /projects/HSC/PFS/Subaru/ --calib /projects/HSC/PFS/Subaru/CALIB-SuNSS-2021-06-16/ --rerun hassan/bstrapRed --flatId visit=30044 arm=r --arcId visit=30045 arm=r --debug
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Where the lines are clearly identified. See figure &apos;bootstrap-red-DCB.png&apos; .&lt;/p&gt;

&lt;p&gt;Also no problems with identification noticed when using simulated arcs from the integration test.&lt;/p&gt;</description>
                <environment></environment>
        <key id="16910">PIPE2D-864</key>
            <summary>bootstrap does not identify lines correctly for med-res data</summary>
                <type id="1" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10503&amp;avatarType=issuetype">Bug</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="price">price</assignee>
                                    <reporter username="hassan">hassan</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Jun 2021 13:24:09 +0000</created>
                <updated>Sat, 10 Jul 2021 02:18:50 +0000</updated>
                            <resolved>Sat, 10 Jul 2021 02:18:50 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="21580" author="price" created="Mon, 28 Jun 2021 18:28:09 +0000"  >&lt;p&gt;There are astropy fit warnings and abysmal RMS values coming from &lt;tt&gt;bootstrapDetectorMap.py&lt;/tt&gt; when running on &lt;tt&gt;m&lt;/tt&gt; SuNSS data.&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;
$ bootstrapDetectorMap.py /projects/HSC/PFS/Subaru/ --calib /projects/HSC/PFS/Subaru/CALIB-SuNSS-2021-06-16 --rerun price/pipe2d-864 --flatId visit=63050 arm=m --arcId visit=63106 arm=m
[...]
WARNING: The fit may be unsuccessful; check fit_info[&lt;span class=&quot;code-quote&quot;&gt;&apos;message&apos;&lt;/span&gt;] &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; more information. [astropy.modeling.fitting]
astropy WARN: The fit may be unsuccessful; check fit_info[&lt;span class=&quot;code-quote&quot;&gt;&apos;message&apos;&lt;/span&gt;] &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; more information.
WARNING: The fit may be unsuccessful; check fit_info[&lt;span class=&quot;code-quote&quot;&gt;&apos;message&apos;&lt;/span&gt;] &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; more information. [astropy.modeling.fitting]
astropy WARN: The fit may be unsuccessful; check fit_info[&lt;span class=&quot;code-quote&quot;&gt;&apos;message&apos;&lt;/span&gt;] &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; more information.
bootstrap INFO: Found 6586 lines in 254 traces
bootstrap INFO: Matched 5617 lines
bootstrap INFO: Median difference from detectorMap: -5.012633,0.618370 pixels
bootstrap INFO: Fit 1340/2859 points, rms: x=4.320284 y=6.319983 total=3.232250 pixels
bootstrap INFO: Updating detectorMap...
bootstrap INFO: Median difference from detectorMap: 5.852661,0.959997 pixels
bootstrap INFO: Fit 888/2758 points, rms: x=3.860911 y=4.141929 total=1.879898 pixels
bootstrap INFO: Updating detectorMap...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="21581" author="hassan" created="Mon, 28 Jun 2021 18:34:49 +0000"  >&lt;p&gt;Yes, I think the fit is failing due to the poor identification of lines prior to that.&lt;/p&gt;</comment>
                            <comment id="21582" author="price" created="Mon, 28 Jun 2021 19:11:07 +0000"  >&lt;p&gt;One problem is that no lamps are indicated as being on in the header, and so the software assumes it&apos;s looking at the sky. Looking at &quot;dome arcs&quot; is a special case, so we need to configure it specially:&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;
config.readLineList.lampList = [&lt;span class=&quot;code-quote&quot;&gt;&quot;HgI&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;KrI&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;ArI&quot;&lt;/span&gt;]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="21584" author="hassan" created="Mon, 28 Jun 2021 19:30:07 +0000"  >&lt;p&gt;I had ran &lt;tt&gt;config.readLineList.lampList = &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;Ar&amp;quot;&amp;#93;&lt;/span&gt;&apos;&lt;/tt&gt; a few days ago with the same problem. Will check that again.&lt;/p&gt;</comment>
                            <comment id="21585" author="cloomis" created="Mon, 28 Jun 2021 19:31:08 +0000"  >&lt;p&gt;For future acquisitions, ICS &lt;em&gt;could&lt;/em&gt; either adjust some of the lamp cards, or add some other PFS-specific cards. &lt;/p&gt;

&lt;p&gt;Note that &lt;tt&gt;DATA-TYP&lt;/tt&gt; cannot be sensible. The only available choices are: ACQUISITION, BIAS, COMPARISON, DARK, DOMEFLAT, DOMEFLAT_ON, DOMEFLAT_OFF, FLAT, FOCUSING, INSTLAT, OBJECT, SKYFLAT, STANDARD, STANDARD_STAR, TEST&lt;/p&gt;

&lt;p&gt;Actually, we are planning to add a room light card, based on the parasite data we are getting from the telescope while running SuNSS; I&apos;ll let you know what that is when we get there. &lt;/p&gt;</comment>
                            <comment id="21628" author="price" created="Wed, 30 Jun 2021 22:29:33 +0000"  >&lt;p&gt;The main problems were identifying the lamps being used (the code defaults to assuming sky if no lamps are set in the FITS header) and identifying a good set of fibers.&lt;/p&gt;

&lt;p&gt;With the following configuration overrides:&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;
config.readLineList.lampList = [&lt;span class=&quot;code-quote&quot;&gt;&quot;HgI&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;KrI&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;ArI&quot;&lt;/span&gt;]  # otherwise we get sky
config.spectralOffset = -20  # by-eye estimate
config.profiles.profileRadius = 3  # because we have some close-packed fibers
# The following give us only the good fibers, which give us a reliable fiber identification
from pfs.datamodel &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; FiberStatus
config.fiberStatus = [FiberStatus.GOOD]
config.profiles.findThreshold = 2000  # convolution is probably picking up a lot of scattered light
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I get a pretty good bootstrap result:&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;
bootstrap.readLineList INFO: Filtered line lists &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; lamps: ArI,HgI,KrI
bootstrap INFO: Found 6748 lines in 251 traces
bootstrap INFO: Matched 6741 lines
bootstrap INFO: Median difference from detectorMap: 6.389995,4.018591 pixels
bootstrap INFO: Fit 2983/3309 points, rms: x=0.056048 y=0.173571 total=0.126654 pixels
bootstrap INFO: Updating detectorMap...
bootstrap INFO: Median difference from detectorMap: 5.759607,5.856603 pixels
bootstrap INFO: Fit 2969/3432 points, rms: x=0.067750 y=0.108061 total=0.075888 pixels
bootstrap INFO: Updating detectorMap...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="21671" author="hassan" created="Fri, 9 Jul 2021 22:21:21 +0000"  >&lt;p&gt;I am able to reproduce Paul&apos;s findings above, and from eye-balling the lines predicted by the resultant detectormap, the results are much improved (sub-pixel error in both x and y). &lt;/p&gt;

&lt;p&gt;Minor comment added pull request.&lt;/p&gt;</comment>
                            <comment id="21672" author="hassan" created="Fri, 9 Jul 2021 22:23:54 +0000"  >&lt;p&gt;Command line executed:&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;
bootstrapDetectorMap.py /projects/HSC/PFS/Subaru/ --calib /projects/HSC/PFS/Subaru/CALIB-SuNSS-2021-06-16 --rerun hassan/bstrap-pipe2d-864 --flatId visit=63050 arm=m --arcId visit=63106 arm=m --debug --configfile pipe2d-864.config
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;with the file &lt;tt&gt;pipe2d-864.config&lt;/tt&gt; containing the contents Paul has already listed above.&lt;/p&gt;</comment>
                            <comment id="21673" author="price" created="Sat, 10 Jul 2021 02:18:50 +0000"  >&lt;p&gt;Merged.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="16932">PIPE2D-869</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13937" name="bootstrap medRes.png" size="922927" author="hassan" created="Mon, 28 Jun 2021 13:21:33 +0000"/>
                            <attachment id="13938" name="bootstrap-red-DCB.png" size="547555" author="hassan" created="Mon, 28 Jun 2021 13:20:09 +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:508yl0chzzy0000026k</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10100" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Reviewers</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>hassan</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="111">2DDRP-2021 A 6</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>