resqpy.olio.vector_utilities.meshgrid

resqpy.olio.vector_utilities.meshgrid(x: ndarray, y: ndarray) Tuple[ndarray, ndarray][source]

Returns coordinate matrices from coordinate vectors x and y.

Parameters
  • x (np.ndarray) – 1d array of x coordinates.

  • y (np.ndarray) – 1d array of y coordinates.

Returns

Tuple containing – - xx (np.ndarray): the elements of x repeated to fill the matrix along the first dimension. - yy (np.ndarray): the elements of y repeated to fill the matrix along the second dimension.