<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:01: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-1016] pfsArm.flux and pfsArm.sky values differ in scale</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1016</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;This was 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; on 2022-03-22 during preparations towards the 2022 PFS Collaboration meeting.&lt;/p&gt;

&lt;p&gt;It appears that the scaling for &lt;tt&gt;pfsArm.flux&lt;/tt&gt; values and &lt;tt&gt;pfsArm.sky&lt;/tt&gt; values are different. For example, taking visit 71280 and looking at a line around 799.5 nm:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;base, rerun = &quot;/projects/HSC/PFS/Subaru&quot;, &quot;hassans/sunss/subcont_applygains_calibpfi_fix_2022-03-22_18-40-11&quot;&lt;/p&gt;

&lt;p&gt;dataDir = os.path.join(base, &quot;rerun&quot;, rerun)&lt;br/&gt;
calibRoot = os.path.join(base, &quot;CALIB-PFI-20211220&quot;)&lt;br/&gt;
butler = dafPersist.Butler(dataDir, calibRoot=calibRoot)&lt;/p&gt;

&lt;p&gt;dataId = dict(visit=71280, arm=&quot;r&quot;, spectrograph=1)&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Yields values of the order of a 1000 for the flux, but a factor of 10^5 lower for the sky:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;pfsArm = butler.get(&quot;pfsArm&quot;, dataId)&lt;/p&gt;

&lt;p&gt;indx = np.where((pfsArm.wavelength&lt;span class=&quot;error&quot;&gt;&amp;#91;10&amp;#93;&lt;/span&gt; &amp;gt;= 799.4) &amp;amp; (pfsArm.wavelength&lt;span class=&quot;error&quot;&gt;&amp;#91;10&amp;#93;&lt;/span&gt; &amp;lt;=799.9))&lt;/p&gt;

&lt;p&gt;pfsArm.flux&lt;span class=&quot;error&quot;&gt;&amp;#91;10&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;indx&amp;#93;&lt;/span&gt;&lt;br/&gt;
    array([6572.44310536, 7552.88526952, 5728.66099982, 1516.84257811,&lt;br/&gt;
        193.36381803])&lt;/p&gt;

&lt;p&gt;pfsArm.sky&lt;span class=&quot;error&quot;&gt;&amp;#91;10&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;indx&amp;#93;&lt;/span&gt;&lt;br/&gt;
   array(&lt;span class=&quot;error&quot;&gt;&amp;#91;0.00693071, 0.0069277 , 0.00692467, 0.00692161, 0.00691854&amp;#93;&lt;/span&gt;)&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
        <key id="22706">PIPE2D-1016</key>
            <summary>pfsArm.flux and pfsArm.sky values differ in scale</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:55:41 +0000</created>
                <updated>Wed, 30 Mar 2022 19:23:50 +0000</updated>
                            <resolved>Wed, 30 Mar 2022 19:23:50 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="30655" author="price" created="Wed, 30 Mar 2022 18:08:25 +0000"  >&lt;p&gt;Fixed:&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;
$ reduceExposure.py /projects/HSC/PFS/Subaru --calib /projects/HSC/PFS/Subaru/CALIB-SuNSS-20220314 --rerun=price/pipe2d-1016 --id visit=71280 arm=r -c isr.doFlat=False isr.doApplyGains=True doSubtractContinuum=True

&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; butler = Butler(&lt;span class=&quot;code-quote&quot;&gt;&quot;/projects/HSC/PFS/Subaru/rerun/price/pipe2d-1016&quot;&lt;/span&gt;)
&amp;gt;&amp;gt;&amp;gt; pfsArm = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;pfsArm&quot;&lt;/span&gt;, visit=71280, arm=&lt;span class=&quot;code-quote&quot;&gt;&quot;r&quot;&lt;/span&gt;)
&amp;gt;&amp;gt;&amp;gt; select = (pfsArm.wavelength[10] &amp;gt;= 799.4) &amp;amp; (pfsArm.wavelength[10] &amp;lt;= 799.9) 
&amp;gt;&amp;gt;&amp;gt; pfsArm.flux[10][select]
array([6413.27605647, 7374.49139093, 5607.81190923, 1495.03559889,
        176.85520602])
&amp;gt;&amp;gt;&amp;gt; pfsArm.sky[10][select]
array([1676.01981114, 1660.04399026, 1675.39180415, 1676.25916746,
       1680.85150211])
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="30656" author="hassan" created="Wed, 30 Mar 2022 19:22:02 +0000"  >&lt;p&gt;Scaling changes in &lt;a href=&quot;https://github.com/Subaru-PFS/drp_stella/pull/261&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/drp_stella/pull/261&lt;/a&gt;&#160;approved.&lt;/p&gt;</comment>
                            <comment id="30657" author="price" created="Wed, 30 Mar 2022 19:23:50 +0000"  >&lt;p&gt;Merged.&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_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|zzstgf:</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_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        </customfields>
    </item>
</channel>
</rss>