Unit vector to Right Ascension/Declination

4 replies · 4K views · last reply
Scott S
Messages
22
Reaction score
0
OK, I'm really rusty on this.

I need to convert a unit vector to right ascension and declination.
I believe I recall the formulae correctly, as I seem to have gotten 1 as my radius.
So, that's good.

In the pic I have my unit vector (P2), my actual answer below, my expected answer in red and the formulae I (believe) I need in blue shaded cells.

Any help greatly appreciated.
 
Attachments
  • Spreadsheet screenshot: column vector P2 with values -0.863935867, 0.458766033, 0.207722284; r = 1.000000001; theta 1.361550452 rad (78.01109447 deg); phi 1.145628979 rad (65.63970539 deg); red HMS and DMS conversions; blue formula cells r = sqrt(x^2+y^2+z^2), theta = atan(sqrt(x^2+y^2)/z), phi = atan(y/x).
    UNIT VECTOR.jpg
    17.5 KB · Views: 544
Hey Scott S.

Can you point out a wiki or some other resource that outlines the concept you are talking about for ascension and declination?
 
A quick google search gave me this which discusses a lot of common transformations.

http://www2.astro.psu.edu/users/rbc/a501/positional_astronomy.pdf

If you wanted to derive the results yourself you should derive the metric tensor that goes between two systems and check if the tensor you derive gives the same results.

The metric tensor is related to the Jacobian transformation between the two systems and you can learn it by reading about tensor mathematics or differential geometry.
 
Last edited by a moderator:
Got it, thanks.

Wrong formulae.
 
Attachments
  • Spreadsheet with a column vector P2 of three values, r = 1.000000001, theta and phi in degrees, yellow-highlighted omega, alpha' and delta' cells, and ACTUAL ANSWER 10.135391 versus EXPECTED ANSWER 10.135390 HMS, and 11.988906 versus 11.988906 DMS.
    UNIT VECTOR 2.jpg
    28.5 KB · Views: 624