FUNCTION  fGetLon

Converts a 3-vector to longitude (Galactic or Survey)

@mode can be one of the following:
  • J2S for Survey coordinates,
  • J2G for Galactic coordinates, e.g.,
    select top 10 dbo.fGetLon('J2S',cx,cy,cz) from PhotoTag
    Use fGetLat to get latitude.
  • Input and output parameters

    nametypelengthinoutpnum
    @modevarchar8input1
    @cxfloat8input2
    @cyfloat8input3
    @czfloat8input4
     float8output0