def grid2mesh(V, grid, mesh): """ Interpolates from structured coordinates (grid) to unstructured coordinates (mesh) """ return _interp.griddata(grid, V.flatten(), mesh, 'linear')