raise ValueError when requested point is outside of the grid