<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:00:39 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-972] Unproperly masked/identified sky line residuals</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-972</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;In the last weekly runs I noticed that some subtraction residuals do not have a properly estimated variance, which makes the 1D pipeline identifying them as real lines. I have already identified four of them at 11020,&#160;11444,&#160;12286, 12350 Angstroms (see attached plots)&lt;/p&gt;</description>
                <environment></environment>
        <key id="22608">PIPE2D-972</key>
            <summary>Unproperly masked/identified sky line residuals</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="vlebrun">vlebrun</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Jan 2022 14:09:44 +0000</created>
                <updated>Mon, 19 Jun 2023 20:01:54 +0000</updated>
                            <resolved>Wed, 16 Feb 2022 19:48:03 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="30395" author="vlebrun" created="Fri, 28 Jan 2022 14:48:14 +0000"  >&lt;p&gt;a comment after some 10s of &#160;spectra, some of these features appear at the same location in several spectra, but other appear at various location.&lt;/p&gt;</comment>
                            <comment id="30407" author="price" created="Tue, 1 Feb 2022 22:40:01 +0000"  >&lt;p&gt;The &lt;tt&gt;n&lt;/tt&gt; arm images have many many sky lines flagged as CRs. In the following image, I&apos;ve put a green circle (right middle) at the approximate position of a strange feature from the &lt;tt&gt;pfsArm&lt;/tt&gt; file. It&apos;s a sky line flagged as a CR, as are many other sky lines.&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15092/15092_calexp-1000n.jpg&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="30411" author="price" created="Wed, 2 Feb 2022 20:02:03 +0000"  >&lt;p&gt;After a configuration tweak, the lines aren&apos;t being flagged as CRs so much. Note that this is specific to the simulated data, where the lines are much sharper than in the images from the real instrument.&lt;br/&gt;
I&apos;ve attached some plots of the troublesome lines identified in the original description, showing the problem is much better. The line at 12350 isn&apos;t well subtracted, but maybe that&apos;s a separate issue.&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15096/15096_fixed_11022.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15095/15095_fixed_12286.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15094/15094_fixed_12350.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="30413" author="rhl" created="Wed, 2 Feb 2022 20:12:52 +0000"  >&lt;p&gt;Can you quantify, &quot;lines aren&apos;t being flagged as CRs so much&quot;?&lt;/p&gt;

&lt;p&gt;Also, the original complaint was about sky subtraction residuals.  &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=vlebrun&quot; class=&quot;user-hover&quot; rel=&quot;vlebrun&quot;&gt;vlebrun&lt;/a&gt;: does that mean that you weren&apos;t looking at the CR flags, or are they not being properly propagated?&lt;/p&gt;</comment>
                            <comment id="30414" author="vlebrun" created="Wed, 2 Feb 2022 20:32:56 +0000"  >&lt;p&gt;Actually I did not check wether it was CR or sky line residuals (did not even realize there was a flag, we should definitely use it to avoid this kind of trouble), but the fact that I found some at various location seems to indicate that CR might be the explanation&lt;/p&gt;</comment>
                            <comment id="30415" author="price" created="Wed, 2 Feb 2022 20:38:35 +0000"  >&lt;p&gt;You can see in the original spectra posted that there are missing pixels (most conspicuous in the lower green line).&lt;/p&gt;

&lt;p&gt;As for quantifying, I offer the following from my notes:&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;
Try modifying the FWHM value used by the cosmic ray finder.

repair.interp.modelPsf.defaultFwhm=3.0 (&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;): reduceExposure.repair INFO: Identified 58346 cosmic rays.
repair.interp.modelPsf.defaultFwhm=2.0: reduceExposure.repair INFO: Identified 20666 cosmic rays.
repair.interp.modelPsf.defaultFwhm=1.5: reduceExposure.repair INFO: Identified 12285 cosmic rays.
repair.interp.modelPsf.defaultFwhm=1.0: reduceExposure.repair INFO: Identified 8376 cosmic rays.

Even with defaultFwhm=1.5, getting LOTS of sky lines flagged (though now they tend to be fainter).
defaultFwhm=1.0 still gets some sky lines flagged, but looks much better.
Can we perhaps &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; defaultFwhm=1.5 and modify cond3_fac? Default cond3_fac is 2.5.

repair.interp.modelPsf.defaultFwhm=1.5 repair.cosmicray.cond3_fac=10: reduceExposure.repair INFO: Identified 1007 cosmic rays.

The result actually looks pretty good. Real CRs are getting flagged, but no (or at least, not many) sky lines.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="30416" author="price" created="Wed, 2 Feb 2022 20:40:04 +0000"  >&lt;p&gt;Also dropping this figure posted to Slack:&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15097/15097_calexp-1000n-crFix.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;br/&gt;
Right: current defaults. Left: &lt;tt&gt;repair.interp.modelPsf.defaultFwhm=1.5 repair.cosmicray.cond3_fac=10&lt;/tt&gt;. The sky lines are left alone, but we&#8217;re still finding those real cosmics.&lt;/p&gt;</comment>
                            <comment id="30417" author="rhl" created="Wed, 2 Feb 2022 20:43:35 +0000"  >&lt;p&gt;Looks good, thanks.  We do flag too many pixels around a CR, but that&apos;s a different (and not new?) problem.&lt;/p&gt;</comment>
                            <comment id="30418" author="price" created="Wed, 2 Feb 2022 20:55:57 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=vlebrun&quot; class=&quot;user-hover&quot; rel=&quot;vlebrun&quot;&gt;vlebrun&lt;/a&gt;, when reporting problems could you also please ensure you record all the necessary information to be able to reproduce the plots? In this case, the &lt;tt&gt;nVisit&lt;/tt&gt; and &lt;tt&gt;pfsVisitHash&lt;/tt&gt; aren&apos;t available, and I had to guess since I have two pfsObjects with different &lt;tt&gt;pfsVisitHash&lt;/tt&gt; (I&apos;m guessing because of separate processing in the &quot;weekly&quot; and &quot;science&quot; datasets). Just showing the full filename would be sufficient.&lt;/p&gt;</comment>
                            <comment id="30419" author="rhl" created="Wed, 2 Feb 2022 20:57:36 +0000"  >&lt;p&gt;And if you can&apos;t specify enough information for Paul then we need to fix our book-keeping.&lt;/p&gt;</comment>
                            <comment id="30420" author="vlebrun" created="Wed, 2 Feb 2022 21:15:21 +0000"  >&lt;p&gt;Sure I will take care of this (actually we truncate the file name when converting them into local format so it&apos;s easy to correct)&lt;/p&gt;</comment>
                            <comment id="30421" author="rhl" created="Wed, 2 Feb 2022 21:19:35 +0000"  >&lt;p&gt;The info you need should be in the header too&lt;/p&gt;</comment>
                            <comment id="30457" author="price" created="Mon, 14 Feb 2022 20:24:27 +0000"  >&lt;p&gt;The &lt;tt&gt;tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-972&quot; title=&quot;Unproperly masked/identified sky line residuals&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-972&quot;&gt;&lt;del&gt;PIPE2D-972&lt;/del&gt;&lt;/a&gt;&lt;/tt&gt; contains fixes for &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-956&quot; title=&quot;Variance is over-estimated in the weekly run&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-956&quot;&gt;&lt;del&gt;PIPE2D-956&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-976&quot; title=&quot;Flux of medium resolution arm in simulated pfsObjects looks overestimated&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-976&quot;&gt;&lt;del&gt;PIPE2D-976&lt;/del&gt;&lt;/a&gt; in addition to &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-972&quot; title=&quot;Unproperly masked/identified sky line residuals&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-972&quot;&gt;&lt;del&gt;PIPE2D-972&lt;/del&gt;&lt;/a&gt; (all involved improving the quality of science outputs, so I wanted to make sure fixing one didn&apos;t break the others).&lt;/p&gt;</comment>
                            <comment id="30469" author="hassan" created="Wed, 16 Feb 2022 19:44:11 +0000"  >&lt;p&gt;All changes look good.&lt;/p&gt;</comment>
                            <comment id="30470" author="price" created="Wed, 16 Feb 2022 19:48:03 +0000"  >&lt;p&gt;Merged.&lt;/p&gt;</comment>
                            <comment id="33217" author="price" created="Mon, 19 Jun 2023 20:01:54 +0000"  >&lt;p&gt;Just discovered that the changes to pfs_pipe2d (CR parameter tuning for sims data) hadn&apos;t been merged, and merged them.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="15097" name="calexp-1000n-crFix.png" size="258309" author="price" created="Wed, 2 Feb 2022 20:39:10 +0000"/>
                            <attachment id="15092" name="calexp-1000n.jpg" size="126125" author="price" created="Tue, 1 Feb 2022 22:38:34 +0000"/>
                            <attachment id="15096" name="fixed_11022.png" size="39930" author="price" created="Wed, 2 Feb 2022 19:57:39 +0000"/>
                            <attachment id="15095" name="fixed_12286.png" size="42577" author="price" created="Wed, 2 Feb 2022 19:57:39 +0000"/>
                            <attachment id="15094" name="fixed_12350.png" size="41246" author="price" created="Wed, 2 Feb 2022 19:57:38 +0000"/>
                            <attachment id="15087" name="Forgotten_skyline_11022.png" size="234325" author="vlebrun" created="Fri, 28 Jan 2022 13:52:06 +0000"/>
                            <attachment id="15088" name="Sky_line_12286.png" size="90539" author="vlebrun" created="Fri, 28 Jan 2022 13:49:48 +0000"/>
                            <attachment id="15086" name="Skyline_12350.png" size="105568" author="vlebrun" created="Fri, 28 Jan 2022 13:56:20 +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|zzs9ul:xxj4</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="130">2DDRP-2022 A</customfieldvalue>

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