FUNCTION  fHtmEqToXyz

Convert Ra, Dec to Cartesian coordinates (x, y, z)


Parameters:
  • @ra float, Right Ascension
  • @dec float, Declination
    Returns single row table containing the vector (x, y, z) select * from dbo.fHtmEqToXyz(-180.0, 0.0)
    gives: x y z
    -1 0 0
  • Input and output parameters

    nametypelengthinoutpnum
    @rafloat8input1
    @decfloat8input2
    xfloat8output1
    yfloat8output2
    zfloat8output3