xugrid.Ugrid2d.rasterize_like#

Ugrid2d.rasterize_like(x: ndarray, y: ndarray) Tuple[ndarray, ndarray, ndarray][source]#

Rasterize unstructured grid by sampling on the x and y coordinates.

Parameters:
  • x (1d array of floats with shape (ncol,))

  • y (1d array of floats with shape (nrow,))

Returns:

  • x (1d array of floats with shape (ncol,))

  • y (1d array of floats with shape (nrow,))

  • face_index (1d array of integers with shape (nrow * ncol,))