<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:24: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>[INSTRM-388] Create WCS cards for MCS images.</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-388</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;I believe we are required by Subaru to have WCS cards. We could, in operations, have pixel &amp;#8211; sky transforms. We probably always want pixel &amp;#8211; focal plane (mm)?&lt;/p&gt;

&lt;p&gt;Per &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-484&quot; title=&quot;Update FITS headers based on Subaru feedback of MCS example PFSC00005800&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-484&quot;&gt;&lt;del&gt;INSTRM-484&lt;/del&gt;&lt;/a&gt;, this must go in HDU1, with the image.&lt;/p&gt;

&lt;p&gt;We don&apos;t have rotation yet, but will.&lt;/p&gt;</description>
                <environment></environment>
        <key id="12500">INSTRM-388</key>
            <summary>Create WCS cards for MCS images.</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="yuki.moritani">yuki.moritani</assignee>
                                    <reporter username="cloomis">cloomis</reporter>
                        <labels>
                            <label>MCS</label>
                    </labels>
                <created>Wed, 20 Jun 2018 14:55:13 +0000</created>
                <updated>Tue, 16 Oct 2018 06:21:20 +0000</updated>
                            <resolved>Sun, 14 Oct 2018 07:03:39 +0000</resolved>
                                                                    <component>ics_mcsActor</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="14048" author="cloomis" created="Fri, 14 Sep 2018 00:28:26 +0000"  >&lt;p&gt;The distortion routines freshly put into `pfs_utils` have sky-to-mcs, mcs-to-pfi, and pfi-to-mcs. We can probably use these to generate pretty good WCS solutions for both maps.&lt;/p&gt;</comment>
                            <comment id="14102" author="cloomis" created="Mon, 1 Oct 2018 18:27:02 +0000"  >&lt;p&gt;This covers items 2, part of 19,  20, 24 from &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-388&quot; title=&quot;Create WCS cards for MCS images.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-388&quot;&gt;&lt;del&gt;INSTRM-388&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14105" author="cloomis" created="Mon, 1 Oct 2018 19:08:59 +0000"  >&lt;p&gt;Can we add, say, &lt;tt&gt;genWCS(rot, alt)&lt;/tt&gt; routines to &lt;tt&gt;pfsutils.coordinates&lt;/tt&gt;? I do not know enough to recommend WCS python modules, but the ICS environment does include &lt;tt&gt;astropy&lt;/tt&gt;, which has &lt;tt&gt;astropy.wcs&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="14114" author="hassan" created="Tue, 2 Oct 2018 19:15:27 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=yuki.moritani&quot; class=&quot;user-hover&quot; rel=&quot;yuki.moritani&quot;&gt;yuki.moritani&lt;/a&gt;: I&apos;ve re-assigned this issue to you as you have coordinate transformation experience. Please contact &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; or &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=chyan&quot; class=&quot;user-hover&quot; rel=&quot;chyan&quot;&gt;chyan&lt;/a&gt; if you need support on WCS matters.&lt;/p&gt;</comment>
                            <comment id="14116" author="yuki.moritani" created="Tue, 2 Oct 2018 23:40:53 +0000"  >&lt;p&gt;Well, the current distortion routines treat symmetric scaling and deviation from scaling separately, so we my be able to start with using the former as a first step.&lt;/p&gt;

&lt;p&gt;The scaling part is called&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;
&lt;span class=&quot;code-comment&quot;&gt;// def ScalingFactor(xyin, c):&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and it consists of polynomials and residual. I think we can also skip residual, which I used interpolation.&lt;/p&gt;

&lt;p&gt;So, as a first step, we could create WCS card by&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Referring the PFI center position on MCS&lt;/li&gt;
	&lt;li&gt;Referring the coefficients of polynomials &lt;tt&gt;dis_rsc&lt;/tt&gt; for the symmetric scaling&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;What do you think? &lt;br/&gt;
 I think distortion coefficients will be accommodated in a separate place from script itself (&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-277&quot; title=&quot;Save F3C to MCS distortion map version and/or coeffs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-277&quot;&gt;&lt;del&gt;INSTRM-277&lt;/del&gt;&lt;/a&gt;), I guess the above can be done without distortion routine.&lt;/p&gt;</comment>
                            <comment id="14148" author="cloomis" created="Mon, 8 Oct 2018 15:09:45 +0000"  >&lt;p&gt;Agreed, and I&apos;d even go further: linear is probably fine for now.&lt;/p&gt;

&lt;p&gt;The routines documented in &lt;a href=&quot;http://docs.astropy.org/en/stable/wcs/#building-a-wcs-structure-programmatically&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://docs.astropy.org/en/stable/wcs/#building-a-wcs-structure-programmatically&lt;/a&gt; are probably what we should use.&lt;/p&gt;</comment>
                            <comment id="14162" author="yuki.moritani" created="Mon, 8 Oct 2018 23:58:45 +0000"  >&lt;p&gt;Thank you for the pointer. I&apos;ll read it and put a draft here later.&lt;/p&gt;</comment>
                            <comment id="14177" author="yuki.moritani" created="Thu, 11 Oct 2018 16:32:59 +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; I pushed a code to treat this, although I claimed &quot;TBD&quot; for world coordinates.&lt;/p&gt;

&lt;p&gt;It is called with mode (the same as the coordinate code), center position, alt and az, like&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;
MakeWCSCards.WCSParameters(&lt;span class=&quot;code-quote&quot;&gt;&quot;mcs_pfi&quot;&lt;/span&gt;, [centx,centy], 0., 90. , 0.]&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The all angles are in degree.&lt;br/&gt;
It returns WCS and SIP parameters.&lt;/p&gt;

&lt;p&gt;Could you see if it is what you expect so far?&lt;/p&gt;</comment>
                            <comment id="14178" author="cloomis" created="Thu, 11 Oct 2018 16:42:43 +0000"  >&lt;p&gt;At first glance that looks perfect. [ I&apos;ll push a couple of tiny changes to your branch ]&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="12800">INSTRM-466</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="13001">INSTRM-525</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_10006" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>INSTRM-484</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|ii015w:r</customfieldvalue>

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