<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:56:05 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-655] Support all spectrograph detectors</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-655</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=fmadec&quot; class=&quot;user-hover&quot; rel=&quot;fmadec&quot;&gt;fmadec&lt;/a&gt; wants to reduce &lt;tt&gt;b2&lt;/tt&gt; data, but the pipeline doesn&apos;t know about it. Add in all the detectors.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15042">PIPE2D-655</key>
            <summary>Support all spectrograph detectors</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</type>
                                            <priority id="1" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/blocker.svg">Blocker</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, 20 Nov 2020 14:41:25 +0000</created>
                <updated>Wed, 20 Jan 2021 18:27:09 +0000</updated>
                            <resolved>Tue, 24 Nov 2020 21:54:24 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="18068" author="hassan" created="Mon, 23 Nov 2020 16:29:51 +0000"  >&lt;p&gt;Blocks SM2 activities at LAM.&lt;/p&gt;</comment>
                            <comment id="18069" author="price" created="Mon, 23 Nov 2020 22:14:19 +0000"  >&lt;p&gt;Need to:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Add detectors to the &lt;tt&gt;camera.yaml&lt;/tt&gt; file.&lt;/li&gt;
	&lt;li&gt;Generate detectorMaps.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="18073" author="price" created="Tue, 24 Nov 2020 20:05:19 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=hassan&quot; class=&quot;user-hover&quot; rel=&quot;hassan&quot;&gt;hassan&lt;/a&gt;, I believe this is ready for review. I tested it out:&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 /projects/HSC/PFS/LAM --mode=link --config clobber=True register.ignore=True parse.pfsDesignId=0x0000010001001010 --pfsConfigDir=/projects/HSC/PFS/LAM/raw/pfsDesign -- &lt;span class=&quot;code-quote&quot;&gt;&quot;/projects/HSC/PFS/LAM/raw&lt;span class=&quot;code-comment&quot;&gt;/*/PFLA*&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;/projects/HSC/PFS/LAM/raw/*/&lt;/span&gt;sps/PFLA*&quot;&lt;/span&gt;

(lsst-scipipe) pprice@tiger2-sumire:/tigress/pprice/pipe2d-655 $ constructPfsBias.py /projects/HSC/PFS/LAM --calib /projects/HSC/PFS/LAM/CALIB-price --rerun price/pipe2d-655 --id visit=23638..23652 --cores 10


RuntimeError: No defects available &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; dataId=DataId(initialdata={&lt;span class=&quot;code-quote&quot;&gt;&apos;visit&apos;&lt;/span&gt;: 23644, &lt;span class=&quot;code-quote&quot;&gt;&apos;dateObs&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;2020-11-20&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;site&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;L&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;category&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;A&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;arm&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;b&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;spectrograph&apos;&lt;/span&gt;: 2, &lt;span class=&quot;code-quote&quot;&gt;&apos;field&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;NO_AVAILABLE_VALUE&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;ccd&apos;&lt;/span&gt;: 3, &lt;span class=&quot;code-quote&quot;&gt;&apos;filter&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;b&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;expTime&apos;&lt;/span&gt;: 0.0, &lt;span class=&quot;code-quote&quot;&gt;&apos;dataType&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;BIAS&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;taiObs&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;2020-11-20T16:05:41.683&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;pfsDesignId&apos;&lt;/span&gt;: 1152921504606846976, &lt;span class=&quot;code-quote&quot;&gt;&apos;slitOffset&apos;&lt;/span&gt;: 0.0}, tag=set())

--&amp;gt; Need to rebuild obs_pfs, to generate defects files.

(lsst-scipipe) pprice@tiger2-sumire:/tigress/pprice/pipe2d-655 $ rm -r /projects/HSC/PFS/LAM/CALIB-price/
(lsst-scipipe) pprice@tiger2-sumire:/tigress/pprice/pipe2d-655 $ mkdir /projects/HSC/PFS/LAM/CALIB-price

(lsst-scipipe) pprice@tiger2-sumire:/tigress/pprice/pipe2d-655 $ ingestPfsCalibs.py /projects/HSC/PFS/LAM/ --calib /projects/HSC/PFS/LAM/CALIB-price --validity=1800 --doraise --mode=copy /projects/HSC/PFS/LAM/rerun/price/pipe2d-655/BIAS/pfsBias-*.fits

(lsst-scipipe) pprice@tiger2-sumire:/tigress/pprice/pipe2d-655 $ constructPfsDark.py /projects/HSC/PFS/LAM --calib /projects/HSC/PFS/LAM/CALIB-price --rerun price/pipe2d-655 --id visit=23575 --cores 10
(lsst-scipipe) pprice@tiger2-sumire:/tigress/pprice/pipe2d-655 $ ingestPfsCalibs.py /projects/HSC/PFS/LAM/ --calib /projects/HSC/PFS/LAM/CALIB-price --validity=1800 --doraise --mode=copy /projects/HSC/PFS/LAM/rerun/price/pipe2d-655/DARK/pfsDark-2020-10-29-023575-b2.fits

(lsst-scipipe) pprice@tiger2-sumire:/tigress/pprice/pipe2d-655 $ constructFiberFlat.py /projects/HSC/PFS/LAM --calib /projects/HSC/PFS/LAM/CALIB-price --rerun price/pipe2d-655 --id visit=23592..23596 arm=b --cores 10

Breaks because it needs a detectorMap (though it shouldn&apos;t.... fixed).
But it looks like we don&lt;span class=&quot;code-quote&quot;&gt;&apos;t really have any good dithered quartzes, so let&apos;&lt;/span&gt;s skip that.

(lsst-scipipe) pprice@tiger2-sumire:/tigress/pprice/pipe2d-655 $ constructFiberProfiles.py /projects/HSC/PFS/LAM --calib /projects/HSC/PFS/LAM/CALIB-price --rerun price/pipe2d-655 --id visit=23598 arm=b -c isr.doFlat=False --cores 10

Needs a detectorMap, &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; real &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; time (because we need to transfer the fiberId values from the detectorMap to the fiberProfiles).


&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; re
&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; astropy.io.fits
&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; arm in &lt;span class=&quot;code-quote&quot;&gt;&quot;brnm&quot;&lt;/span&gt;:
    with astropy.io.fits.open(f&lt;span class=&quot;code-quote&quot;&gt;&quot;detectorMap-sim-{arm}1.fits&quot;&lt;/span&gt;) as fits:
        ccd = dict(b=0, r=1, n=2, m=3)[arm]
        card = fits[0].header[&lt;span class=&quot;code-quote&quot;&gt;&quot;CALIB_ID&quot;&lt;/span&gt;]
        fits[0].header[&lt;span class=&quot;code-quote&quot;&gt;&quot;CALIB_ID&quot;&lt;/span&gt;] = re.sub(&lt;span class=&quot;code-quote&quot;&gt;&quot;spectrograph=1 ccd=\d&quot;&lt;/span&gt;, f&lt;span class=&quot;code-quote&quot;&gt;&quot;spectrograph=2 ccd={ccd}&quot;&lt;/span&gt;, card)
        fits.writeto(f&lt;span class=&quot;code-quote&quot;&gt;&quot;detectorMap-sim-{arm}2.fits&quot;&lt;/span&gt;)

(lsst-scipipe) pprice@tiger2-sumire:/tigress/pprice/pipe2d-655 $ ingestPfsCalibs.py /projects/HSC/PFS/LAM --calib /projects/HSC/PFS/LAM/CALIB-price --validity=1800 --mode=copy drp_pfs_data/detectorMap/detectorMap-sim-*.fits

constructFiberProfiles works now.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="18074" author="price" created="Tue, 24 Nov 2020 21:54:24 +0000"  >&lt;p&gt;Merged to master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="15230">PIPE2D-702</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|02qps2:w</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="93">2DDRP-2021 A</customfieldvalue>

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