FUNCTION  fGetLonLat

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

@mode can be one of the following:
  • J2S for Survey coordinates
  • J2G for Galactic coordinates
    This is an internal table-valued function that requires a cursor or variables to specify the coordinates. Use the scalar functions fGetLon and fGetLat instead in queries.
  • Input and output parameters

    nametypelengthinoutpnum
    @cxfloat8input2
    @cyfloat8input3
    @czfloat8input4
    @modevarchar8input1
    lonfloat8output1
    latfloat8output2