Gts surface calculation library