Convert Cartesian coordinates (x, y, z) to Ra, Dec |
(x, y, z) will be normalized unless (x, y, z) is close to (0,0,0) Parameters: Returns single row table containing the values (ra, dec) select * from dbo.fHtmXyzToEq(0.0, 0.0, -1.0) gives: ra dec 0 -90 |
name | type | length | inout | pnum |
@x | float | 8 | input | 1 |
@y | float | 8 | input | 2 |
@z | float | 8 | input | 3 |
ra | float | 8 | output | 1 |
dec | float | 8 | output | 2 |