grid to xyz module