<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:58:11 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-796] Allow adjustment of detectorMap in reduceExposure</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-796</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-785&quot; title=&quot;Add option to use tweaked detectorMap to define fiberProfiles&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-785&quot;&gt;&lt;del&gt;PIPE2D-785&lt;/del&gt;&lt;/a&gt; introduced an affine transformation to the detectorMap trace centers when building fiber profiles. This should be generalised so it can be used on any exposure before running &lt;tt&gt;profiles.makeFiberTracesFromDetectorMap&lt;/tt&gt;. We should also persist these important results by some means to make things more repeatable.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15500">PIPE2D-796</key>
            <summary>Allow adjustment of detectorMap in reduceExposure</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 15:09:02 +0000</created>
                <updated>Tue, 4 May 2021 17:39:49 +0000</updated>
                            <resolved>Tue, 4 May 2021 17:39:49 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="19006" author="rhl" created="Fri, 26 Mar 2021 17:04:31 +0000"  >&lt;p&gt;I may be missing something, but at present I think that the only way to update a &lt;tt&gt;DetectorMap&lt;/tt&gt; is with &lt;tt&gt;reduceArc&lt;/tt&gt; (I may be missing some bootstrap commands). &#160;I think we need to generalise that to allow a combination of arcs and continuum exposures (quartz or moonlight), as especially in the blue we don&apos;t have enough lines to define the location of the traces very well.&lt;/p&gt;

&lt;p&gt;As I&apos;ve probably written in a different ticket, with a global distortion model, even featureless spectra probably define the spectral solutions pretty well, in a differential sense. &#160;Obviously we&apos;ll use emission lines when we can.&lt;/p&gt;</comment>
                            <comment id="19080" author="rhl" created="Thu, 1 Apr 2021 00:17:56 +0000"  >&lt;p&gt;Looking at the SuNSS data I&apos;m seeing strange patterns in the x (but not y) residuals.  I&apos;m wondering if these are due to the continuum in some of the exposures coming from moonlight (or, for the diffuse fibres, possibly a bright object in the field).   Upon setting &lt;tt&gt;reduceExposure.doSubtractContinuum=True&lt;/tt&gt; to see if this was indeed the problem, I noticed that the sky subtraction wasn&apos;t very good for some of the exposures due to the location of the traces being wrong.   This could/should be handled by updating the DetectorMap, but as we don&apos;t know the cadence on which this will be possible the availability of the low-order tweaks provided by this ticket will significantly improve the sky subtraction.&lt;br/&gt;
I do not yet know if the continuum is the source of the problems that I&apos;m seeing.&lt;/p&gt;</comment>
                            <comment id="19110" author="rhl" created="Wed, 7 Apr 2021 22:04:11 +0000"  >&lt;p&gt;While you&apos;re in the code, is there a reason why &lt;tt&gt;FitDifferentialDetectorMapTask.run&lt;/tt&gt; takes four arguments unpacked from &lt;tt&gt;oldDetMap&lt;/tt&gt; instead of the old &lt;tt&gt;DetectorMap&lt;/tt&gt; itself?  And it appears to want a &lt;tt&gt;VisitInfo&lt;/tt&gt; purely for the sake of a random seed (is that right?).  &lt;/p&gt;</comment>
                            <comment id="19111" author="rhl" created="Wed, 7 Apr 2021 22:20:08 +0000"  >&lt;p&gt;And please add a &lt;tt&gt;_DefaultName&lt;/tt&gt; to &lt;tt&gt;FitDifferentialDetectorMapTask&lt;/tt&gt; and all other PFS tasks that don&apos;t have one.&lt;/p&gt;</comment>
                            <comment id="19131" author="rhl" created="Tue, 13 Apr 2021 23:13:10 +0000"  >&lt;p&gt;See also&#160;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-809&quot; title=&quot;Update DetectorMap from a combination of arcs and flats&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-809&quot;&gt;&lt;del&gt;PIPE2D-809&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="19132" author="rhl" created="Wed, 14 Apr 2021 01:22:32 +0000"  >&lt;p&gt;I&apos;ve pushed a quick hack (no proper config etc.) to &lt;tt&gt;u/rhl/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-796&quot; title=&quot;Allow adjustment of detectorMap in reduceExposure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-796&quot;&gt;&lt;del&gt;PIPE2D-796&lt;/del&gt;&lt;/a&gt;&lt;/tt&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="19140" author="price" created="Wed, 14 Apr 2021 16:24:21 +0000"  >&lt;p&gt;&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; I don&apos;t see anything in your branch that corresponds to the goal of this ticket. Are you wanting me to incorporate your work? Otherwise, I think you should put it on a separate ticket for review and merge.&lt;/p&gt;</comment>
                            <comment id="19141" author="price" created="Wed, 14 Apr 2021 16:31:34 +0000"  >&lt;p&gt;Sorry, I take it back. I see something relevant in the commit labelled &quot;Hack hack hack&quot;.&lt;/p&gt;</comment>
                            <comment id="19171" author="rhl" created="Sun, 18 Apr 2021 21:56:55 +0000"  >&lt;p&gt;Paul asked me to add a note about exactly what I&apos;m looking for in the related tickets &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-785&quot; title=&quot;Add option to use tweaked detectorMap to define fiberProfiles&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-785&quot;&gt;&lt;del&gt;PIPE2D-785&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-796&quot; title=&quot;Allow adjustment of detectorMap in reduceExposure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-796&quot;&gt;&lt;del&gt;PIPE2D-796&lt;/del&gt;&lt;/a&gt;, and &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-809&quot; title=&quot;Update DetectorMap from a combination of arcs and flats&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-809&quot;&gt;&lt;del&gt;PIPE2D-809&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I&apos;d like to use the global properties of the DetectorMap wherever possible, so whenever we need accurate positions of spectral features (in x and/or y) I&apos;d like to see the workflow being:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;tweak the DetectorMap if necessary&#160;&lt;/li&gt;
	&lt;li&gt;use the DetectorMap as the truth.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;In some cases this may require extra or repeated image processing (&lt;em&gt;e.g.&lt;/em&gt;&#160;&lt;tt&gt;reduceExposure&lt;/tt&gt; needs to run &lt;tt&gt;reduceArc&lt;/tt&gt; to update the detector map, and possibly part of &lt;tt&gt;ConstructFiberProfilesTask&lt;/tt&gt; too).&lt;/p&gt;

&lt;p&gt;That&apos;s why I expected &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-785&quot; title=&quot;Add option to use tweaked detectorMap to define fiberProfiles&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-785&quot;&gt;&lt;del&gt;PIPE2D-785&lt;/del&gt;&lt;/a&gt; to be part of the solution to the other two tickets, although I am not sure that it&apos;s worth going back and redoing the work at this point.&lt;/p&gt;

&lt;p&gt;Because the DetectorMap is fundamentally about &lt;tt&gt;(x, y)&lt;/tt&gt; the tweak code should be based on &lt;tt&gt;(x0, y0, x, y)&lt;/tt&gt; rather than &lt;tt&gt;(x0, lambda0, x, lambda)&lt;/tt&gt;, which I believe to be the current API and one reason I didn&apos;t address this ticket myself. If we also include the errors in the positions &lt;tt&gt;(dx, dy)&lt;/tt&gt; we should be able to use the same code to handle arcs (with small dx and small dy) and fibres (with large dy).&lt;/p&gt;</comment>
                            <comment id="19253" author="price" created="Mon, 3 May 2021 23:23:48 +0000"  >&lt;p&gt;Finally ready for review; sorry about the delays.&lt;/p&gt;</comment>
                            <comment id="19257" author="hassan" created="Tue, 4 May 2021 13:13:12 +0000"  >&lt;p&gt;Quite a few big changes, but changes look OK to me. No specific comments to address.&lt;/p&gt;</comment>
                            <comment id="19261" author="price" created="Tue, 4 May 2021 17:39:49 +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|02qpt6:508yl0chzzy0000029</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="105">2DDRP-2021 A 4</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>