<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:01:26 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-1015] Mask bit flags not propagated to pfsArm correctly</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1015</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;This is an observation reported by &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;&#160;during an internal Princeton meeting in early March, and a report by &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=kiyoto.yabe&quot; class=&quot;user-hover&quot; rel=&quot;kiyoto.yabe&quot;&gt;Kiyoto Yabe&lt;/a&gt;&#160;made during the 2D DRP tech telecon 2022-03-28/9 may support this.&lt;/p&gt;

&lt;p&gt;Looking at the processed output for SuNSS visit&#160;71280, arm=r, the ISR corrected image shows a number of cosmic ray hits (maskplane=&apos;CR&apos;).  See  &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;15151_thumb&quot; href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15151/15151_Screen+Shot+2022-03-29+at+8.52.10+PM.png&quot; title=&quot;Screen Shot 2022-03-29 at 8.52.10 PM.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;15151&quot; file-preview-title=&quot;Screen Shot 2022-03-29 at 8.52.10 PM.png&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/thumbnail/15151/_thumb_15151.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/a&gt;&lt;/span&gt;  for example, showing a CR event crossing fibers 549, 546, 543, 540...479, 477. &lt;/p&gt;

&lt;p&gt;However, not a single &apos;CR&apos; bit mask is set in the corresponding &lt;tt&gt;pfsArm&lt;/tt&gt; file for that visit (&apos;BAD_FIBERTRACE&apos; and &apos;NO_DATA&apos; bits are set, but not &apos;CR&apos;). Please investigate why the &apos;CR&apos; bits are not propagated, and fix.&lt;/p&gt;

&lt;p&gt;Plots of the &lt;tt&gt;pfsArm&lt;/tt&gt; using the &lt;tt&gt;display.showAllSpectraAsImage()&lt;/tt&gt; utility also show features that do not have any corresponding bits set. This may be due to a bug or limitations in that code itself, but I report it here for completion.&lt;/p&gt;</description>
                <environment></environment>
        <key id="22705">PIPE2D-1015</key>
            <summary>Mask bit flags not propagated to pfsArm correctly</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="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>Wed, 30 Mar 2022 01:02:07 +0000</created>
                <updated>Tue, 3 May 2022 18:32:41 +0000</updated>
                            <resolved>Tue, 3 May 2022 18:32:41 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="30654" author="price" created="Wed, 30 Mar 2022 17:22:03 +0000"  >&lt;p&gt;Choosing how to treat mask bits during spectrum extraction is a lot like choosing how to treat mask bits during image coaddition. Both involve combining multiple values with masks into a single value with mask. It&apos;s obvious that we don&apos;t want to include bad values in the calculation of the output value. The question is whether we want to include bad masks in the calculation of the output mask. For coaddition, we decided a long time ago that we don&apos;t want to include them, because they can end up everywhere in the coadd, and they don&apos;t relate to anything in the coadded image. For this reason, I&apos;ve been deliberately ignoring the bad mask planes when we extract spectra. However, perhaps there&apos;s a good reason to do something different: spectral extraction extends only over a relatively small number of pixels (as opposed to several tens or even hundreds of pixels contributing to each output pixel in a deep coadd), and those pixels are often intimately related.&lt;/p&gt;

&lt;p&gt;So let&apos;s decide what the algorithm should be, and I&apos;ll implement it. Do we want to &lt;tt&gt;OR&lt;/tt&gt; all mask pixels in each row of the fiber trace? Or do we want to require that each mask plane exceed some threshold of fraction of the fiber profile before including it in the output? Or something else?&lt;/p&gt;</comment>
                            <comment id="30658" author="rhl" created="Wed, 30 Mar 2022 19:29:59 +0000"  >&lt;p&gt;For pfsArm files, I think we want to start by ORing all the bits in pixels which contribute more than some fraction of the output value.  I&apos;d start by setting that fraction to 0.0.&lt;/p&gt;

&lt;p&gt;For the pfsMerged files I&apos;d do the same thing, propagating bits from the pfsArm file that contribute more than some fraction of the output flux, and again I&apos;d initially set that fraction to 0.0&lt;/p&gt;</comment>
                            <comment id="30814" author="hassan" created="Tue, 3 May 2022 18:27:42 +0000"  >&lt;p&gt;No objections with changes in pull request. This is in line with the proposal by RHL above.&lt;/p&gt;</comment>
                            <comment id="30815" author="price" created="Tue, 3 May 2022 18:32:41 +0000"  >&lt;p&gt;Merged.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="15151" name="Screen Shot 2022-03-29 at 8.52.10 PM.png" size="807213" author="hassan" created="Wed, 30 Mar 2022 00:55:08 +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:0419</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="142">2DDRP-2022 D</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>