<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:37:05 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-1582] Make sky-pfi coordinate transformation more consistent with AG</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1582</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;Kawanomoto-san developed the coefficients for the fiber focal plane using the same function as that used for the AG focal planes. Use this function for sky-pfi coordinate transformation. Also, the study using AG reveals that corrections of proper motion and equinox etc. is slightly different b/w Az-El and InR (in the telescope), so the correction is better to handle in pfs_utils.&#160; I talked to Martin this point, and he agreed to call sky-pfi transformation using J2000.0 catalogue. Also he pointed out that unnecessary arguments needs to be deleted.&lt;/p&gt;</description>
                <environment></environment>
        <key id="22741">INSTRM-1582</key>
            <summary>Make sky-pfi coordinate transformation more consistent with AG</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="yuki.moritani">yuki.moritani</reporter>
                        <labels>
                            <label>EngRun</label>
                    </labels>
                <created>Tue, 19 Apr 2022 01:48:55 +0000</created>
                <updated>Thu, 9 Jun 2022 15:36:59 +0000</updated>
                            <resolved>Thu, 9 Jun 2022 15:36:59 +0000</resolved>
                                                                    <component>pfs_utils</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="30744" author="yuki.moritani" created="Tue, 19 Apr 2022 21:55:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=Martin.Reinecke&quot; class=&quot;user-hover&quot; rel=&quot;Martin.Reinecke&quot;&gt;Martin Reinecke&lt;/a&gt;&#160;I&apos;d like you to pass the proper motion and parallax of individual objects when you call the sky-pfi coordinate transformation, as follows.. is it possible?&#160;&lt;/p&gt;

&lt;p&gt;&#160;&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;
def CoordinateTransform(xyin, mode, pa=0.,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cent=np.array([[0.], [0.]]),
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; time=&lt;span class=&quot;code-quote&quot;&gt;&apos;2020-01-01 10:00:00&apos;&lt;/span&gt;,
                         pm=None, parallax=None):
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;(pm should be the same shape of xyin, and parallax is an array of N elements.. although I&apos;m putting None here)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="30746" author="martin.reinecke" created="Wed, 20 Apr 2022 12:12:22 +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 think this should work fine, and it would allow me to remove quite some code on my side, which is great!&lt;/p&gt;

&lt;p&gt;Is this new version already available somewhere, so that I can validate my adjustments on my side? I don&apos;t see it on &lt;a href=&quot;https://github.com/Subaru-PFS/pfs_utils/&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/pfs_utils/&lt;/a&gt; yet.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="30832" author="yuki.moritani" created="Thu, 5 May 2022 16:30:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=Martin.Reinecke&quot; class=&quot;user-hover&quot; rel=&quot;Martin.Reinecke&quot;&gt;Martin Reinecke&lt;/a&gt;&#160;I&apos;m sorry to be late.. but I just pushed the ticket branch to show the new I/F&#160; among us:&lt;br/&gt;
&#160;&lt;br/&gt;
&#160;&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;
def CoordinateTransform(xyin, mode, za=0., inr=0., pa=-90., adc=0.,
 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;cent=np.array([[0.], [0.]]), pm=None, par=None,
 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;time=&lt;span class=&quot;code-quote&quot;&gt;&apos;2020-01-01 10:00:00&apos;&lt;/span&gt;, epoch=2015.5): &#160;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;As we talked via email, I changed za to optional argument. Accordingly, I&apos;d like &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=karr&quot; class=&quot;user-hover&quot; rel=&quot;karr&quot;&gt;karr&lt;/a&gt;&#160;to swap the second and third arguments to call the code. (&lt;ins&gt;&lt;tt&gt;mode&lt;/tt&gt; and &lt;tt&gt;za&lt;/tt&gt; has been swapped.&lt;/ins&gt;)&lt;br/&gt;
&#160;&lt;br/&gt;
Although I wrote a little explanation as docstring,,, I&apos;m writing a few sentences here just in case..&lt;br/&gt;
You need to pass proper motion and parallax (I&apos;ll set zero if I don&apos;t have).&lt;br/&gt;
The equinox of the catalogue is assumed J2000, and you should set reference epoch of the sky catalogue (default is 2015.5, following Gaia DR2.)&lt;br/&gt;
Could you please check?&lt;br/&gt;
&#160;&lt;/p&gt;</comment>
                            <comment id="30843" author="martin.reinecke" created="Fri, 6 May 2022 08:23:32 +0000"  >&lt;p&gt;Thank you very much for this update! I have already started adjusting the calling code, and it seems to be very easy to do.&lt;/p&gt;</comment>
                            <comment id="30898" author="yuki.moritani" created="Thu, 12 May 2022 14:49:03 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=Martin.Reinecke&quot; class=&quot;user-hover&quot; rel=&quot;Martin.Reinecke&quot;&gt;Martin Reinecke&lt;/a&gt;&#160;I pushed further modification to the ticket branch.&lt;/p&gt;

&lt;p&gt;I&apos;m sorry for the last-minute work,,, but could you please check if it works on your side?&#160;&lt;/p&gt;</comment>
                            <comment id="30899" author="martin.reinecke" created="Fri, 13 May 2022 10:32:06 +0000"  >&lt;p&gt;Thank you! As far as I can tell, it continues to work.&lt;br/&gt;
 Perhaps there is a small typo in the documentation: Line 17 should possibly be&lt;br/&gt;
 &lt;tt&gt;# sky_pfi : sky to F3C (using Kawanomoto&apos;s routine)&lt;/tt&gt;&lt;br/&gt;
 instead of&lt;br/&gt;
 &lt;tt&gt;# sky_pfi_old : sky to F3C (using Kawanomoto&apos;s routine)&lt;/tt&gt;&lt;/p&gt;</comment>
                            <comment id="30900" author="martin.reinecke" created="Fri, 13 May 2022 13:00:19 +0000"  >&lt;p&gt;I have pushed the necessary changes to &lt;a href=&quot;https://github.com/Subaru-PFS/ets_fiberalloc/tree/tickets/INSTRM-1582.&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/ets_fiberalloc/tree/tickets/INSTRM-1582.&lt;/a&gt; Unfortunately I could only test the &lt;tt&gt;demo_netflow.py&lt;/tt&gt; script, since running &lt;tt&gt;subaru_fiber_allocation_2021nov.py&lt;/tt&gt; requires the summit&lt;img class=&quot;emoticon&quot; src=&quot;https://pfspipe.ipmu.jp/jira/images/icons/emoticons/help_16.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; environment, which I cannot reproduce locally. Please notify me if you encounter any problems!&lt;/p&gt;</comment>
                            <comment id="30903" author="yuki.moritani" created="Fri, 13 May 2022 17:36:04 +0000"  >&lt;p&gt;Thank you martin. Could you tell whether there are any points to modify for &lt;tt&gt;shuffle&lt;/tt&gt; as well?&lt;/p&gt;</comment>
                            <comment id="30906" author="kiyoto.yabe" created="Sat, 14 May 2022 01:52:07 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=monodera&quot; class=&quot;user-hover&quot; rel=&quot;monodera&quot;&gt;monodera&lt;/a&gt;&#160;&amp;amp; I are looking into this in the script but we got the following error:&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;
2022-05-13T15:44:36.421 30 butler &#160; &#160; newRun: cobracoach/20220513_039
/work/pfs/commissioning/netflow/lib/python3.8/site-packages/erfa/core.py:154: ErfaWarning: ERFA function &lt;span class=&quot;code-quote&quot;&gt;&quot;pmsafe&quot;&lt;/span&gt; yielded 1 of &lt;span class=&quot;code-quote&quot;&gt;&quot;distance overridden (Note 6)&quot;&lt;/span&gt;
&#160; warnings.warn(&lt;span class=&quot;code-quote&quot;&gt;&apos;ERFA function &lt;span class=&quot;code-quote&quot;&gt;&quot;{}&quot;&lt;/span&gt; yielded {}&apos;&lt;/span&gt;.format(func_name, wmsg),
WARNING: Tried to get polar motions &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; times after IERS data is valid. Defaulting to polar motion from the 50-yr mean &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; necessary. [astropy.coordinates.builtin_frames.utils]
2022-05-13T15:44:37.163 30 astropy&#160; &#160; Tried to get polar motions &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; times after IERS data is valid. Defaulting to polar motion from the 50-yr mean &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; those. This may affect precision at the arcsec level. Please check your astropy.utils.iers.conf.iers_auto_url and point it to a newer version &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; necessary.
WARNING: (some) times are outside of range covered by IERS table. Assuming UT1-UTC=0 &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; coordinate transformations. [astropy.coordinates.builtin_frames.utils]
2022-05-13T15:44:37.166 30 astropy&#160; &#160; (some) times are outside of range covered by IERS table. Assuming UT1-UTC=0 &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; coordinate transformations.
Traceback (most recent call last):
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/fiber_allocation/ets_target_database/examples/commissioning_2022may/subaru_fiber_allocation.py&quot;&lt;/span&gt;, line 347, in &amp;lt;module&amp;gt;
&#160; &#160; main()
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/fiber_allocation/ets_target_database/examples/commissioning_2022may/subaru_fiber_allocation.py&quot;&lt;/span&gt;, line 284, in main
&#160; &#160; vis, tp, tel, tgt, tgt_class_dict = nfutils.fiber_allocation(
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/fiber_allocation/ets_target_database/examples/commissioning_2022may/pointing_utils/nfutils.py&quot;&lt;/span&gt;, line 295, in fiber_allocation
&#160; &#160; target_fppos = [tele.get_fp_positions(targets) &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; tele in telescopes]
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/fiber_allocation/ets_target_database/examples/commissioning_2022may/pointing_utils/nfutils.py&quot;&lt;/span&gt;, line 295, in &amp;lt;listcomp&amp;gt;
&#160; &#160; target_fppos = [tele.get_fp_positions(targets) &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; tele in telescopes]
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/fiber_allocation/ets_fiberalloc/ets_fiber_assigner/netflow.py&quot;&lt;/span&gt;, line 550, in get_fp_positions
&#160; &#160; tmp = ctrans(xyin=tmp,
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/fiber_allocation/pfs_utils/python/pfs/utils/coordinates/CoordTransp.py&quot;&lt;/span&gt;, line 80, in CoordinateTransform
&#160; &#160; xyin, inr, za1 = convert_in_position(xyin, za, inr, pa, c, 
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/fiber_allocation/pfs_utils/python/pfs/utils/coordinates/CoordTransp.py&quot;&lt;/span&gt;, line 266, in convert_in_position
&#160; &#160; az0, el0, inr = DCoeff.radec_to_subaru(ra0, dec0, pa, time, 
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/fiber_allocation/pfs_utils/python/pfs/utils/coordinates/DistortionCoefficients.py&quot;&lt;/span&gt;, line 660, in radec_to_subaru
&#160; &#160; paa = tel2.parallactic_angle(obs_time, coord4).deg
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astroplan/observer.py&quot;&lt;/span&gt;, line 534, in parallactic_angle
&#160; &#160; LST = time.sidereal_time(&lt;span class=&quot;code-quote&quot;&gt;&apos;mean&apos;&lt;/span&gt;, longitude=self.location.lon)
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astropy/time/core.py&quot;&lt;/span&gt;, line 1903, in sidereal_time
&#160; &#160; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; self._sid_time_or_earth_rot_ang(longitude=longitude, **model_kwargs)
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astropy/time/core.py&quot;&lt;/span&gt;, line 1948, in _sid_time_or_earth_rot_ang
&#160; &#160; theta = self._call_erfa(function, scales)
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astropy/time/core.py&quot;&lt;/span&gt;, line 1970, in _call_erfa
&#160; &#160; erfa_parameters = [getattr(getattr(self, scale)._time, jd_part)
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astropy/time/core.py&quot;&lt;/span&gt;, line 1970, in &amp;lt;listcomp&amp;gt;
&#160; &#160; erfa_parameters = [getattr(getattr(self, scale)._time, jd_part)
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astropy/time/core.py&quot;&lt;/span&gt;, line 1336, in __getattr__
&#160; &#160; tm._set_scale(attr)
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astropy/time/core.py&quot;&lt;/span&gt;, line 584, in _set_scale
&#160; &#160; args.append(get_dt(jd1, jd2))
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astropy/time/core.py&quot;&lt;/span&gt;, line 2051, in _get_delta_ut1_utc
&#160; &#160; delta = iers_table.ut1_utc(jd1, jd2)
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astropy/utils/iers/iers.py&quot;&lt;/span&gt;, line 281, in ut1_utc
&#160; &#160; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; self._interpolate(jd1, jd2, [&lt;span class=&quot;code-quote&quot;&gt;&apos;UT1_UTC&apos;&lt;/span&gt;],
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astropy/utils/iers/iers.py&quot;&lt;/span&gt;, line 414, in _interpolate
&#160; &#160; self._check_interpolate_indices(i1, i, np.max(mjd))
&#160; File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/pfs/commissioning/netflow/lib/python3.8/site-packages/astropy/utils/iers/iers.py&quot;&lt;/span&gt;, line 354, in _check_interpolate_indices
&#160; &#160; raise IERSRangeError(&lt;span class=&quot;code-quote&quot;&gt;&apos;(some) times are outside of range covered &apos;&lt;/span&gt;
astropy.utils.iers.iers.IERSRangeError: (some) times are outside of range covered by IERS table.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;We have not been able to get solution yet.&lt;/p&gt;</comment>
                            <comment id="30909" author="martin.reinecke" created="Sat, 14 May 2022 05:18:36 +0000"  >&lt;p&gt;Does the value of &quot;self._time&quot; that is passed in netflow.py (line 552) look reasonable?&lt;/p&gt;</comment>
                            <comment id="30910" author="martin.reinecke" created="Sat, 14 May 2022 05:31:19 +0000"  >&lt;p&gt;&lt;cite&gt;Thank you martin. Could you tell whether there are any points to modify for &lt;tt&gt;shuffle&lt;/tt&gt; as well&lt;/cite&gt;?&lt;/p&gt;

&lt;p&gt;I just pushed changes there as well. This should have no effect on the next commissioning run, since all the relevant parts of shuffle are now replicated in Onodera-san&apos;s script, and have been adjusted there already.&lt;/p&gt;</comment>
                            <comment id="30911" author="kiyoto.yabe" created="Sat, 14 May 2022 05:50:45 +0000"  >&lt;p&gt;??Does the value of &quot;self._time&quot; that is passed in netflow.py (line 552) look reasonable?&lt;br/&gt;
I think we pass the time like this&#160;&quot;2022-05-20T15:00:00Z&quot;.&#160;&lt;br/&gt;
Strangely, the script works if we pass an earlier date like &quot;2022-01-20T15:00:00Z&quot;...&#160;&lt;/p&gt;</comment>
                            <comment id="30912" author="yuki.moritani" created="Sat, 14 May 2022 05:57:49 +0000"  >&lt;p&gt;I&apos;m not sure it works to you, but if you run the code via notebook, could you try adding these lines before running the code?&lt;/p&gt;

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

&lt;p&gt;&#160;&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;
from astropy.utils.data &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; clear_download_cache
clear_download_cache()
from astropy.utils &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; iers
# iers.IERS_A_URL
iers.Conf.iers_auto_url.set(&lt;span class=&quot;code-quote&quot;&gt;&apos;https:&lt;span class=&quot;code-comment&quot;&gt;//datacenter.iers.org/data/9/finals2000A.all&apos;&lt;/span&gt;)
&lt;/span&gt;from astroplan &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; download_IERS_A
download_IERS_A()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="30913" author="martin.reinecke" created="Sat, 14 May 2022 05:58:59 +0000"  >&lt;p&gt;OK, then this really looks like the tables in astropy need some kind of update. I was worried that the time string was getting scrambled somehow on my side, but this doesn&apos;t seem to be the case.&lt;/p&gt;</comment>
                            <comment id="30914" author="kiyoto.yabe" created="Sat, 14 May 2022 06:13:04 +0000"  >&lt;p&gt;Thank you, &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;&#160;. We already have actually changed the url to different sites and tested. The suggested lines actually didn&apos;t work unfortunately. Yes, it looks like the astropy problem.&lt;/p&gt;</comment>
                            <comment id="30915" author="monodera" created="Sat, 14 May 2022 09:15:29 +0000"  >&lt;p&gt;There was some discussion on astropy and they introduced a config parameter &lt;tt&gt;iers_degraded_accuracy&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.astropy.org/en/latest/utils/iers.html#configuration-parameters&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://docs.astropy.org/en/latest/utils/iers.html#configuration-parameters&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/astropy/astropy/pull/13052&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/astropy/astropy/pull/13052&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I tried to install the latest version (i.e., the master branch) of astropy and set &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-python&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;from&lt;/span&gt; astropy.utils &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; iers
iers.conf.iers_degraded_accuracy = &lt;span class=&quot;code-quote&quot;&gt;&quot;warn&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;at the top of the script. Then, it looks working by switching to the IERS-B data. I&apos;m not sure this is the right way, but I hope it is a reasonable workaround.&lt;/p&gt;</comment>
                            <comment id="30916" author="martin.reinecke" created="Sat, 14 May 2022 09:16:10 +0000"  >&lt;p&gt;Concerning the question how I can correct RA/Dec in a way that is consistent with pfs_utils: I think the relevant code snippet is &lt;a href=&quot;https://github.com/Subaru-PFS/pfs_utils/blob/tickets/INSTRM-1582/python/pfs/utils/coordinates/DistortionCoefficients.py#L608-L633&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/pfs_utils/blob/tickets/INSTRM-1582/python/pfs/utils/coordinates/DistortionCoefficients.py#L608-L633&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I think I can copy this into my code, but if there is a preference to have this as a standalone helper function in pfs_utils, I&apos;m happy to provide a PR for that!&lt;/p&gt;

&lt;p&gt;What do you think, &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;, &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=rhl&quot; class=&quot;user-hover&quot; rel=&quot;rhl&quot;&gt;rhl&lt;/a&gt;?&lt;/p&gt;</comment>
                            <comment id="30917" author="yuki.moritani" created="Sat, 14 May 2022 09:22:38 +0000"  >&lt;p&gt;If needed, calculated ra-dec can be added as return of that routine.. so that you can call it.&lt;/p&gt;</comment>
                            <comment id="30918" author="kiyoto.yabe" created="Sat, 14 May 2022 21:56:35 +0000"  >&lt;p&gt;Adding&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;
from astropy.utils &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; iers
iers.conf.auto_download = True
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;works for me now.&lt;/p&gt;

&lt;p&gt;I don&apos;t know why because the default value is `True`.&lt;/p&gt;</comment>
                            <comment id="30919" author="kiyoto.yabe" created="Sun, 15 May 2022 05:04:38 +0000"  >&lt;p&gt;With this version, it seems that the relative geometry between AGs and cobras is bit strange. Attached is an example FoV map (on sky) with coordinates of assigned guide objects and science targets.&#160;&lt;/p&gt;

&lt;p&gt;(detailed command with Onodera-san&apos;s script is like this)&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;
python $REPO/subaru_fiber_allocation.py --design_dir &lt;span class=&quot;code-quote&quot;&gt;&quot;design/prep/yamashita&quot;&lt;/span&gt; --cobra_coach_dir &lt;span class=&quot;code-quote&quot;&gt;&quot;cobracoach&quot;&lt;/span&gt;&#160; --ra 268.70 --dec 20.27&#160; --pa -90.0&#160; --fluxstd_min_prob_f_star 0.0&#160; --n_fluxstd 500&#160; --guidestar_mag_max 20.0&#160; --observation_time 2022-05-19T10:30:00Z&#160; --conf config.toml --pfs_instdata_dir&#160; /work/pfs/commissioning/fiber_allocation/pfs_instdata
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Changing PA doesn&apos;t change the relative geometry. I think this didn&apos;t happen at least in Nov., and I still don&apos;t know when this was changed. Or perhaps I did something stupid...&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;15200_thumb&quot; href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15200/15200_pfsDesign-0x78e3b3034e015cf0_small.png&quot; title=&quot;pfsDesign-0x78e3b3034e015cf0_small.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;15200&quot; file-preview-title=&quot;pfsDesign-0x78e3b3034e015cf0_small.png&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/thumbnail/15189/_thumb_15189.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="30920" author="yuki.moritani" created="Sun, 15 May 2022 05:16:04 +0000"  >&lt;p&gt;Let me check...&lt;/p&gt;</comment>
                            <comment id="30921" author="kiyoto.yabe" created="Mon, 16 May 2022 03:13:43 +0000"  >&lt;p&gt;Thank you &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;&#160;for your suggestion offline.&lt;/p&gt;

&lt;p&gt;OK, &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=monodera&quot; class=&quot;user-hover&quot; rel=&quot;monodera&quot;&gt;monodera&lt;/a&gt;&#160;: Is the script pass the same PA to both netflow part and guide star selection part?&lt;/p&gt;

&lt;p&gt;According to the code, it looks yes.&lt;/p&gt;

&lt;p&gt;Then, &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=Martin.Reinecke&quot; class=&quot;user-hover&quot; rel=&quot;Martin.Reinecke&quot;&gt;Martin Reinecke&lt;/a&gt;&#160;: Are the netflow (or nf.Telescope) and the guide star part using the same PA?&lt;/p&gt;

&lt;p&gt;The guide positions should be around sides of the hexagon (not&#160;&lt;em&gt;vertices).&lt;/em&gt; See the movie in the middle of the official website (&lt;a href=&quot;https://pfs.ipmu.jp/instrumentation.html)&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://pfs.ipmu.jp/instrumentation.html&lt;/a&gt;). Sorry but I cannot quickly show a better photo.&lt;/p&gt;</comment>
                            <comment id="30922" author="martin.reinecke" created="Mon, 16 May 2022 09:51:39 +0000"  >&lt;p&gt;&lt;cite&gt;If needed, calculated ra-dec can be added as return of that routine.. so that you can call it.&lt;/cite&gt;&lt;/p&gt;

&lt;p&gt;Do you mean by introducing a new transform mode, e.g. &quot;sky_to_corrected_sky&quot;? That would be a great addition!&lt;/p&gt;</comment>
                            <comment id="30923" author="martin.reinecke" created="Mon, 16 May 2022 10:05:23 +0000"  >&lt;p&gt;&lt;cite&gt;Then, Martin Reinecke : Are the netflow (or nf.Telescope) and the guide star part using the same PA&lt;/cite&gt;?&lt;/p&gt;

&lt;p&gt;The &quot;guidecam_geometry&quot; function is independent of the PA (as far as I understand), since it works entirely with local PFI coordinates. All the remaining transforms are probably taking part inside the &quot;subaru_fiber_allocation.py&quot; script. If you can point me to the location of this script, I&apos;m happy to look more closely. (I assume it has evolved from &quot;subaru_fiber_allocation_2021nov.py&quot;, but I don&apos;t know where it is located.)&lt;/p&gt;</comment>
                            <comment id="30924" author="monodera" created="Mon, 16 May 2022 10:20:14 +0000"  >&lt;p&gt;Hi, the script for this commissioning run can be found here (commissioning_2022may branch of ets_target_database).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/Subaru-PFS/ets_target_database/tree/commissioning_2022may/examples/commissioning_2022may&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/ets_target_database/tree/commissioning_2022may/examples/commissioning_2022may&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="30930" author="monodera" created="Wed, 18 May 2022 08:47:44 +0000"  >&lt;p&gt;I think I was able to fix the issue following the advice by Yabe-san and Martin. I found a bug in my script. Thanks a lot.&lt;/p&gt;

&lt;p&gt;I attached some example pfsDesigns by using the following command.&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-bash&quot;&gt;
python ./subaru_fiber_allocation.py \
    --conf ../../../database_configs/config_pfsa-db01-gb_commissioning_2022may.toml \
    --ra 161.72486 \
    --dec 28.53286 \
    --pa -90.0 \
    --cobra_coach_dir coach \
    --design_dir=design \
    --n_fluxstd 0 \
    --fluxstd_min_prob_f_star 0.0 \
    --guidestar_mag_max 20.0 \
    --observation_time 2022-05-19T10:30:00Z \
    --exptime 900 \
    --raster_scan \
    --raster_mag_max 20
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Then by setting --sm option to specify which spectrographs to be used, one can limit cobras to be allocated to objects.&lt;/p&gt;

&lt;p&gt; &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15198/15198_pfsDesign-0x78e3b3034e015cf0_sm1%2B2%2B3%2B4.pdf&quot; title=&quot;pfsDesign-0x78e3b3034e015cf0_sm1+2+3+4.pdf attached to INSTRM-1582&quot;&gt;pfsDesign-0x78e3b3034e015cf0_sm1+2+3+4.pdf&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://pfspipe.ipmu.jp/jira/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; : All spectrographs&lt;br/&gt;
 &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15199/15199_pfsDesign-0x413bcf208d3daa22_sm1%2B3.pdf&quot; title=&quot;pfsDesign-0x413bcf208d3daa22_sm1+3.pdf attached to INSTRM-1582&quot;&gt;pfsDesign-0x413bcf208d3daa22_sm1+3.pdf&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://pfspipe.ipmu.jp/jira/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; : SM1 and SM3&lt;br/&gt;
 &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15197/15197_pfsDesign-0x6b7813a6e0eb4ef9_sm1.pdf&quot; title=&quot;pfsDesign-0x6b7813a6e0eb4ef9_sm1.pdf attached to INSTRM-1582&quot;&gt;pfsDesign-0x6b7813a6e0eb4ef9_sm1.pdf&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://pfspipe.ipmu.jp/jira/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; : SM1&lt;/p&gt;

&lt;p&gt;In the figures, a large red circle indicates the location of a calibration star provided by Yamashita-san and you can see it is allocated to SM1. Other allocated objects are stars used for the raster scan test. &lt;/p&gt;</comment>
                            <comment id="30931" author="monodera" created="Wed, 18 May 2022 10:13:31 +0000"  >&lt;p&gt;AG star locations look also okay.&lt;/p&gt;

&lt;p&gt; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;15200_thumb&quot; href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15200/15200_pfsDesign-0x78e3b3034e015cf0_small.png&quot; title=&quot;pfsDesign-0x78e3b3034e015cf0_small.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;15200&quot; file-preview-title=&quot;pfsDesign-0x78e3b3034e015cf0_small.png&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/thumbnail/15200/_thumb_15200.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;</comment>
                            <comment id="31003" author="yuki.moritani" created="Thu, 9 Jun 2022 15:36:59 +0000"  >&lt;p&gt;It was tested and used by a few colleagues last run.&#160;As it&apos;s been merged to master, I close this ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="22790">INSTRM-1609</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="15199" name="pfsDesign-0x413bcf208d3daa22_sm1+3.pdf" size="31822" author="monodera" created="Wed, 18 May 2022 08:40:49 +0000"/>
                            <attachment id="15197" name="pfsDesign-0x6b7813a6e0eb4ef9_sm1.pdf" size="26810" author="monodera" created="Wed, 18 May 2022 08:40:49 +0000"/>
                            <attachment id="15198" name="pfsDesign-0x78e3b3034e015cf0_sm1+2+3+4.pdf" size="39512" author="monodera" created="Wed, 18 May 2022 08:40:49 +0000"/>
                            <attachment id="15200" name="pfsDesign-0x78e3b3034e015cf0_small.png" size="2004101" author="monodera" created="Wed, 18 May 2022 10:12:50 +0000"/>
                            <attachment id="15189" name="test.png" size="74526" author="kiyoto.yabe" created="Sun, 15 May 2022 05:02:40 +0000"/>
                    </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:00xzns</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="139">PreEngRun05 F</customfieldvalue>
    <customfieldvalue id="143">PreEngRun05 G</customfieldvalue>

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