<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:47:28 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-25] Visualise a FiberTraceSet using LSST&apos;s ds9 interface</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-25</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;Display a flat field on ds9 and overlay a FiberTraceSet&lt;/p&gt;</description>
                <environment></environment>
        <key id="10409">PIPE2D-25</key>
            <summary>Visualise a FiberTraceSet using LSST&apos;s ds9 interface</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</type>
                                            <priority id="3" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/major.svg">Major</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="aritter">aritter</assignee>
                                    <reporter username="rhl">rhl</reporter>
                        <labels>
                    </labels>
                <created>Wed, 3 Sep 2014 14:28:16 +0000</created>
                <updated>Thu, 29 Sep 2016 20:59:57 +0000</updated>
                            <resolved>Thu, 29 Sep 2016 20:59:57 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="11131" author="aritter" created="Thu, 21 Jul 2016 20:17:56 +0000"  >&lt;p&gt;So far I have marked the traced center positions in DS9, but I couldn&apos;t find a function in display.ds9 to overplot a rectangular area in a DS9 image. I do have a function that reconstructs an image from the extracted spectrum and spatial profile what should fulfill the same purpose as overlaying a FiberTraceSet on a flat field...&lt;/p&gt;</comment>
                            <comment id="11207" author="aritter" created="Fri, 29 Jul 2016 04:38:16 +0000"  >&lt;p&gt;Created an ipython notebook in drp_stella/examples/ (tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-25&quot; title=&quot;Visualise a FiberTraceSet using LSST&amp;#39;s ds9 interface&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-25&quot;&gt;&lt;del&gt;PIPE2D-25&lt;/del&gt;&lt;/a&gt;). Data are in drp_stella_data data/PFS/postISRCCD/2016-01-12/v0000005/PFFAr2.fits (tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-25&quot; title=&quot;Visualise a FiberTraceSet using LSST&amp;#39;s ds9 interface&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-25&quot;&gt;&lt;del&gt;PIPE2D-25&lt;/del&gt;&lt;/a&gt;)&lt;/p&gt;</comment>
                            <comment id="11209" author="rhl" created="Fri, 29 Jul 2016 13:22:43 +0000"  >&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; lsst.afw.display as afwDisplay

disp = afwDisplay.Display(1)

disp.mtv(...)
disp.line([(x0, y0), (x0, y0+10), (x0 + 20, y0 + 10), (x0 + 20, y0), (x0, y0)])
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;(note: this is the way to use ds9; please don&apos;t import &lt;tt&gt;lsst.afw.display.ds9&lt;/tt&gt; directly)&lt;/p&gt;</comment>
                            <comment id="11212" author="swinbank" created="Fri, 29 Jul 2016 16:36:59 +0000"  >&lt;p&gt;The dataID in the notebook is incorrect:&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;
RuntimeError: No unique lookup &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; [&lt;span class=&quot;code-quote&quot;&gt;&apos;taiObs&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;dateObs&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;field&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;spectrograph&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;arm&apos;&lt;/span&gt;] from {&lt;span class=&quot;code-quote&quot;&gt;&apos;filter&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;r&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;ccd&apos;&lt;/span&gt;: 5, &lt;span class=&quot;code-quote&quot;&gt;&apos;category&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;A&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;visit&apos;&lt;/span&gt;: 5, &lt;span class=&quot;code-quote&quot;&gt;&apos;site&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;S&apos;&lt;/span&gt;}: 0 matches
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Using &lt;tt&gt;site=F&lt;/tt&gt; works.&lt;/p&gt;</comment>
                            <comment id="11216" author="aritter" created="Sat, 30 Jul 2016 02:46:59 +0000"  >&lt;p&gt;Fixed the site error, sorry about that...&lt;/p&gt;</comment>
                            <comment id="11342" author="rhl" created="Fri, 23 Sep 2016 19:20:44 +0000"  >&lt;p&gt;The notebook appears to work, but I have some concerns that need to be addressed:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;For the loop marking the centres of the trace there appears to be an off-by-one error in x (the + signs all appear to the right of the trace).  The plotting code appears to be correct, so is this a problem in your fiberTrace extraction?  Please check.&lt;/li&gt;
	&lt;li&gt;Why do you set point?&lt;/li&gt;
	&lt;li&gt;Why is this not encapsulated in a function?&lt;/li&gt;
	&lt;li&gt;Why did you choose to mark the centre with a set of crosses rather than drawing the ridgeline?&lt;/li&gt;
	&lt;li&gt;You need to use
&lt;blockquote&gt;&lt;p&gt;with display.Buffering():&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;whenever using display writes.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;For markFiberTraceInMask:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Did this have to be written in C++?&lt;/li&gt;
	&lt;li&gt;The value of the masked image plane is hard coded to 1&lt;/li&gt;
	&lt;li&gt;The code that sets the mask calls getArray; there is no need to go through the numpy interface&lt;/li&gt;
	&lt;li&gt;The object passed in is a MaskedImage, not a Mask but only the Mask is modified&lt;/li&gt;
	&lt;li&gt;The inner loop does the entire traversal
&lt;blockquote&gt;&lt;p&gt;maskedImage-&amp;gt;getMask()-&amp;gt;getArray()[ y + iY ][ x ] = 1;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; that should be outside the loop&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;In the notebook,&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;what is
&lt;blockquote&gt;&lt;p&gt;display0.setMaskPlaneColor(&quot;CROSSTALK&quot;, &quot;orange&quot;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;supposed to do?  There is no such mask plane in the data, and it&apos;d be unrelated to fibre traces if there was.&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;Why do you say
&lt;blockquote&gt;&lt;p&gt;afwDisplay.setDefaultBackend(&quot;ds9&quot; if True else &quot;virtualDevice&quot;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Isn&apos;t that the default it display_ds9 is setup?&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Also (and out of scope for this ticket but worrying)&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;The routine calcMinCenMax() appears very inefficient, making copies of many ndarrays.  Also, why is it a free function not part of a FiberTrace (given that when used you have to unpack the FiberTrace)&lt;/li&gt;
	&lt;li&gt;The indentation in Math.cc is incorrect&lt;/li&gt;
	&lt;li&gt;The lines in FiberTraces.cc exceed the permitted length of 110 characters&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="11357" author="aritter" created="Thu, 29 Sep 2016 20:59:57 +0000"  >&lt;p&gt;Merged into master&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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_10006" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PIPE2D-23</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|02qpuc:r</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="11">2014-9</customfieldvalue>
    <customfieldvalue id="16">2014-12</customfieldvalue>
    <customfieldvalue id="19">2014-13</customfieldvalue>
    <customfieldvalue id="20">2014-14</customfieldvalue>
    <customfieldvalue id="21">2014-15</customfieldvalue>
    <customfieldvalue id="22">2014-16</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>