<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:01:35 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-1024] Convert pfsMerged fluxes to electrons/nm</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1024</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;&lt;tt&gt;pfsMerged&lt;/tt&gt; fluxes are currently in electrons per wavelength sample (since the wavelength sampling is similar to the original sampling, the fluxes are roughly in units of electrons per pixel like in the pfsArm files). We agreed in the Princeton meeting today that it would be better if the &lt;tt&gt;pfsMerged&lt;/tt&gt; were in units of &lt;tt&gt;electrons/nm&lt;/tt&gt;.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Change the units of the &lt;tt&gt;pfsMerged&lt;/tt&gt; fluxes.&lt;/li&gt;
	&lt;li&gt;Check that this doesn&apos;t break the calibrated fluxes in the &lt;tt&gt;pfsObject&lt;/tt&gt; files.&lt;/li&gt;
	&lt;li&gt;Document the flux units of &lt;tt&gt;pfsArm&lt;/tt&gt; and &lt;tt&gt;pfsMerged&lt;/tt&gt; in &lt;tt&gt;datamodel.txt&lt;/tt&gt;.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="22735">PIPE2D-1024</key>
            <summary>Convert pfsMerged fluxes to electrons/nm</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="price">price</assignee>
                                    <reporter username="price">price</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Apr 2022 18:49:53 +0000</created>
                <updated>Fri, 10 Jun 2022 18:08:02 +0000</updated>
                            <resolved>Fri, 10 Jun 2022 18:08:02 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="30984" author="hassan" created="Fri, 3 Jun 2022 13:56:26 +0000"  >&lt;p&gt;This blocks &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; from his throughput analysis work.&lt;/p&gt;</comment>
                            <comment id="31020" author="price" created="Fri, 10 Jun 2022 15:45:33 +0000"  >&lt;p&gt;pfsMerged files now have flux units of electrons per nm, as demonstrated in this plot from &lt;tt&gt;visit=68351&lt;/tt&gt; (a quartz with PFI):&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/15208/15208_pipe2d-1024.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&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 ~/pfs/Subaru --calib ~/pfs/Subaru/CALIB-PFI-20211220 --rerun pipe2d-1024 --id visit=68351 -j 2 -c isr.doFlat=False doAdjustDetectorMap=False doMeasureLines=False repair.doCosmicRay=False --no-versions
mergeArms.py ~/pfs/Subaru --calib ~/pfs/Subaru/CALIB-PFI-20211220 --rerun pipe2d-1024 --id visit=68351 -c doSubtractSky1d=False

&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; matplotlib.pyplot as plt
from lsst.daf.persistence &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; Butler
from pfs.drp.stella.interpolate &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; calculateDispersion
butler = Butler(&lt;span class=&quot;code-quote&quot;&gt;&quot;/home/pfs/pfs/Subaru/rerun/pipe2d-1024&quot;&lt;/span&gt;)
red = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;pfsArm&quot;&lt;/span&gt;, visit=68351, arm=&lt;span class=&quot;code-quote&quot;&gt;&quot;r&quot;&lt;/span&gt;)
blue = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;pfsArm&quot;&lt;/span&gt;, visit=68351, arm=&lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt;)
merged = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;pfsMerged&quot;&lt;/span&gt;, visit=68351)
fiberIndex = 309  # fiberId = 339
fig, axes = plt.subplots()
axes.plot(red.wavelength[fiberIndex], red.flux[fiberIndex], &lt;span class=&quot;code-quote&quot;&gt;&quot;r-&quot;&lt;/span&gt;)
axes.plot(blue.wavelength[fiberIndex], blue.flux[fiberIndex], &lt;span class=&quot;code-quote&quot;&gt;&quot;b-&quot;&lt;/span&gt;)
plt.xlabel(&lt;span class=&quot;code-quote&quot;&gt;&quot;Wavelength (nm)&quot;&lt;/span&gt;)
plt.ylabel(&lt;span class=&quot;code-quote&quot;&gt;&quot;Arm flux (counts)&quot;&lt;/span&gt;)
plt.xlim((350, 1000))
plt.twinx()
plt.plot(merged.wavelength[fiberIndex], merged.flux[fiberIndex], &lt;span class=&quot;code-quote&quot;&gt;&quot;k-&quot;&lt;/span&gt;)
plt.ylabel(&lt;span class=&quot;code-quote&quot;&gt;&quot;Merged flux (counts/nm)&quot;&lt;/span&gt;)
plt.show()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="31022" author="price" created="Fri, 10 Jun 2022 15:48:23 +0000"  >&lt;p&gt;Oh, the &lt;tt&gt;isr.doApplyGains&lt;/tt&gt; config parameter should now be left alone. Attempts to switch it on (as we have been doing) will be met with an error.&lt;/p&gt;</comment>
                            <comment id="31025" author="price" created="Fri, 10 Jun 2022 15:59:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=arnaud.lefur&quot; class=&quot;user-hover&quot; rel=&quot;arnaud.lefur&quot;&gt;arnaud.lefur&lt;/a&gt;, RHL asked me to check with you that these changes don&apos;t invalidate your audit of the extractions. I think the important changes are:&lt;br/&gt;
1. The gains are now automatically applied; you should not (and cannot) set &lt;tt&gt;isr.doApplyGains=True&lt;/tt&gt;.&lt;br/&gt;
2. The &lt;tt&gt;pfsMerged&lt;/tt&gt; file now contains fluxes in units of electrons/nm. The normalisation has also changed to be in the same units, so that the normalised flux is consistent with what it was previously.&lt;/p&gt;

&lt;p&gt;My opinion is that these changes should not change any of your conclusions, but please correct me if I am wrong.&lt;/p&gt;</comment>
                            <comment id="31029" author="hassan" created="Fri, 10 Jun 2022 18:03:46 +0000"  >&lt;p&gt;Code review complete. Only minor comment about units for &lt;tt&gt;pfsMerged&lt;/tt&gt; files being in &lt;tt&gt;electron/nm&lt;/tt&gt; rather than &lt;tt&gt;counts/nm&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="31030" author="hassan" created="Fri, 10 Jun 2022 18:05:44 +0000"  >&lt;p&gt;Given that &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=arnaud.lefur&quot; class=&quot;user-hover&quot; rel=&quot;arnaud.lefur&quot;&gt;arnaud.lefur&lt;/a&gt; will not have time to perform his audit for the next week or so with the June Engineering Run looming, and that this issue is blocking for &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;, we will proceed to merge the proposed changes to master. Arnaud can perform his audit when he is next available, as part of a separate ticket. Thus any problems he may find will be addressed as part of that separate ticket.&lt;/p&gt;</comment>
                            <comment id="31031" author="price" created="Fri, 10 Jun 2022 18:08:02 +0000"  >&lt;p&gt;Merged.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="15062">DAMD-97</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="22692">PIPE2D-1008</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="15208" name="pipe2d-1024.png" size="47965" author="price" created="Fri, 10 Jun 2022 15:42:07 +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:00xznup2c4</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>
    <customfieldvalue id="147">2DDRP-2022 E</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>