FUNCTION  fGetLat

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

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

    nametypelengthinoutpnum
     float8input0
    @cxfloat8input2
    @cyfloat8input3
    @czfloat8input4
    @modevarchar8input1