FUNCTION  fHtmXyz

Returns HTM ID of a pint a J2000 xyz point (@x,@y, @z).

There is no limit on the number of objects returned, but there are about 40 per sq arcmin.
x,y,z is a unit vector on the celestial sphere.

returned HTM ID is a bigint:

  • x float NOT NULL, -- x,y,z of unit vector to this object
  • y float NOT NULL,
  • z float NOT NULL,
    Sample call to compute the HTM

    select objID, dbo.fHtmXyz(x,y,z) as HTMID
    from Galaxy

    see also fHtmEq, fHtmToString, fGetNearestObjXYZ
  • Input and output parameters

    nametypelengthinoutpnum
    @xfloat8input1
    @yfloat8input2
    @zfloat8input3
     bigint8output0