my version of chebpack, include half_interpolate functions, used for TO code