[FIBERALLOC-4] Position angle in different time Created: 09/Nov/16  Updated: 02/May/18  Resolved: 02/May/18

Status: Done
Project: Target to fiber allocation and configuration
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Major
Reporter: Kiyoto Yabe Assignee: Martin Reinecke
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I found the configuration for PA=0 deg. did not look like PA=0. I ran the code as follows:

./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

"ets_test_data.dat" can be found here:
http://member.ipmu.jp/kiyoto.yabe/tmp/ets_test_data.dat

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?



 Comments   
Comment by Martin Reinecke [ 09/Nov/16 ]

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.
I'd be grateful for a pointer to any related documents!

Comment by Kiyoto Yabe [ 10/Nov/16 ]

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'm not a good C programmer...)

Comment by Martin Reinecke [ 10/Nov/16 ]

Sure!
All the code relevant to this problem is in ets_demo.cc itself. The position angle variables typically have "posang" in their names. (Throughout the code, angles are always stored in radians instead of degrees, since this is what the trigonometric functions expect.)
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 "psi" (I wrote that before I was familiar with the terminology ...)
My idea was that for a PA of 0, the "y" 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.
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.

Comment by Kiyoto Yabe [ 11/Nov/16 ]

OK, I will check that in details.

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...

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).

Comment by mxhf [ 11/Nov/16 ]

Dear Yabe san, dear Martin,

reading the last two comment carefully, it seems that there is a misunderstanding.

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).

This can be confused with the Parallactic angle. To avoid confusion people do *notP usually abbreviate the latter with "PA" but with "parang" or so.

Maximilian

Comment by Martin Reinecke [ 11/Nov/16 ]

Thank you for your inputs. I will try and digest the explanation over the weekend.

Comment by Martin Reinecke [ 11/Nov/16 ]

I think I got it... associating "PA=0" with "y axis points toward the zenith" was of course a naive conclusion. The celestial Pole makes a lot more sense.
It should not be very hard to adjust the code accordingly. With a bit of luck I'll get this done early next week.
Thanks again for all your inputs!

Comment by Martin Reinecke [ 14/Nov/16 ]

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.
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.

Comment by Kiyoto Yabe [ 16/Nov/16 ]

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?

Comment by Martin Reinecke [ 16/Nov/16 ]

Yes, differential refraction is taken into account (as well as nutation and aberration). Is this sufficient to explain the shifts you see?
For the moment I do not model the elevation-dependent distortion of the image, which is described on the "conversion formula" slides. I just use some average, elevation-independent values to go from angles to x,y-coordinates.

Comment by Martin Reinecke [ 16/Nov/16 ]

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.
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.

Comment by Kiyoto Yabe [ 17/Nov/16 ]

OK, thank you. Then, I think we are ready now for the distribution with this version.

Generated at Sat Feb 10 16:52:45 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.