<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:33:29 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>[DAMD-29] Define AGCC files for display while guiding</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/DAMD-29</link>
                <project id="10400" key="DAMD">Data Model</project>
                    <description>&lt;p&gt;Besides the to-be-archived PFSD guider files and the strange hex image for the Mitsubishi displays, we need to define the files made specifically for displaying while guiding. It turns out that the mechanism for doing this is new at Subaru, so this is a white-sheet design &#8211; we should be able to design something which works well for both Subaru and PFS, and it will be collaboratively designed.&lt;/p&gt;

&lt;p&gt;A brief discussion led to a few starting suggestions:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;N (6) HDUs for the images&lt;/li&gt;
	&lt;li&gt;zero-ed out background. RICE compression. Or maybe in this case HCOMP?&lt;/li&gt;
	&lt;li&gt;display scaling parameters in the headers, as well as the WCS.&lt;/li&gt;
	&lt;li&gt;a binary table with object and offset properties, good enough for useful annotations.&lt;/li&gt;
	&lt;li&gt;either HDU cards or a binary table for the final guiding/focus.&lt;/li&gt;
	&lt;li&gt;filename is not bound to the PFS visit&lt;/li&gt;
	&lt;li&gt;file is not expected to be used for anything but live display.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;Even though this is purely intended for observing, since it is a published interface I&apos;m putting this ticket in DAMD.&lt;/p&gt;</description>
                <environment></environment>
        <key id="12315">DAMD-29</key>
            <summary>Define AGCC files for display while guiding</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="hiro">Yoshida, Hiroshige</assignee>
                                    <reporter username="cloomis">cloomis</reporter>
                        <labels>
                            <label>CanBeClosed</label>
                            <label>FITS</label>
                            <label>PFI</label>
                    </labels>
                <created>Mon, 30 Apr 2018 18:00:59 +0000</created>
                <updated>Wed, 1 Feb 2023 20:22:50 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                <comments>
                            <comment id="17538" author="eric" created="Thu, 13 Aug 2020 21:31:33 +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;, this is a pretty close start to what we want, but a couple of points:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;the data is used both during observation to monitor the guiding, and evaluate the sky level, etc. We absolutely want to get raw data, not a zeroed out background.&#160;&lt;/li&gt;
	&lt;li&gt;data is updated periodically in a display gui, but can also be saved as a &quot;VGW&quot; prefixed file by the SA or Operator dynamically. This all happens on the Gen2 side, so apart from sending the data at a periodic interval there are should be no impact to PFS side file operations.&#160; VGW files are archived, and can be used for engineering purposes, troubleshooting, understanding guiding problems during observation at specific points, etc.&lt;/li&gt;
	&lt;li&gt;a table HDU attached for metadata would be really useful, and we should itemize in this ticket what kinds of interesting metadata that could be attached, but we should not hold up the periodic transfer of the images waiting for particular items like final focus to be decided; I&apos;m assuming that will also be available as a status item in gen2 as well, since that will be the preferred method for transmitting it in a telescope command for setting the Z position. VGW files can also collect status items when writing out files, so things can be added later from status items in Gen2 as needed.&#160;&#160;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="17539" author="eric" created="Thu, 13 Aug 2020 21:33:10 +0000"  >&lt;p&gt;Each image is 1024 * 1024 * 2, correct?&lt;/p&gt;</comment>
                            <comment id="17540" author="eric" created="Thu, 13 Aug 2020 21:52:27 +0000"  >&lt;p&gt;Ideally, you would not need to actually write out these FITS images as files to disk on PFS side. We&apos;d have to check the memory constraints, but what I imagine is an actor (or process) has an astropy or fitsio HDUList in memory and is simply taking the image buffers on a periodic basis and overwriting the same numpy arrays and maybe updating a few items in a table HDU, then grabbing the whole thing as a buffer and sending it over the network.&#160;&#160;&lt;/p&gt;

&lt;p&gt;Assuming these are 1x1 K 16 bit images, then with basic headers and a table HDU attached you are looking at something around 15-20MB in size in memory, being updated periodically.&lt;/p&gt;

&lt;p&gt;If we decide to transfer them via file transfer, then we could also just use a small circular number of FITS files and sending a URL for Gen2 to copy them.&lt;/p&gt;</comment>
                            <comment id="17575" author="cloomis" created="Fri, 21 Aug 2020 14:09:11 +0000"  >&lt;p&gt;Interesting. We had not thought in those terms. I guess I&apos;d say that if there is little real cost (threshold at ~1-2 s, maybe?) to using writing and transferring FITS files we should use them just to keep the number of maintained interfaces down. &lt;/p&gt;

&lt;p&gt;But since this is use-once-then-discard data, sure. Use zmq or something? Do you have a preference?&lt;/p&gt;</comment>
                            <comment id="17706" author="eric" created="Tue, 15 Sep 2020 20:46:50 +0000"  >&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Aside: Apologies for the late comment: apparently I am not getting notified when a ticket I comment on is updated. I sort of assumed that Jira worked a bit like Github issues, but apparently not. I did check that I am a watcher on this ticket so I don&amp;#39;t know what happened. If there is any suggestion for how to make that the default behavior in my settings, let me know.&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;gt; I guess I&apos;d say that if there is little real cost (threshold at ~1-2 s, maybe?) to using writing and transferring FITS files we should use them just to keep the number of maintained interfaces down.&lt;/p&gt;

&lt;p&gt;&amp;gt; But since this is use-once-then-discard data, sure. Use zmq or something? Do you have a preference?&lt;/p&gt;

&lt;p&gt;I agree.&#160; And I think its best not to over-engineer something until we see a good reason for it.&#160; So I suggest just writing a FITS file and notifying Gen2 of the path.&#160; For notification, how about using the messaging hub? If making a client to that does not involve anything complicated (I&apos;m assuming not) then we can just write a small, Gen2-side receiver that will listen on the channel/topic for &quot;gen2-ag&quot; (or whatever you want to call it) and then FTP/SFTP/SCP the file.&lt;/p&gt;</comment>
                            <comment id="17707" author="hassan" created="Tue, 15 Sep 2020 23:11:43 +0000"  >&lt;p&gt;A &lt;em&gt;test&lt;/em&gt; message to see if Eric sees Jira updates as a watcher.&lt;/p&gt;</comment>
                            <comment id="17708" author="eric" created="Tue, 15 Sep 2020 23:24:47 +0000"  >&lt;p&gt;I got a notification.&#160;&lt;/p&gt;</comment>
                            <comment id="17811" author="hassan" created="Tue, 29 Sep 2020 21:54:43 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=eric&quot; class=&quot;user-hover&quot; rel=&quot;eric&quot;&gt;eric&lt;/a&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=hiro&quot; class=&quot;user-hover&quot; rel=&quot;hiro&quot;&gt;Yoshida, Hiroshige&lt;/a&gt;: can this ticket be closed now?&lt;/p&gt;</comment>
                            <comment id="17819" author="eric" created="Wed, 30 Sep 2020 20:39:13 +0000"  >&lt;p&gt;I don&apos;t think we have heard back from @cloomis or @Yoshida. Also, it is not clear yet (to me) who is assigned this work and what actor it happens in.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="17820" author="hiro" created="Wed, 30 Sep 2020 21:13:19 +0000"  >&lt;p&gt;My understanding is that if the AGCC actor writes out MEF files with images and a binary table extension that contains metrics of detected candidate guide stellar objects, they can be sent straightaway to Gen2. If the actual candidate guide stellar objects used and/or the field acquisition/guiding offsets determined are also needed, they can either be sent as MHS then Gen2 status values to be captured by the Gen2-side client for annotation, or the AG client, or likely another new actor, will have to add an another binary table extension with the information before image files are sent out to Gen2.&lt;/p&gt;</comment>
                            <comment id="17893" author="hassan" created="Fri, 16 Oct 2020 14:46:28 +0000"  >&lt;p&gt;Following discussions during the ICS/PFI telecon 2020-10-16: this ticket can be closed.&lt;/p&gt;</comment>
                            <comment id="21808" author="cloomis" created="Fri, 6 Aug 2021 15:10:00 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=eric&quot; class=&quot;user-hover&quot; rel=&quot;eric&quot;&gt;eric&lt;/a&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=hiro&quot; class=&quot;user-hover&quot; rel=&quot;hiro&quot;&gt;Yoshida, Hiroshige&lt;/a&gt; still want this ticket &amp;#8211; we are at the point where the details can and need to be pinned down. And we think we understand the system well enough to do that. The only significant changes from the original proposal are:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;do &lt;b&gt;not&lt;/b&gt; cleverly compress the background. We will instead save the RICE-compressed background-subtracted image: the exact image that centroiding operates on.&lt;/li&gt;
	&lt;li&gt;do use a visit- and sequence-based filename. Really, why not?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Since the nice VGW mechanism snapshots these files, I think we should stick with keeping everything in one file. &lt;/p&gt;

&lt;p&gt;For implementation purposes, I think the agActor should write and announce the file: it knows the guide star catalog in use, the outputs from Kawanomoto-san&apos;s routines, and the final telescope and focus offsets. It is possible (likely) that the agccActor will write the image HDUs first, but that is an internal implementation detail. Once the file is finished, some &quot;agDisplayFile&quot; MHS keyword would get generated, which the gen2Actor would pick up on to generate a Gen2 status keyword, or whatever &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=eric&quot; class=&quot;user-hover&quot; rel=&quot;eric&quot;&gt;eric&lt;/a&gt; wants to see.&lt;/p&gt;

</comment>
                            <comment id="21865" author="cloomis" created="Wed, 25 Aug 2021 23:05:05 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=eric&quot; class=&quot;user-hover&quot; rel=&quot;eric&quot;&gt;eric&lt;/a&gt; Can we agree on a naming convention for these? Is there something you already use? I am under the impression that the &quot;VGW&quot; names are only for the snapshotted file &amp;#8211; is that true?&lt;/p&gt;

&lt;p&gt;If there are no constraints, I&apos;ll suggest including the PFS visit and guider sequence number within that. Oh, say, &lt;tt&gt;pfsGuidingDisplay-%06d-%03d.fits&lt;/tt&gt;. &lt;/p&gt;</comment>
                            <comment id="31885" author="hassan" created="Wed, 30 Nov 2022 12:48:00 +0000"  >&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;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;: Discussing this with Moritani-san, I believe that this ticket, including file name convention, might already be covered by &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-138&quot; title=&quot;Add AGCC filename format&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-138&quot;&gt;&lt;del&gt;DAMD-138&lt;/del&gt;&lt;/a&gt;, and already implemented. Can you confirm? &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="14431">INSTRM-1001</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="14436">INSTRM-1006</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14414">DAMD-82</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="10805">DAMD-2</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="23069">DAMD-138</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|02qpjd:00r3000k0014</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="123">PreEngRun4</customfieldvalue>
    <customfieldvalue id="139">PreEngRun05 F</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>