<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:58:13 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-799] Correct for Jacobian when resampling</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-799</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;We need to correct for the Jacobian when resampling the wavelengths.&lt;br/&gt;
It would also be helpful to have a function that will provide the dispersion given a position/wavelength.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15504">PIPE2D-799</key>
            <summary>Correct for Jacobian when resampling</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, 26 Mar 2021 19:24:59 +0000</created>
                <updated>Wed, 30 Mar 2022 23:45:30 +0000</updated>
                            <resolved>Mon, 10 Jan 2022 18:02:45 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="19052" author="rhl" created="Fri, 26 Mar 2021 20:22:49 +0000"  >&lt;p&gt;At the same time please support vector-valued dispersion values in &lt;tt&gt;DetectorMap&lt;/tt&gt; (which will probably be needed anyway).  The code can be as simple as this, but it needs to be a method.  If we know more about the insides of the map we should be able to do better.&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-python&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;def&lt;/span&gt; getDispersion(detectorMap, fiberId, wavelength, dwavelength=0.1):
    &quot;&quot;&quot;Return the dispersion &lt;span class=&quot;code-keyword&quot;&gt;in&lt;/span&gt; nm/pixel
    
    detectorMap: DetectorMap
    fiberId: `&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;`
       The fiber whose dispersion &lt;span class=&quot;code-keyword&quot;&gt;is&lt;/span&gt; desired
    wavelength: `&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;` &lt;span class=&quot;code-keyword&quot;&gt;or&lt;/span&gt; iterable &lt;span class=&quot;code-keyword&quot;&gt;or&lt;/span&gt; `&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;`
       Wavelengths where the dispersion &lt;span class=&quot;code-keyword&quot;&gt;is&lt;/span&gt; desired
    dwavelength: `&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;`
       Interval to use &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; finite differencing to determine the dispersion
    &quot;&quot;&quot;
    wavelength = np.atleast_1d(wavelength)
    l0 = detectorMap.findPoint(fiberId, wavelength - 0.5*dwavelength)[:, 1]
    l1 = detectorMap.findPoint(fiberId, wavelength + 0.5*dwavelength)[:, 1]

    dispersion = dwavelength/(l1 - l0)

    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; dispersion
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="30224" author="price" created="Mon, 20 Dec 2021 22:27:01 +0000"  >&lt;p&gt;pfsMerged now has units of summed counts per resampled pixel.&lt;/p&gt;</comment>
                            <comment id="30228" author="price" created="Tue, 21 Dec 2021 00:47:27 +0000"  >&lt;p&gt;Before: &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15058/15058_noJacobian.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;After: &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15057/15057_yesJacobian.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="30229" author="price" created="Tue, 21 Dec 2021 00:48:09 +0000"  >&lt;p&gt;A demonstration that the units of the &lt;tt&gt;pfsMerged&lt;/tt&gt; is summed counts per resampled pixel:&lt;/p&gt;

&lt;p&gt;At 637.4 nm:&lt;br/&gt;
Blue: 43411.88548364646 counts, dispersion 0.06598235465315838 nm/pixel&lt;br/&gt;
Red: 42618.45107528691 counts, dispersion 0.08778364248382786 nm/pixel&lt;br/&gt;
Merged: 93027.31531262455 counts, dispersion 0.08087158203125 nm/pixel&lt;br/&gt;
Note that (blue flux)/(blue dispersion) + (red flux)/(red dispersion) = (merged flux)/(merged dispersion)&lt;br/&gt;
(The error is &amp;lt; 1%. I&#8217;m guessing it&#8217;s not exact because there&#8217;s some variance weighting going on.)&lt;/p&gt;
</comment>
                            <comment id="30301" author="hassan" created="Fri, 7 Jan 2022 22:23:50 +0000"  >&lt;p&gt;Changes look fine to me.&lt;/p&gt;</comment>
                            <comment id="30303" author="price" created="Mon, 10 Jan 2022 18:02:45 +0000"  >&lt;p&gt;Merged.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="22531">INSTRM-1470</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="22692">PIPE2D-1008</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="15058" name="noJacobian.png" size="53367" author="price" created="Tue, 21 Dec 2021 00:46:14 +0000"/>
                            <attachment id="15057" name="yesJacobian.png" size="57662" author="price" created="Tue, 21 Dec 2021 00:46:14 +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|zzs5b5:zzzzzy</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="122">2DDRP-2021 A 10</customfieldvalue>
    <customfieldvalue id="126">2DDRP-2021 A12</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>