<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:59:41 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-914] Add support for SpS fast-mode exposure format</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-914</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/INSTRM-1397&quot; title=&quot;Fast SpS reads for cobra moves behind blackspots&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-1397&quot;&gt;&lt;del&gt;INSTRM-1397&lt;/del&gt;&lt;/a&gt; request a new format for fast SpS exposures to aid in cobra positioning. Once that is available, please process that in the DRP (ISR and flux measurement per fiber).&lt;/p&gt;</description>
                <environment></environment>
        <key id="18240">PIPE2D-914</key>
            <summary>Add support for SpS fast-mode exposure format</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>
                            <label>EngRun</label>
                    </labels>
                <created>Mon, 11 Oct 2021 17:38:01 +0000</created>
                <updated>Fri, 12 Nov 2021 00:48:58 +0000</updated>
                            <resolved>Fri, 12 Nov 2021 00:48:58 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="22547" author="price" created="Mon, 11 Oct 2021 17:48:53 +0000"  >&lt;p&gt;How are the results to be delivered?&lt;/p&gt;</comment>
                            <comment id="22548" author="cloomis" created="Mon, 11 Oct 2021 18:03:58 +0000"  >&lt;p&gt;For row-windowed reads, I propose normal-sized PFSA files with the unread rows set to 0, and with some informative keywords.  Or would you prefer something far different from regular PFSA files? Not sure what I&apos;d do about binned images.&lt;/p&gt;</comment>
                            <comment id="22549" author="price" created="Mon, 11 Oct 2021 18:30:36 +0000"  >&lt;p&gt;For row-windowed reads, I like the solution of setting unread rows to zero: with compression enabled we won&apos;t be wasting space, and this enables us to use the usual code without much in the way of changes.&lt;/p&gt;

&lt;p&gt;I think binning in the spatial dimension should be ruled out, as any binning will confuse the fibers. I wonder what we could gain from binning in the spectral dimension that we can&apos;t achieve through windowing. The only thing I can think of is spectral coverage, but I can&apos;t imagine using arcs for this purpose rather than a continuum source. I therefore suggest we not consider any form of binning.&lt;/p&gt;</comment>
                            <comment id="22550" author="price" created="Mon, 11 Oct 2021 18:33:41 +0000"  >&lt;p&gt;But I forgot to say: my original question was regarding the format for the results from the pipeline (presumably a &lt;tt&gt;dict&lt;/tt&gt; mapping fiberIds to flux measurements). Who/what needs the results, and what format would be most suitable?&lt;/p&gt;</comment>
                            <comment id="22551" author="rhl" created="Mon, 11 Oct 2021 18:33:52 +0000"  >&lt;p&gt;Jim-sensei believes that we&apos;ll need to bin.  I&apos;m not sure that he&apos;s right in this case, and am happy to postpone that part of the work.&lt;/p&gt;</comment>
                            <comment id="24783" author="rhl" created="Mon, 25 Oct 2021 18:19:28 +0000"  >&lt;p&gt;Why is this still in the sprint?  I think we decided not to implement binning&lt;/p&gt;</comment>
                            <comment id="24784" author="hassan" created="Mon, 25 Oct 2021 19:37:11 +0000"  >&lt;p&gt;Agreed. Removing that ticket from the eng run sprint.&lt;/p&gt;</comment>
                            <comment id="24980" author="cloomis" created="Tue, 9 Nov 2021 18:46:42 +0000"  >&lt;p&gt;When reading a band of rows, W_CDROW0 and W_CDROWN are added to the PHDU. All pixels outside that band are set to 0. Other that they, they are normal PFSA files. Will try getting some from SuNSS.&lt;/p&gt;</comment>
                            <comment id="25003" author="hassan" created="Wed, 10 Nov 2021 18:52:15 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=cloomis&quot; class=&quot;user-hover&quot; rel=&quot;cloomis&quot;&gt;cloomis&lt;/a&gt; will provide &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=price&quot; class=&quot;user-hover&quot; rel=&quot;price&quot;&gt;price&lt;/a&gt; test data by tomorrow (Thu) evening for Paul to check.&lt;/p&gt;</comment>
                            <comment id="25021" author="cloomis" created="Thu, 11 Nov 2021 04:07:58 +0000"  >&lt;p&gt;Example file ingested on tiger. visit=69294 arm=r. SuNSS within the dome; am guessing with dome lights.&lt;/p&gt;</comment>
                            <comment id="25035" author="price" created="Thu, 11 Nov 2021 21:21:46 +0000"  >&lt;p&gt;&lt;tt&gt;reduceExposure.py&lt;/tt&gt; kind of worked on the test data, but there were a few problems:&lt;br/&gt;
1. The speed was much too slow (80 sec, even with &lt;tt&gt;doAdjustDetectorMap=False&lt;/tt&gt;).&lt;br/&gt;
2. The unread area was not masked.&lt;br/&gt;
3. The good area was on a pedestal of about 1400 counts.&lt;/p&gt;

&lt;p&gt;To fix:&lt;br/&gt;
1. Added a switch to &lt;tt&gt;reduceExposure&lt;/tt&gt; to disable emission line photometry (&lt;tt&gt;doMeasureLines=False&lt;/tt&gt;), which reduces the runtime down to about 14 sec.&lt;br/&gt;
2. Added code in ISR to mask zero pixels. This is done before overscan subtraction, so the bad pixels can be excluded from the overscan. Slightly annoyingly, this requires masking the pixels &lt;tt&gt;SAT&lt;/tt&gt; (mask value for overscans is hard-wired). I added &lt;tt&gt;NO&amp;#95;DATA&lt;/tt&gt; to make it a bit clearer what&apos;s going on.&lt;br/&gt;
3. The great reduction in overscan real estate means we need to use a different overscan method, like &lt;tt&gt;overscanFitType=MEDIAN&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;I recommend a command-line something like:&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-PFI-20211108/ --rerun price/pipe2d-914 --id visit=69294 -c isr.doFlat=False doAdjustDetectorMap=False doMeasureLines=False isr.overscanFitType=MEDIAN
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="25036" author="rhl" created="Thu, 11 Nov 2021 22:15:25 +0000"  >&lt;p&gt;We know that these data are going to need these tweaks.  Can we look at the metadata and set them automatically?&lt;/p&gt;</comment>
                            <comment id="25037" author="price" created="Thu, 11 Nov 2021 22:23:28 +0000"  >&lt;p&gt;The detectorMap adjustment can be done (at least, in the red; wouldn&apos;t try it in the blue) at the cost of about 20 sec (total runtime 36 sec):&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-PFI-20211108/ --rerun price/pipe2d-914 --id visit=69294 -c doWriteCalexp=True isr.doFlat=False doAdjustDetectorMap=True doMeasureLines=False isr.overscanFitType=MEDIAN centroidLines.doSubtractContinuum=False
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I don&apos;t know how we could possibly apply the adjustment by looking at the header.&lt;/p&gt;</comment>
                            <comment id="25038" author="rhl" created="Thu, 11 Nov 2021 22:47:24 +0000"  >&lt;p&gt;I meant adjustment to the configs.  So that a simple &lt;tt&gt;reduceExposure.py /projects/HSC/PFS/Subaru --calib /projects/HSC/PFS/Subaru/CALIB-PFI-20211108/ --rerun price/pipe2d-914 --id visit=69294&lt;/tt&gt; would work&lt;/p&gt;</comment>
                            <comment id="25039" author="price" created="Thu, 11 Nov 2021 22:58:50 +0000"  >&lt;p&gt;We could have the detectorMap adjustment and line measurement also respond to the presence of header keywords, but &lt;tt&gt;isr.overscanFitType&lt;/tt&gt; is used deep in a massive LSST function, so overriding that would be real messy. We could do it, but blrgh!&lt;/p&gt;</comment>
                            <comment id="25040" author="hassan" created="Thu, 11 Nov 2021 23:02:21 +0000"  >&lt;p&gt;Sorry to add another request, but after reviewing the code, I would have thought it better to apply masks based on the (inverse to the) region defined by the &lt;tt&gt;W_CDROW0&lt;/tt&gt; and &lt;tt&gt;W_CDROWN&lt;/tt&gt; keywords. See earlier comment by &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=cloomis&quot; class=&quot;user-hover&quot; rel=&quot;cloomis&quot;&gt;cloomis&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="25041" author="price" created="Thu, 11 Nov 2021 23:14:41 +0000"  >&lt;p&gt;I think that the approach I&apos;ve adopted (masking zero-valued pixels in the raw) is superior. It means I don&apos;t have to muck around with xy0 on the raw, and it catches problems in the full readouts as well.&lt;/p&gt;</comment>
                            <comment id="25042" author="rhl" created="Thu, 11 Nov 2021 23:21:09 +0000"  >&lt;p&gt;Back to configs.  So the problem is that the configs are frozen before we read the metadata?  That&apos;s true.  So I think I&apos;d add an option for  &quot;this sort of data&quot; and have that set your magic values.  Would that work?&lt;/p&gt;</comment>
                            <comment id="25043" author="price" created="Thu, 11 Nov 2021 23:23:03 +0000"  >&lt;p&gt;Why don&apos;t we just add a configuration file to be used for &quot;this sort of data&quot;?&lt;/p&gt;</comment>
                            <comment id="25044" author="rhl" created="Thu, 11 Nov 2021 23:25:53 +0000"  >&lt;p&gt;a `-C` file in a well-known place?  Is that really cleaner?&lt;/p&gt;</comment>
                            <comment id="25045" author="price" created="Thu, 11 Nov 2021 23:27:11 +0000"  >&lt;p&gt;I don&apos;t know how to make it work cleanly otherwise.&lt;/p&gt;</comment>
                            <comment id="25046" author="rhl" created="Thu, 11 Nov 2021 23:28:53 +0000"  >&lt;p&gt;Can&apos;t you set values in the config validate function?&lt;/p&gt;</comment>
                            <comment id="25048" author="price" created="Fri, 12 Nov 2021 00:05:15 +0000"  >&lt;p&gt;We could tweak the ISR configuration based on a &lt;tt&gt;reduceExposure&lt;/tt&gt; configuration, but not a header keyword.&lt;/p&gt;</comment>
                            <comment id="25049" author="rhl" created="Fri, 12 Nov 2021 00:16:11 +0000"  >&lt;p&gt;That was what my &apos;an option for &quot;this sort of data&quot; and have that set your magic values&apos; proposal was supposed to mean.&lt;/p&gt;</comment>
                            <comment id="25050" author="price" created="Fri, 12 Nov 2021 00:22:42 +0000"  >&lt;p&gt;OK, here &apos;tis:&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-PFI-20211108/ --rerun price/pipe2d-914 --id visit=69294 -c isr.doFlat=False quickLook=True
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="25051" author="rhl" created="Fri, 12 Nov 2021 00:35:51 +0000"  >&lt;p&gt;I&apos;m sorry, but &lt;tt&gt;quicklook&lt;/tt&gt; isn&apos;t correct &amp;#8211; that implies e.g. cheap sky subtraction.  This is closer to &lt;tt&gt;windowed&lt;/tt&gt;&lt;/p&gt;</comment>
                            <comment id="25052" author="price" created="Fri, 12 Nov 2021 00:39:00 +0000"  >&lt;p&gt;Renamed to &lt;tt&gt;windowed&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="25054" author="price" created="Fri, 12 Nov 2021 00:48:58 +0000"  >&lt;p&gt;Merged.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="18275">INSTRM-1414</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="18239">INSTRM-1397</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="18331">INSTRM-1439</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|zzs9ul:xi</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="125">2DDRP-2021 A11</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        </customfields>
    </item>
</channel>
</rss>