Add the code the gridder could be called by external clients. Add double precision variant (requires some modifications).