<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:52:45 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-4] Position angle in different time</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/FIBERALLOC-4</link>
                <project id="10500" key="FIBERALLOC">Target to fiber allocation and configuration</project>
                    <description>&lt;p&gt;I found the configuration for PA=0 deg. did not look like PA=0. I ran the code as follows:&lt;/p&gt;

&lt;p&gt;./ets_demo assigner=naive input=ets_test_data.dat fract=0.90 output=tmp.out ra=34.0 dec=-4.5 posang=0.0 dposang=0.0 nposang=1 dptg=0.0 nptg=1 time=2016-11-09T08:00:00Z&lt;/p&gt;

&lt;p&gt;&quot;ets_test_data.dat&quot; can be found here:&lt;br/&gt;
&lt;a href=&quot;http://member.ipmu.jp/kiyoto.yabe/tmp/ets_test_data.dat&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://member.ipmu.jp/kiyoto.yabe/tmp/ets_test_data.dat&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Using the coordinate of allocated objects, the PFI FoV looks  rotated against the north direction, and this tilt angle seem to depend on the observing time set. What kind of effect is this from?&lt;/p&gt;
</description>
                <environment></environment>
        <key id="11309">FIBERALLOC-4</key>
            <summary>Position angle in different time</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</type>
                                            <priority id="3" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/major.svg">Major</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="Martin.Reinecke">Martin Reinecke</assignee>
                                    <reporter username="kiyoto.yabe">Kiyoto Yabe</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Nov 2016 05:42:05 +0000</created>
                <updated>Wed, 2 May 2018 06:15:46 +0000</updated>
                            <resolved>Wed, 2 May 2018 06:15:46 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="11521" author="martin.reinecke" created="Wed, 9 Nov 2016 12:33:44 +0000"  >&lt;p&gt;I fear this is due to my insufficient knowledge how the position angle is defined. My expectation is that its definition can be deduced by the transformation between the reference frame of the PFS and the telescope itself.&lt;br/&gt;
I&apos;d be grateful for a pointer to any related documents!&lt;/p&gt;</comment>
                            <comment id="11528" author="kiyoto.yabe" created="Thu, 10 Nov 2016 07:39:51 +0000"  >&lt;p&gt;I will find out documents (if they exist...). For my reference, could you point out where you calculate the angle in the code please? (Sorry, I&apos;m not a good C programmer...)&lt;/p&gt;</comment>
                            <comment id="11531" author="martin.reinecke" created="Thu, 10 Nov 2016 12:20:02 +0000"  >&lt;p&gt;Sure!&lt;br/&gt;
All the code relevant to this problem is in ets_demo.cc itself. The position angle variables typically have &quot;posang&quot; in their names. (Throughout the code, angles are always stored in radians instead of degrees, since this is what the trigonometric functions expect.)&lt;br/&gt;
The function that transforms target coordinates from alt/az to a position on the PFI plane is targetToPFI(). Inside this function the position angle is called &quot;psi&quot; (I wrote that before I was familiar with the terminology ...)&lt;br/&gt;
My idea was that for a PA of 0, the &quot;y&quot; axis of the PFI coordinate  is as close to the zenith direction as possible for the given telescope pointing. Of course this reasoning fails when the telescope is aiming directly at the zenith, so a more robust definition is certainly welcome.&lt;br/&gt;
If there are already some examples for PFI coordinates and their corresponding locations on the sky (given a PA and telescope pointing), that would be fantastic, since it would allow me to test the correctness of my implementation.&lt;/p&gt;</comment>
                            <comment id="11536" author="kiyoto.yabe" created="Fri, 11 Nov 2016 08:22:42 +0000"  >&lt;p&gt;OK, I will check that in details.&lt;/p&gt;

&lt;p&gt;Yes, it is true that y axis should point north if PA is 0, but the result does not seem to be so, if I plot the output RA and Dec...&lt;/p&gt;

&lt;p&gt;I found that Maximilian may also know something. We should contact people in Subaru but he can directly ask to someone (for example Eric Jeschke-san).&lt;/p&gt;</comment>
                            <comment id="11537" author="mxhf" created="Fri, 11 Nov 2016 09:18:04 +0000"  >&lt;p&gt;Dear Yabe san, dear Martin,&lt;/p&gt;

&lt;p&gt;reading the last two comment carefully, it seems that there is a misunderstanding.&lt;/p&gt;

&lt;p&gt;Martin: PA = 0 is indeed straight North. Was that clear? The orientation of the angle is a bit less clear, but positive angle going east of North tends to be the standard. Note, this is the Position Angle. So, PA = 0 does not point to Zenith but Polaris (more or less).&lt;/p&gt;

&lt;p&gt;This can be confused with the Parallactic angle. To avoid confusion people do *notP usually abbreviate the latter with &quot;PA&quot; but with &quot;parang&quot; or so.&lt;/p&gt;

&lt;p&gt;Maximilian&lt;/p&gt;
</comment>
                            <comment id="11541" author="martin.reinecke" created="Fri, 11 Nov 2016 12:41:20 +0000"  >&lt;p&gt;Thank you for your inputs. I will try and digest the explanation over the weekend.&lt;/p&gt;</comment>
                            <comment id="11542" author="martin.reinecke" created="Fri, 11 Nov 2016 14:04:07 +0000"  >&lt;p&gt;I think I got it... associating &quot;PA=0&quot; with &quot;y axis points toward the zenith&quot; was of course a naive conclusion. The celestial Pole makes a lot more sense.&lt;br/&gt;
It should not be very hard to adjust the code accordingly. With a bit of luck I&apos;ll get this done early next week.&lt;br/&gt;
Thanks again for all your inputs!&lt;/p&gt;</comment>
                            <comment id="11549" author="martin.reinecke" created="Mon, 14 Nov 2016 12:29:46 +0000"  >&lt;p&gt;I have pushed a change that determines the PA relative to the celestial pole now. Tests indicate that the shape of the output FoV no longer depends on time and also appears to have the correct orientation.&lt;br/&gt;
The direction in which the PA is measured is still not clear to me. But if the current implementation turns out to be incorrect, this can be adjusted with only a minimal change. &lt;/p&gt;</comment>
                            <comment id="11556" author="kiyoto.yabe" created="Wed, 16 Nov 2016 07:53:26 +0000"  >&lt;p&gt;Thank you, Martin. It seems that PFI X and Y coordinates change if we set the same position center and position angle but a different time (probably it depends on ALT). Did you take into consideration the atmospheric differential refraction? or the conversion between RA-Dec and X-Y depends on ALT now?&lt;/p&gt;</comment>
                            <comment id="11557" author="martin.reinecke" created="Wed, 16 Nov 2016 10:37:51 +0000"  >&lt;p&gt;Yes, differential refraction is taken into account (as well as nutation and aberration). Is this sufficient to explain the shifts you see?&lt;br/&gt;
For the moment I do not model the elevation-dependent distortion of the image, which is described on the &quot;conversion formula&quot; slides. I just use some average, elevation-independent values to go from angles to x,y-coordinates.&lt;/p&gt;</comment>
                            <comment id="11558" author="martin.reinecke" created="Wed, 16 Nov 2016 12:17:22 +0000"  >&lt;p&gt;I just verified that by switching refraction off (in the source code), the time-dependent shifts in x and y positions become much smaller. So it appears that differential refraction indeed causes most of the differences.&lt;br/&gt;
The remaining shifts are on the order of 1e-5 mm for two observations with two hours time difference. I cannot identify their origin at the moment, but they appear to be small enough to be ignored.&lt;/p&gt;</comment>
                            <comment id="11576" author="kiyoto.yabe" created="Thu, 17 Nov 2016 00:28:18 +0000"  >&lt;p&gt;OK, thank you. Then, I think we are ready now for the distribution with this version.&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|ii00wf:</customfieldvalue>

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