<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:04:54 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-1248] Reconsider the scaling of fluxes in pfsMerged, and the use of Jacobians in interpolation</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1248</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&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; &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1242?focusedCommentId=33275&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-33275&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;pointed out&lt;/a&gt; a possible bug in the conversion of pfsArm to pfsMerged fluxes (where we convert from electrons to electrons/nm, and resample to a common grid). Here I will reconsider and/or attempt to justify the current scaling and resampling.&lt;/p&gt;

&lt;p&gt;It&apos;s worth pointing out that &lt;b&gt;none&lt;/b&gt; of this affects the final flux calibration of pfsSingle and pfsObject (because those have applied a separate scaling using standard stars), only the scaling of pfsMerged.&lt;/p&gt;</description>
                <environment></environment>
        <key id="23680">PIPE2D-1248</key>
            <summary>Reconsider the scaling of fluxes in pfsMerged, and the use of Jacobians in interpolation</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</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="price">price</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Jul 2023 16:38:17 +0000</created>
                <updated>Thu, 13 Jul 2023 19:08:47 +0000</updated>
                            <resolved>Thu, 13 Jul 2023 19:08:47 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="33986" author="price" created="Mon, 10 Jul 2023 19:23:12 +0000"  >&lt;p&gt;I believe the current code treats the flux units of pfsMerged as &quot;electrons per nm per pixel&quot;, rather than the desired &quot;electrons per nm&quot;, because as the pixel size changes (when we interpolate) the code attempts to correct for it (through the application of the Jacobian). The error I reminds me of what &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; has said before in the context of imaging pixels: that the value of the image at a particular position is value of whatever measurement at the center of the pixel, not the integrated value over the pixel.&lt;/p&gt;

&lt;p&gt;So the flux shouldn&apos;t care how the sampling changes when we interpolate (because we only care about the value at the center of the pixel; the size of the pixel doesn&apos;t matter). Then I should remove the Jacobian correction in the interpolation (which is making a correction for how the size of the pixel changes). Dividing the pfsArm flux (in electrons) by the dispersion (nm per pixel) is sufficient to perform the desired conversion from electrons to electrons per nm, and that&apos;s all we need.&lt;/p&gt;

&lt;p&gt;Sorry to have messed up something so elementary.&lt;/p&gt;</comment>
                            <comment id="33994" author="price" created="Tue, 11 Jul 2023 18:41:17 +0000"  >&lt;p&gt;Here&apos;s a demonstration of the new scaling, with no Jacobians. The pfsMerged flux is boosted at red end of the blue (because the dispersion there hits 0.065 nm/pix), and suppressed at the blue end of the red (dispersion 0.088 nm/pix).&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/16145/16145_pipe2d-1248.png&quot; width=&quot;500&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;I noticed that we were hard-wiring the pfsMerged wavelength sampling to have a dispersion about 0.081 nm/pixel, while the blue dispersion varies between 0.065 and 0.070 and the red between 0.082 and 0.088. So we&apos;re losing data in the blue due to the interpolation. I&apos;ve changed the merging and coadding to use the minimum dispersion for the entire range. That&apos;s demonstrated in this plot of the dispersions (the black line is lower than the bottom of the blue line because the blue line is just for a single fiber in the center, whereas the black line is generated from considering all fibers):&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/16146/16146_pipe2d-1248-dispersion.png&quot; width=&quot;500&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="34002" author="price" created="Thu, 13 Jul 2023 19:08:47 +0000"  >&lt;p&gt;RHL pointed out that a dispersion of 0.08 nm/pixel is called out in the datamodel, so removed that change (tucked it in branch &lt;tt&gt;tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1248&quot; title=&quot;Reconsider the scaling of fluxes in pfsMerged, and the use of Jacobians in interpolation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-1248&quot;&gt;&lt;del&gt;PIPE2D-1248&lt;/del&gt;&lt;/a&gt;-abandoned&lt;/tt&gt; in case we ever need something like it).&lt;/p&gt;

&lt;p&gt;Merged to master.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="16146" name="pipe2d-1248-dispersion.png" size="115883" author="price" created="Tue, 11 Jul 2023 18:34:44 +0000"/>
                            <attachment id="16145" name="pipe2d-1248.png" size="214904" author="price" created="Tue, 11 Jul 2023 17:11:23 +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|zzsylj:</customfieldvalue>

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