<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:33:13 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-2] AG image output to archive</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/DAMD-2</link>
                <project id="10400" key="DAMD">Data Model</project>
                    <description>&lt;p&gt;In definition of the current datamodel, AG is assigned name as &lt;br/&gt;
&amp;gt; &quot;PF%1sD%06d%1d%1d.fits&quot; % (site, visit, spectrograph, armNum); category=D&lt;br/&gt;
but there is no plan to save AG image as archive in PFS* namespace at Subaru.&lt;br/&gt;
File transfer interface to Gen2 for AG FITS files are normally unnamed, and operator &lt;b&gt;can&lt;/b&gt; save an image in interest as VGW* namespace (AFAIK).&lt;/p&gt;

&lt;p&gt;So, we may have options:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;delete category=D&lt;/li&gt;
	&lt;li&gt;add interface definition to save a or some AG image as PFSD%6d00.fits (00 = no SM, no arm; or just sequential number in 2 digits)&lt;/li&gt;
	&lt;li&gt;add interface definition to save a stacked AG image over one exposure period as PFSD%6d00.fits&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;Combining constraint originally described in &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-82&quot; title=&quot;AG FrameId Allocation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-82&quot;&gt;&lt;del&gt;DAMD-82&lt;/del&gt;&lt;/a&gt;&lt;/b&gt;: Following discussions about the AG frameID during the DRP telecon 2020-05-22,  the archiving should cover AG exposures for all 6 cameras and take into the account that there may be more than 100 exposures per visit.&lt;/p&gt;</description>
                <environment></environment>
        <key id="10805">DAMD-2</key>
            <summary>AG image output to archive</summary>
                <type id="3" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10518&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/major.svg">Major</priority>
                        <status id="3" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/inprogress.png" description="This issue is being actively worked on at the moment by the assignee.">In Progress</status>
                    <statusCategory id="4" key="indeterminate" colorName="yellow"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="cloomis">cloomis</assignee>
                                    <reporter username="atsushi.shimono">shimono</reporter>
                        <labels>
                            <label>EngRun</label>
                            <label>FITS</label>
                            <label>PFI</label>
                    </labels>
                <created>Thu, 2 Jun 2016 04:56:23 +0000</created>
                <updated>Fri, 6 Jan 2023 04:24:12 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                <comments>
                            <comment id="10900" author="" created="Thu, 2 Jun 2016 13:47:54 +0000"  >&lt;p&gt;I do not see the corresponding git branch &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-2&quot; title=&quot;AG image output to archive&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-2&quot;&gt;DAMD-2&lt;/a&gt; &amp;#8212; did you forget to push it?  It is not possible to understand this proposal until the details are added to datamodel.txt (note that no implementation is required until this issue is accepted) (RHL)&lt;/p&gt;</comment>
                            <comment id="11290" author="rhl" created="Sat, 3 Sep 2016 18:42:33 +0000"  >&lt;p&gt;After some discussion by email and on the software fuze con the conclusion was that we should maintain the PFSD AG images, but make them multi-extension fits files with one extension for each guide exposure.  Philip Tait confirms that Subaru is able to handle MEFs (e.g. FMOS and MOIRCS).&lt;/p&gt;

&lt;p&gt;Because we are using windowed reads we&apos;ll write NaNs into the un-read pixels and compress the files; that way the format will be the same for all exposures, although the number of extensions will vary with the exposure time.&lt;/p&gt;</comment>
                            <comment id="11419" author="atsushi.shimono" created="Sat, 8 Oct 2016 09:51:22 +0000"  >&lt;p&gt;I think current plan is not to use windowed reads on AG cameras, but just use windowed region for calculation of object statistics. We are possible to mark outside of that windowed region as NaNs for archived data, of course. Also we may use multiple AG cameras, and need FITS files in MEF with multi HDU, right?&lt;/p&gt;

&lt;p&gt;One another item. While writing document on AG communication and data output rate now, I noticed that we need to have a plan on this FITS file for exposure sequence with different exposure time per arm, like 15min red/IR and 7.5min blue. We could have only one FITS file over entire exposure sequence. In any case, we need to have some lines in this datamodel definition.&lt;/p&gt;</comment>
                            <comment id="11599" author="rhl" created="Mon, 21 Nov 2016 12:01:36 +0000"  >&lt;p&gt;The data model proposes:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Raw Data from the metrology camera and autoguider (AG)&lt;/p&gt;

&lt;p&gt;   &quot;PF%1s%1s%06d%02d.fits&quot; % (site, category, visit, cameraNum)&lt;/p&gt;

&lt;p&gt;There are many exposures for each visit.  These files will accordingly be multi-extension fits files (MEFs)&lt;br/&gt;
with one extension per read and one file per camera.&lt;/p&gt;

&lt;p&gt;The AG data (PF?D files) is a bit different as we only process small windows. The images will be the&lt;br/&gt;
full size of the detectors (1024x1024) and unsigned 16-bit, but with all unprocessed-pixels&lt;br/&gt;
represented as 0 (we will set the keyword BLANK = 0 &amp;#8211; we&apos;d use NaN, except that these files will&lt;br/&gt;
contain integers).  We will use FITS (probably fpack) compression on these files, so the unprocessed&lt;br/&gt;
pixels will only have a negligible effect upon the total image size.&lt;/p&gt;

&lt;p&gt;The first (and possible last) AG exposures will be complete, with no masking applied.  An advantage&lt;br/&gt;
of the proposed format is that the masked and unmasked HDUs will be identical.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I thought about making one large image, and decided that it wasn&apos;t worth while for two reasons:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;It would require getting all the images in memory on one machine. I&apos;m not sure if that&apos;s easy for the DA&lt;/li&gt;
	&lt;li&gt;There&apos;s no natural wcs for the mosaic. Each chip is well defined, but the 6 chips aren&apos;t; worse, the chips can move relative to each other.&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="15131" author="hassan" created="Mon, 18 Mar 2019 18:16:29 +0000"  >&lt;p&gt;Assigned issue to @rhl (as he was the last person to commit changes to branch)&lt;/p&gt;</comment>
                            <comment id="17513" author="hassan" created="Fri, 7 Aug 2020 17:33:20 +0000"  >&lt;p&gt;Adding comment originally provided by &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=naoyuki.tamura&quot; class=&quot;user-hover&quot; rel=&quot;naoyuki.tamura&quot;&gt;naoyuki.tamura&lt;/a&gt; to &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-82&quot; title=&quot;AG FrameId Allocation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-82&quot;&gt;&lt;del&gt;DAMD-82&lt;/del&gt;&lt;/a&gt; 2020-08-06:&lt;/p&gt;

&lt;p&gt;At the telecon dedicated to AG on June 23/24 2020 ( &lt;a href=&quot;https://sumire.pbworks.com/w/page/140496828/WG%204%20(AG)%20telecon%20on%2023-24%20June%202020&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://sumire.pbworks.com/w/page/140496828/WG%204%20(AG)%20telecon%20on%2023-24%20June%202020&lt;/a&gt; ), eric suggested and we agreed on implementing multiple HDUs to pack as many exposures as we can, rather than limiting them below 100 where somebody might have to decide a selection of 100 exposures.&lt;/p&gt;</comment>
                            <comment id="17514" author="hassan" created="Fri, 7 Aug 2020 17:34:21 +0000"  >&lt;p&gt;Adding comment originally provided by &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; to &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-82&quot; title=&quot;AG FrameId Allocation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-82&quot;&gt;&lt;del&gt;DAMD-82&lt;/del&gt;&lt;/a&gt; 2020-08-07:&lt;/p&gt;

&lt;p&gt;Those will get pretty unwieldy, but that may be fine if they are only used for archiving and SMOKA/STARS are happy. 6 HDUs per AG exposure, so at 10s/exposure 540 HDUs for 15 minutes? &lt;/p&gt;

&lt;p&gt;If we agree that these are only for archiving I think this is fine.&lt;/p&gt;</comment>
                            <comment id="17541" author="eric" created="Thu, 13 Aug 2020 22:02:25 +0000"  >&lt;p&gt;We need to get the downstream archive/Subaru FITS people to comment here, but I think MEFs should not cause any great concern so long as the headers are properly addressed, which seems to be the usual bugaboo.&#160; From a file-handling standpoint on the Hilo side we would prefer larger files vs. bunches of smaller files.&lt;/p&gt;

&lt;p&gt;Presumably these are used for engineering and possibly science/pipeline processing?&#160; And transferred at the end of an exposure?&lt;/p&gt;</comment>
                            <comment id="18005" author="furu" created="Wed, 28 Oct 2020 03:52:29 +0000"  >&lt;p&gt;Do you want to have a single FITS file containing all 6 AG detectors as in different HDUs mixing series of AG exposure? Is is worth considering to have 6 separate FITS files for each detector?&lt;br/&gt;
I think archiving MEF PFSD*fits would be useful and no problem, but need to check what the expected number of files and size (data rate) would be? We want to look into what keywords should be included in the header, which would be most important for archiving.&lt;/p&gt;

&lt;p&gt;I need to learn the discussion in &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-29&quot; title=&quot;Define AGCC files for display while guiding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-29&quot;&gt;DAMD-29&lt;/a&gt;, too, to understand correctly how we are going to deal with VGW images as well as this PFSD stuff and their relationship in operation.&lt;/p&gt;</comment>
                            <comment id="18011" author="eric" created="Thu, 29 Oct 2020 20:37:27 +0000"  >&lt;p&gt;I don&apos;t understand why &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-29&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;DAMD-29&lt;/a&gt; was closed.&#160; We need answers on this.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="18122" author="naoyuki.tamura" created="Mon, 7 Dec 2020 08:38:30 +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; Could you be specific about remaining issues to be addressed on &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-29&quot; title=&quot;Define AGCC files for display while guiding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-29&quot;&gt;DAMD-29&lt;/a&gt;? If you are concerned about implementation details, then yes we agree we should address them but we think we should do so by filing new INSTRM ticket(s) separately. If you think the data model/structure in question itself is still premature even to try going ahead to implementations a little further, could you please write down what specifics we should address, then perhaps new DAMD ticket(s) should be filed accordingly for proposals of solutions and discussions.&lt;/p&gt;</comment>
                            <comment id="18187" author="eric" created="Thu, 17 Dec 2020 22:34:36 +0000"  >&lt;p&gt;Sorry, but I think I missed the (verbal?) discussion where this ticket was decided to be closed.&#160; And perhaps I don&apos;t understand the scope of the ticket&#8211;I thought it should at least contain some responses&#160;to my and Furusawa-san&apos;s questions above?&lt;/p&gt;

&lt;p&gt;For this particular ticket, are you still planning to generate PFS &quot;D&quot; frames?&#160; If so, what is the format?&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="18188" author="furu" created="Fri, 18 Dec 2020 00:06:24 +0000"  >&lt;p&gt;And, I don&apos;t think we know the exact format and contents of VGW images, yet. As &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; commented, whether we will attach all necessary meta information for assessing observing conditions into them (as an extension table), or keeping as simple with VGW and give complete info to PFSD? I thought &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-29&quot; title=&quot;Define AGCC files for display while guiding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-29&quot;&gt;DAMD-29&lt;/a&gt; was a good place to address this question, but if not, we may want to file a new issue. Also, we want to know the relationship between VGW and PFSD if we generate both - what roles do we expect for each of them?&lt;/p&gt;</comment>
                            <comment id="21864" author="cloomis" created="Wed, 25 Aug 2021 22:50:06 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-2&quot; title=&quot;AG image output to archive&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-2&quot;&gt;DAMD-2&lt;/a&gt; and &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-29&quot; title=&quot;Define AGCC files for display while guiding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-29&quot;&gt;DAMD-29&lt;/a&gt; are indeed interrelated, and &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-29&quot; title=&quot;Define AGCC files for display while guiding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-29&quot;&gt;DAMD-29&lt;/a&gt; has been revived for final discussion and implementation. I would like to restate the goals of the two files, and to propose more of the details for the &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-2&quot; title=&quot;AG image output to archive&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-2&quot;&gt;DAMD-2&lt;/a&gt; PFSD files. If no &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-2&quot; title=&quot;AG image output to archive&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-2&quot;&gt;DAMD-2&lt;/a&gt; PFSD files are just for long-term archiving of all &quot;raw&quot; guider frames. They are &lt;b&gt;not&lt;/b&gt; part of the observing activities.&lt;/li&gt;
	&lt;li&gt;The &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-29&quot; title=&quot;Define AGCC files for display while guiding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-29&quot;&gt;DAMD-29&lt;/a&gt; files are &lt;b&gt;only&lt;/b&gt; for observing displays. As a part of that, they can easily be manually selected by the observer as VGW files for further investigation (&quot;guiding was bad here&quot;. &quot;that was a horrible guide star&quot;, etc). See &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-29&quot; title=&quot;Define AGCC files for display while guiding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-29&quot;&gt;DAMD-29&lt;/a&gt; for more detail.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The agccActor acquires raw images from the six guide cameras. I suggest that it write two files for each exposure:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;this ticket&apos;s PFSD file, pretty much as described above. It will hold N sets of seven HDUs: the six raw agcc images (compressed pretty hard), plus a single binary table with the centroids for all six cameras. I should set N=5: a number big enough to allow 500 guide frames per PFS visit, but small enough not to give obnoxious file sizes. Once finished, the agccActor will generate a keyword which will trigger the gen2Actor to request archiving.&lt;/li&gt;
	&lt;li&gt;the &lt;b&gt;starting&lt;/b&gt; file for the &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-29&quot; title=&quot;Define AGCC files for display while guiding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-29&quot;&gt;DAMD-29&lt;/a&gt; display file. The &lt;b&gt;uncompressed&lt;/b&gt; six agcc frames, plus the same binary table. The agActor will append to this and arrange to pass it on to Gen2 for display, etc. when complete.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;As far as headers go, the PFSD PHDU will hold the same gen2 cards as all the other systems, plus a few agcc-specific W_ cards (camera temperatures, serial numbers, etc). The six image HDUs could have pixel WCS headers, or even very very crude sky transforms, but at this point nothing is known about sky coordinates, let alone guide catalog matches or offsets.&lt;/p&gt;
</comment>
                            <comment id="25101" author="cloomis" created="Wed, 17 Nov 2021 00:07:02 +0000"  >&lt;p&gt;Additional note: we will always write six image HDUs per &quot;exposure&quot;. The images for missing cameras will be 0-filled (&lt;tt&gt;BLANK&lt;/tt&gt;-filled) images of the same size as the image from the first working camera.&lt;/p&gt;

&lt;p&gt;We will start with a pixel-pixel WCS.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="11136">DAMD-6</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14431">INSTRM-1001</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="14414">DAMD-82</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="11207">SIM2D-66</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="12315">DAMD-29</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="18359">INSTRM-1458</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="18319">INSTRM-1434</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="22601">PIPE2D-969</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|02qpjd:00r3000k0013</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>