<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:53:10 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>[FIBERALLOC-34] Design a mechanism to store the output from shuffle in opDB</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/FIBERALLOC-34</link>
                <project id="10500" key="FIBERALLOC">Target to fiber allocation and configuration</project>
                    <description>&lt;p&gt;Currently opDB has no table for the output from `ets_shuffle`, so come up with a mechanism in opDB to store the information of the selected guide/acquisition stars in each camera.&lt;/p&gt;

&lt;p&gt;Currently, the output of the shuffle processing is like this but we may have more information:&lt;br/&gt;
Identified target IDs for each camera: AG camera #0 &lt;span class=&quot;error&quot;&gt;&amp;#91;2493596405047282176 2493597813796555648&amp;#93;&lt;/span&gt; AG camera #1 &lt;span class=&quot;error&quot;&gt;&amp;#91;2492943913615230592 2492943913615227776 2492991020816540672&amp;#93;&lt;/span&gt; AG camera #2 &lt;span class=&quot;error&quot;&gt;&amp;#91;2492877221363219712&amp;#93;&lt;/span&gt; AG camera #3 &lt;span class=&quot;error&quot;&gt;&amp;#91;2493142272384857344 2493142448479083136 2493142169305639680 2493142585918005120&amp;#93;&lt;/span&gt; AG camera #4 &lt;span class=&quot;error&quot;&gt;&amp;#91;2494051431062162944 2494051057400740608 2494047999384032512 2494050988681269248 2494051362342685056 2494050984385562752&amp;#93;&lt;/span&gt; AG camera #5 [2493685637288060288 2493685469784142336 2493685469784142592&lt;br/&gt;
 2493690177068271488 2493690172773592832]&lt;br/&gt;
&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="14911">FIBERALLOC-34</key>
            <summary>Design a mechanism to store the output from shuffle in 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="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="kiyoto.yabe">Kiyoto Yabe</assignee>
                                    <reporter username="kiyoto.yabe">Kiyoto Yabe</reporter>
                        <labels>
                            <label>opDB</label>
                    </labels>
                <created>Thu, 1 Oct 2020 08:34:49 +0000</created>
                <updated>Mon, 4 Oct 2021 02:40:28 +0000</updated>
                            <resolved>Mon, 4 Oct 2021 02:40:28 +0000</resolved>
                                                                    <component>ets_shuffle</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="17894" author="kiyoto.yabe" created="Mon, 19 Oct 2020 08:01:12 +0000"  >&lt;p&gt;I&apos;m still thinking about two possibilities regarding where we store the output from `shuffle`, and it&apos;s a bit difficult to explain in this comment, but...&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;option 1&lt;/b&gt;. we make `pfs_design_agc` for (guide and acquisition) objects in AG camera like `pfs_design_fiber` for science objects in fibers.&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;&lt;b&gt;pfs_design_agc&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;pfs_design_id (FK; not null)&#160; ---&amp;gt; referring to `pfs_design`&lt;/p&gt;

&lt;p&gt;agc_camera_id (not null)&lt;/p&gt;

&lt;p&gt;guide_star_id (not null)&#160; ---&amp;gt; Gaia ID?&lt;/p&gt;

&lt;p&gt;agc_target_x_mm&lt;/p&gt;

&lt;p&gt;agc_target_y_mm&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;In this design, I&apos;m assuming both `ets_shuffle` and `ets_fiberalloc` run integrally and save all information to `pfs_design`, `pfs_design_agc` &amp;amp; `pfs_design_fiber` in the end of the process.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;b&gt;option 2&lt;/b&gt;. we make `shuffle` and `shuffle_agc`&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;&lt;b&gt;tile&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;tile_id (serial not null; auto-incremented)&lt;/p&gt;

&lt;p&gt;program_id (FK)&lt;/p&gt;

&lt;p&gt;ra_center_initial&lt;/p&gt;

&lt;p&gt;dec_center_initial&lt;/p&gt;

&lt;p&gt;pa_initial&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;&lt;b&gt;shuffle&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;shuffle_id (serial not null; auto-incremented)&lt;/p&gt;

&lt;p&gt;tile_id (FK)&#160; ---&amp;gt; referring to `tile`&lt;/p&gt;

&lt;p&gt;ra_center_designed_shuffle&lt;/p&gt;

&lt;p&gt;dec_center_designed_shuffle&lt;/p&gt;

&lt;p&gt;pa_designed_shuffle&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;&lt;b&gt;shuffle_agc&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;shuffle_id (FK; not null)&#160; ---&amp;gt; referring to `shuffle`&lt;/p&gt;

&lt;p&gt;agc_camera_id (not null)&lt;/p&gt;

&lt;p&gt;guide_star_id (not null)&#160; ---&amp;gt; Gaia ID?&lt;/p&gt;

&lt;p&gt;agc_target_x_mm&lt;/p&gt;

&lt;p&gt;agc_target_y_mm&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;&#160;----------------------&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;&lt;b&gt;pfs_design&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;pfs_design_id (not null)&lt;/p&gt;

&lt;p&gt;shuffle_id (FK; not null)&#160; ---&amp;gt; referring `shuffle`&lt;/p&gt;

&lt;p&gt;ra_center_designed&lt;/p&gt;

&lt;p&gt;dec_center_designed&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;In this design, we need to run `ets_shuffle` first and decide the pointing center and save info to the database, and then we run `ets_fiberalloc` based on the decided pointing center. I do not think about how to deal with multiple visits using netflow mechanism yet.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="18087" author="martin.reinecke" created="Mon, 30 Nov 2020 08:25:12 +0000"  >&lt;p&gt;I think the current agreement is that &quot;shuffle&quot; will not actually do any shuffling; it will simply output suitable acquisition/guide star candidates for the provided telescope pointing and orientation. If this is correct, then your option 1 feels more natural to me.&lt;/p&gt;

&lt;p&gt;One open question from my side: are &quot;agc_target_&lt;span class=&quot;error&quot;&gt;&amp;#91;xy&amp;#93;&lt;/span&gt;_mm&quot; given in PFI coordinates or in a coordinate system specific to every AG camera? If the latter, I&apos;d need a way to transform from PFI to these coordinates (I don&apos;t think this is integrated in pfs_utils yet).&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="18127" author="kiyoto.yabe" created="Tue, 8 Dec 2020 13:32:29 +0000"  >&lt;p&gt;Thank you for your comments. I&apos;ll push option 1 forward taking into consideration other discussion points. For the open question, I think we should coordinate with the AG camera table (e.g., `agc_data`). I guess currently they are coordinates on AG image in pix, so agc_target_&lt;span class=&quot;error&quot;&gt;&amp;#91;xy&amp;#93;&lt;/span&gt;_pix would be probably what we need.&lt;/p&gt;</comment>
                            <comment id="21794" author="kiyoto.yabe" created="Thu, 5 Aug 2021 04:23:49 +0000"  >&lt;p&gt;I found this was still floating, but now it&apos;s a time to fix.&lt;/p&gt;

&lt;p&gt;Here is a new proposal based on the current datamodel GUIDESTARS HDU in pfsDesign file.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=hiro&quot; class=&quot;user-hover&quot; rel=&quot;hiro&quot;&gt;Yoshida, Hiroshige&lt;/a&gt;?&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;&lt;b&gt;pfs_design_agc&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;

&lt;p&gt;pfs_design_id (FK; not null)&#160; ---&amp;gt; referring to `pfs_design`&lt;/p&gt;

&lt;p&gt;guide_star_id (not null)&#160; ---&amp;gt; joinable with GaiaDB&lt;/p&gt;

&lt;p&gt;epoch&lt;/p&gt;

&lt;p&gt;guide_star_ra&lt;/p&gt;

&lt;p&gt;guide_star_dec&lt;/p&gt;

&lt;p&gt;guide_star_pm_ra&lt;/p&gt;

&lt;p&gt;guide_star_pm_dec&lt;/p&gt;

&lt;p&gt;guide_star_parallax&lt;/p&gt;

&lt;p&gt;guide_star_magnitude&lt;/p&gt;

&lt;p&gt;passband&lt;/p&gt;

&lt;p&gt;guide_star_color&lt;/p&gt;

&lt;p&gt;agc_camera_id&lt;/p&gt;

&lt;p&gt;agc_target_x_pix&lt;/p&gt;

&lt;p&gt;agc_target_y_pix&lt;/p&gt;

&lt;p&gt;comments&lt;/p&gt;

&lt;p&gt;----------------------&lt;/p&gt;</comment>
                            <comment id="21932" author="kiyoto.yabe" created="Thu, 9 Sep 2021 01:03:37 +0000"  >&lt;p&gt;I&apos;ll implement the design above for now and close this ticket. We file a new ticket if we need a further fix.&lt;/p&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|zzs2ts:</customfieldvalue>

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