<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:35:45 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>[INSTRM-1463] Insert FITS headers into opdb</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1463</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-1367&quot; title=&quot;obslog: global search on header keyword&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-1367&quot;&gt;&lt;del&gt;INSTRM-1367&lt;/del&gt;&lt;/a&gt; requested header card searches in obslog. That was implemented by adding opdb tables, along with an inserter function.&lt;/p&gt;

&lt;p&gt;When we request PFSx file archiving, add the headers. Just PHDU for now.&lt;/p&gt;

&lt;p&gt;Sample code was:&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;import&lt;/span&gt; opdb.obslog
&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; astropy.io.fits &lt;span class=&quot;code-keyword&quot;&gt;as&lt;/span&gt; pyfits
&lt;span class=&quot;code-keyword&quot;&gt;from&lt;/span&gt; opdb.models &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; pfs_visit

db = SessionClass()

pfs_visit_id = 66453
filestem = &lt;span class=&quot;code-quote&quot;&gt;&apos;PFSA06645311&apos;&lt;/span&gt;

hdul = pyfits.HDUList([
  pyfits.PrimaryHDU(header=pyfits.Header([
    (&lt;span class=&quot;code-quote&quot;&gt;&apos;PI&apos;&lt;/span&gt;, 3.14, &lt;span class=&quot;code-quote&quot;&gt;&quot;ratio of a circle&apos;s circumference to its diameter&quot;&lt;/span&gt;),
  ])),
])

db.add_all(opdb.obslog.fits_headers_from_hdulist(hdul, pfs_visit_id, filestem):
db.commit()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="18367">INSTRM-1463</key>
            <summary>Insert FITS headers into opdb</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="1" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="cloomis">cloomis</assignee>
                                    <reporter username="cloomis">cloomis</reporter>
                        <labels>
                            <label>EngRun</label>
                            <label>SPS</label>
                            <label>opDB</label>
                    </labels>
                <created>Thu, 18 Nov 2021 05:19:11 +0000</created>
                <updated>Thu, 18 May 2023 09:08:09 +0000</updated>
                                                                            <component>ics_gen2Actor</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="30644" author="cloomis" created="Wed, 30 Mar 2022 00:30:24 +0000"  >&lt;p&gt;Bump. Completely forgot about this.&lt;/p&gt;</comment>
                            <comment id="30732" author="kiyoto.yabe" created="Fri, 15 Apr 2022 14:26:23 +0000"  >&lt;p&gt;Do you have time to work on this? I recently noticed that the header search is very useful not only for commissioning but also for our analysis of SuNSS data at IPMU.&lt;/p&gt;</comment>
                            <comment id="32070" author="hassan" created="Fri, 6 Jan 2023 14:32:57 +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;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=kiyoto.yabe&quot; class=&quot;user-hover&quot; rel=&quot;kiyoto.yabe&quot;&gt;Kiyoto Yabe&lt;/a&gt; is this something that we need to implement early this year? &lt;del&gt;Say after the Feb 2023 run?&lt;/del&gt; Even before the Feb 2023 run might be useful.&lt;/p&gt;</comment>
                            <comment id="32073" author="kiyoto.yabe" created="Tue, 10 Jan 2023 08:40:50 +0000"  >&lt;p&gt;JFYI, `obslog_fits_header` table has been updated manually by &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=michitaro&quot; class=&quot;user-hover&quot; rel=&quot;michitaro&quot;&gt;michitaro&lt;/a&gt;. The command to ingest using a script is something like this:&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;
find /data/raw/ -name PFS*.fits | xargs -r ./.venv/bin/python -m opdb.obslog -d postgresql:&lt;span class=&quot;code-comment&quot;&gt;//dbuser@dbhost/dbname --no-echo register --commit-each&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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|zzsx5y:r</customfieldvalue>

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