Consider 3 points above the ground. Those clearly define a unique half-sphere which is based on the ground and running through those.
In fact, the construction is obvous: simply consider the plane, defined by the points, construct the circumcenter of the points within that plane, errect the normal there, and you'd get the center of the searched for sphere where it hits the ground.
What I'm looking for so, is a clear function, which does provide the radius of that sphere directly from the coordinates of those points.
--- rk
HINT:
Find circum-center $P$ of the three given points $(A,B,C)$ with given $(x,y,z) $ coordinates. Find unit normal to the plane (shift position vector to $P$ found using cross vector product $ AB \times AC)$. Intersection of normal vector to ground plane is the center of sphere $O$. And radius required is distance of any of three points to $O$.