<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:52:47 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-404] Support for raw exposures with W_PFDSGN not set</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-404</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;This issue is raised following a discussion on slack channel #drp-2d on 2019-04-09 and today.&lt;/p&gt;

&lt;p&gt;The FITS keyword &lt;tt&gt;W_PFDSGN&lt;/tt&gt; has been set in raw LAM exposures since approx 2010-02-18. The current 2D DRP pipeline currently supports data with this keyword, but not well in scenarios without this keyword. There are a number of developers needing to process LAM exposures before and after this change, so the 2D DRP pipeline needs to be updated to support both scenarios.&lt;/p&gt;

&lt;p&gt;So the scenario where &lt;tt&gt;W_PFSDSGN&lt;/tt&gt; is &lt;em&gt;not&lt;/em&gt; set needs to be supported. It needs to be agreed under this scenario what fibers are assumed to be illuminated (all? none?). If it is assumed that no fibers are illuminated, then &lt;tt&gt;PfiDesign&lt;/tt&gt; needs to be updated, as it currently will not persist an instance if itself if the &lt;tt&gt;fiberId&lt;/tt&gt; is an empty list.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13530">PIPE2D-404</key>
            <summary>Support for raw exposures with W_PFDSGN not set</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="hassan">hassan</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Apr 2019 19:03:43 +0000</created>
                <updated>Wed, 1 May 2019 13:28:19 +0000</updated>
                            <resolved>Sat, 27 Apr 2019 13:44:50 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                <comments>
                            <comment id="15310" author="naoki.yasuda" created="Fri, 12 Apr 2019 02:38:24 +0000"  >&lt;p&gt;The following is the initial setup of the pipeline on &lt;tt&gt;gfarm.ipmu.jp&lt;/tt&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;
$ source /opt/local/pfs/loadLSST.bash
$ setup psf_pipe2d
$ mkdir /gpfs02/work/yasuda/PFS/repo
$ echo &lt;span class=&quot;code-quote&quot;&gt;&quot;lsst.obs.pfs.PfsMapper&quot;&lt;/span&gt; &amp;gt; /gpfs02/work/yasuda/PFS/repo/_mapper
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;When I try to ingest the frame without &lt;tt&gt;W_PFDSGN&lt;/tt&gt;, &lt;tt&gt;ingestPfsImages.py&lt;/tt&gt; complains non availability of &lt;tt&gt;pfiDesign&lt;/tt&gt; file.&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;
$ ingestPfsImages.py /gpfs02/work/yasuda/PFS/repo /gpfs01/pfs/rawdata/2019-02-15/PFLA01194412.fits
CameraMapper INFO: Loading Posix exposure registry from /gpfs02/work/yasuda/PFS/repo
ingestPfs INFO: /gpfs01/pfs/rawdata/2019-02-15/PFLA01194412.fits --&amp;lt;link&amp;gt;--&amp;gt; /gpfs02/work/yasuda/PFS/repo/2019-02-15/PFLA011944r1.fits
Traceback (most recent call last):
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/opt/local/pfs/stack/miniconda3-4.3.21-10a4fa6/Linux64/obs_pfs/master/python/lsst/obs/pfs/ingest.py&quot;&lt;/span&gt;, line 275, in runFile
    self.ingestPfsConfig(os.path.dirname(infile), hduInfoList[0], args)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/opt/local/pfs/stack/miniconda3-4.3.21-10a4fa6/Linux64/obs_pfs/master/python/lsst/obs/pfs/ingest.py&quot;&lt;/span&gt;, line 242, in ingestP                            fsConfig
    (pfiDesignId,))
RuntimeError: Unable to find PfsConfig or PfiDesign &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; pfiDesignId=0x0000000000000000
ingestPfs WARN: Failed to ingest file /gpfs01/pfs/rawdata/2019-02-15/PFLA01194412.fits: Unable to find PfsConfig or PfiDesign &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; pfiDesignId=0x0000000000000000
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;So we will try to create &lt;tt&gt;pfiDesign&lt;/tt&gt; file without specifying any fibers but &lt;tt&gt;makeLamDesign.py&lt;/tt&gt; cannot create null &lt;tt&gt;pfiDesign&lt;/tt&gt; file.&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;
$ makeLamDesign.py {}
usage: makeLamDesign.py [-h] [--directory DIRECTORY]
                        {red1,red2,red3,red4,red5,red6,red7,red8,orange,blue,green,yellow}
                        [{red1,red2,red3,red4,red5,red6,red7,red8,orange,blue,green,yellow} ...]
makeLamDesign.py: error: argument colors: invalid choice: &lt;span class=&quot;code-quote&quot;&gt;&apos;{}&apos;&lt;/span&gt; (choose from &lt;span class=&quot;code-quote&quot;&gt;&apos;red1&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;red2&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;red3&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;red4&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;red5&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;red6&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;red7&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;red8&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;orange&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;blue&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;green&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;yellow&apos;&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;If we use &lt;tt&gt;ingestImages.py&lt;/tt&gt; instead of &lt;tt&gt;ingestPfsImages.py&lt;/tt&gt;, the file will be registered normally. But I&apos;m not sure how we can extract 1d arc spectra using &lt;tt&gt;pipe2d&lt;/tt&gt; in this case.&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;
$ ingestImages.py /gpfs02/work/yasuda/PFS/repo /gpfs01/pfs/rawdata/2019-02-15/PFLA01194412.fits
root INFO: Loading config overrride file &lt;span class=&quot;code-quote&quot;&gt;&apos;/opt/local/pfs/stack/miniconda3-4.3.21-10a4fa6/Linux64/obs_pfs/master/config/ingest.py&apos;&lt;/span&gt;
CameraMapper INFO: Loading Posix exposure registry from /gpfs02/work/yasuda/PFS/repo
ingest INFO: /gpfs01/pfs/rawdata/2019-02-15/PFLA01194412.fits --&amp;lt;link&amp;gt;--&amp;gt; /gpfs02/work/yasuda/PFS/repo/2019-02-15/PFLA011944r1.fits
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Should we ask LAM poeple to provide the information of illuminated fibers for every dates?&lt;/p&gt;

&lt;p&gt;Another problem is &lt;tt&gt;NO CURRENT VALUE&lt;/tt&gt; in fits header. In this case, &lt;tt&gt;W_PFDSGN&lt;/tt&gt; value is &lt;tt&gt;NO CURRENT VALUE&lt;/tt&gt; and we cannot process this data properly. Should we also ask LAM people to fix the files with correct values or just abandon these files?&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;
$ ingestPfsImages.py /gpfs02/work/yasuda/PFS/repo /gpfs01/pfs/rawdata/2019-03-29/PFLA01471912.fits CameraMapper INFO: Loading exposure registry from /gpfs02/work/yasuda/PFS/repo/registry.sqlite3 Traceback (most recent call last): File &lt;span class=&quot;code-quote&quot;&gt;&quot;/opt/local/pfs/stack/miniconda3-4.3.21-10a4fa6/Linux64/obs_pfs/master/python/lsst/obs/pfs/ingest.py&quot;&lt;/span&gt;, line 274, in runFile hduInfoList = &lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;().runFile(infile, registry, args) File &lt;span class=&quot;code-quote&quot;&gt;&quot;/opt/local/pfs/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_tasks/16.0+1/python/lsst/pipe/tasks/ingest.py&quot;&lt;/span&gt;, line 508, in runFile &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; registry is not None and self.register.check(registry, fileInfo): File &lt;span class=&quot;code-quote&quot;&gt;&quot;/opt/local/pfs/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_tasks/16.0+1/python/lsst/pipe/tasks/ingest.py&quot;&lt;/span&gt;, line 318, in check values = [self.typemap[self.config.columns[col]](info[col]) &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; col in self.config.unique] File &lt;span class=&quot;code-quote&quot;&gt;&quot;/opt/local/pfs/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_tasks/16.0+1/python/lsst/pipe/tasks/ingest.py&quot;&lt;/span&gt;, line 318, in &amp;lt;listcomp&amp;gt; values = [self.typemap[self.config.columns[col]](info[col]) &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; col in self.config.unique] ValueError: invalid literal &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;() with base 10: &lt;span class=&quot;code-quote&quot;&gt;&apos;NO CURRENT VALUE&apos;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="15321" author="price" created="Mon, 15 Apr 2019 19:56:01 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=naoki.yasuda&quot; class=&quot;user-hover&quot; rel=&quot;naoki.yasuda&quot;&gt;naoki.yasuda&lt;/a&gt;, please try the fix on &lt;tt&gt;tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-404&quot; title=&quot;Support for raw exposures with W_PFDSGN not set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-404&quot;&gt;&lt;del&gt;PIPE2D-404&lt;/del&gt;&lt;/a&gt;&lt;/tt&gt; of obs_pfs. You&apos;ll want to set the default value of &lt;tt&gt;parse.pfsDesignId&lt;/tt&gt;. Here&apos;s an example:&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;
pprice@tiger2-sumire:~/pfs/obs_pfs[tickets/PIPE2D-404] $ ingestPfsImages.py DATA PFLA01194412.fits PFLA01471912.fits -c parse.pfsDesignId=0x0000000100100011
CameraMapper INFO: Loading Posix exposure registry from /home/pprice/pfs/obs_pfs/DATA
ingestPfs.parse WARN: No value set &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; pfsDesignId; using &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; (0x0000000100100011)
ingestPfs INFO: PFLA01194412.fits --&amp;lt;link&amp;gt;--&amp;gt; /home/pprice/pfs/obs_pfs/DATA/2019-02-15/PFLA011944r1.fits
ingestPfs INFO: pfsConfig-0x0000000100100011-011944.fits --&amp;lt;link&amp;gt;--&amp;gt; /home/pprice/pfs/obs_pfs/DATA/pfsConfig/2019-02-15/pfsConfig-0x0000000100100011-011944.fits
ingestPfs.parse WARN: No value set &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; pfsDesignId; using &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; (0x0000000100100011)
ingestPfs INFO: PFLA01471912.fits --&amp;lt;link&amp;gt;--&amp;gt; /home/pprice/pfs/obs_pfs/DATA/2019-03-29/PFLA014719r1.fits
ingestPfs INFO: pfsConfig-0x0000000100100011-014719.fits --&amp;lt;link&amp;gt;--&amp;gt; /home/pprice/pfs/obs_pfs/DATA/pfsConfig/2019-03-29/pfsConfig-0x0000000100100011-014719.fits
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="15346" author="naoki.yasuda" created="Wed, 24 Apr 2019 00:18:03 +0000"  >&lt;p&gt;Thanks. This works fine if we know the fiber configuration used. For old data, it is not easy to guess the fiber configuration but this is not the problem of software.&lt;/p&gt;</comment>
                            <comment id="15349" author="cloomis" created="Wed, 24 Apr 2019 14:58:19 +0000"  >&lt;p&gt;Slightly related: &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-354&quot; title=&quot;On missing, unconverted, or invalid numeric values, write a string FITS complaint&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-354&quot;&gt;&lt;del&gt;INSTRM-354&lt;/del&gt;&lt;/a&gt; covers a discussion of what to do with missing or invalid card values. The FITS standard says to use an empty value, but that causes just as much trouble for consumers which expect typed values as semi-descriptive strings (&apos;NO CURRENT VALUE&apos;, etc), so it looks like we will agree to use magic values. I propose using 0 for &lt;tt&gt;W_PFDSGN&lt;/tt&gt;, and not to distinguish between &quot;missing&quot; and &quot;unknown/invalid&quot;. Please object now if you will.&lt;/p&gt;</comment>
                            <comment id="15373" author="price" created="Fri, 26 Apr 2019 20:19:23 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=naoki.yasuda&quot; class=&quot;user-hover&quot; rel=&quot;naoki.yasuda&quot;&gt;naoki.yasuda&lt;/a&gt;, would you mind reviewing the changes, please? Then I&apos;ll get this into master.&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;
price@MacBook:~/pfs/obs_pfs (tickets/PIPE2D-404=) $ git sub
commit 1ec884e458ec635af20e317db202df1831044cf6 (HEAD -&amp;gt; tickets/PIPE2D-404, origin/tickets/PIPE2D-404)
Author: Paul Price &amp;lt;price@astro.princeton.edu&amp;gt;
Date:   Mon Apr 15 15:24:22 2019 -0400

    ingest: make &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; pfsDesignId value configurable
    
    If the pfsDesignId is not set, we need to be able to fall back
    to a reasonable value (perhaps determined via manual inspection
    of the image), rather than a hard-coded value.

 python/lsst/obs/pfs/ingest.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="15388" author="naoki.yasuda" created="Sat, 27 Apr 2019 05:36:32 +0000"  >&lt;p&gt;I have reviewed the change and it looks fine. Please merge to master.&lt;/p&gt;</comment>
                            <comment id="15390" author="price" created="Sat, 27 Apr 2019 13:44:50 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=naoki.yasuda&quot; class=&quot;user-hover&quot; rel=&quot;naoki.yasuda&quot;&gt;naoki.yasuda&lt;/a&gt;!&lt;/p&gt;

&lt;p&gt;Merged to master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="13316">PIPE2D-339</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="12329">INSTRM-354</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13531">INSTRM-648</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|02qpt6:508yjvi</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10100" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Reviewers</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>naoki.yasuda</customfieldvalue>

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