<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:44:18 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>[OBSPROC-10] Define the schema of prototype of targetDB</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/OBSPROC-10</link>
                <project id="11003" key="OBSPROC">PFS observation processing/procedure</project>
                    <description>&lt;p&gt;TargetDB is supposed to be a database hosting all targets for PFS (cf. opDB is for actually observed (or designed) targets, I believe).&lt;/p&gt;

&lt;p&gt;I made an initial schema for targetDB which is based on the target and related tables in opDB sometime earlier. Although there are some parts which do not conform the datamodel, I would like to have your feedback to improve it (I know there are a lot of points to be discussed). &lt;/p&gt;

&lt;p&gt;One noticeable feature is the introduction of the unique_object table. It is supposed to host unique objects on the sky and referred in the target table to handle duplication.  My idea is to check duplication with objects already registered to the unique_object table by a cone search with a search radius of 1/2 to 1/3 of the fiber diameter. If no object is matched for an object, this object will be inserted in the unique_object table. I&apos;m not sure whether this is the easiest way to handle duplication, so comments on this are very welcome.&lt;/p&gt;

&lt;p&gt;Attached files (ver 2020-10-06 HST):&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;schema_targetdb_tables.pdf : Information on columns in each table.&lt;/li&gt;
	&lt;li&gt;schema_targetdb.pdf : Schema diagram of the current prototype.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="17232">OBSPROC-10</key>
            <summary>Define the schema of prototype of targetDB</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="10100" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="No further work should be done on this.">Won&apos;t Fix</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="monodera">monodera</assignee>
                                    <reporter username="monodera">monodera</reporter>
                        <labels>
                            <label>targetDB</label>
                    </labels>
                <created>Thu, 7 Oct 2021 03:31:47 +0000</created>
                <updated>Thu, 17 Feb 2022 01:37:43 +0000</updated>
                            <resolved>Thu, 17 Feb 2022 01:37:43 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="22559" author="kiyoto.yabe" created="Thu, 14 Oct 2021 01:35:55 +0000"  >&lt;p&gt;According the &lt;em&gt;current&lt;/em&gt;&#160;[datamodel|&lt;a href=&quot;https://github.com/Subaru-PFS/datamodel/blob/master/datamodel.txt&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/datamodel/blob/master/datamodel.txt&lt;/a&gt;,]&#160;`pfsDesign` file needs the following target information (that ETS needs to take from targetDB):&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;DESIGN
	&lt;ul&gt;
		&lt;li&gt;catId 32-bit int&lt;/li&gt;
		&lt;li&gt;tract 32-bit int&lt;/li&gt;
		&lt;li&gt;patch string&lt;/li&gt;
		&lt;li&gt;objId 64-bit int&lt;/li&gt;
		&lt;li&gt;ra 64-bit float (degrees)&lt;/li&gt;
		&lt;li&gt;dec 64-bit float (degrees)&lt;/li&gt;
		&lt;li&gt;targetType 32-bit int (probably)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;PHOTOMETRY
	&lt;ul&gt;
		&lt;li&gt;fiberFlux &lt;span class=&quot;error&quot;&gt;&amp;#91;nJy&amp;#93;&lt;/span&gt; 32-bit float&lt;/li&gt;
		&lt;li&gt;psfFlux &lt;span class=&quot;error&quot;&gt;&amp;#91;nJy&amp;#93;&lt;/span&gt; 32-bit float&lt;/li&gt;
		&lt;li&gt;totalFlux &lt;span class=&quot;error&quot;&gt;&amp;#91;nJy&amp;#93;&lt;/span&gt; 32-bit float&lt;/li&gt;
		&lt;li&gt;fiberFluxErr &lt;span class=&quot;error&quot;&gt;&amp;#91;nJy&amp;#93;&lt;/span&gt; 32-bit float&lt;/li&gt;
		&lt;li&gt;psfFluxErr &lt;span class=&quot;error&quot;&gt;&amp;#91;nJy&amp;#93;&lt;/span&gt; 32-bit float&lt;/li&gt;
		&lt;li&gt;totalFluxErr &lt;span class=&quot;error&quot;&gt;&amp;#91;nJy&amp;#93;&lt;/span&gt; 32-bit float&lt;/li&gt;
		&lt;li&gt;filterName string&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So I guess catId and fluxes would be matters of discussion in the current schema.&lt;/p&gt;</comment>
                            <comment id="30446" author="monodera" created="Wed, 9 Feb 2022 23:59:34 +0000"  >&lt;p&gt;I still have some doubt whether it is better to have a &lt;tt&gt;unique_object&lt;/tt&gt; table behind the &lt;tt&gt;target&lt;/tt&gt; table, because it may make any modifications difficult. As an alternative, it can be possible to make a table containing pairs of duplicated sources, which can be made at any time by scanning the target table.&lt;/p&gt;</comment>
                            <comment id="30447" author="monodera" created="Thu, 10 Feb 2022 00:03:08 +0000"  >&lt;p&gt;Another concern is that the reference coordinates when checking duplicates can be those inserted first. Then, if there is astrometric issues, it affect all duplicates for these objects. We may host some major catalogs (HSC-SSP, Gaia, etc.) behind to cross matching, but may make the db too large.&lt;/p&gt;</comment>
                            <comment id="30473" author="monodera" created="Thu, 17 Feb 2022 01:37:43 +0000"  >&lt;p&gt;I created &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/OBSPROC-17&quot; title=&quot;Organize flux columns in the target table of targetDB&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OBSPROC-17&quot;&gt;OBSPROC-17&lt;/a&gt; and &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/OBSPROC-18&quot; title=&quot;Handling duplicates in targetDB&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OBSPROC-18&quot;&gt;&lt;del&gt;OBSPROC-18&lt;/del&gt;&lt;/a&gt; specifically for flux columns and for handling duplicates. Other parts are mostly done and I find that the scope of this issue is too broad. If any other work are needed, I&apos;d like to create more specific issues rather than keeping this opened forever.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="16904">INSTRM-1302</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="22624">OBSPROC-18</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="14130" name="schema_targetdb.pdf" size="28041" author="monodera" created="Thu, 7 Oct 2021 03:13:19 +0000"/>
                            <attachment id="14129" name="schema_targetdb_tables.pdf" size="82638" author="monodera" created="Thu, 7 Oct 2021 03:13:25 +0000"/>
                    </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_10006" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>OBSPROC-1</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|zzsgp3:</customfieldvalue>

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

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