meshkernel.utils module
- get_maximum_bounding_box_coordinates()
Get the maximum coordinate values for a bounding box defined by floating point coordinates
- plot_edges(node_x, node_y, edge_nodes, ax, *args, **kwargs)
Plots the edges at a given axes. args and kwargs will be used as parameters of the plot method.
- Parameters:
node_x (ndarray) – A 1D double array describing the x-coordinates of the nodes.
node_y (ndarray) – A 1D double array describing the y-coordinates of the nodes.
edge_nodes (ndarray, optional) – A 1D integer array describing the nodes composing each mesh 2d edge.
ax (matplotlib.axes.Axes) – The axes where to plot the edges
- to_contiguous_numpy_array(vec) ndarray
- Ensures the input vector is contiguous before passing it to a MeshKernel C API function,
if the vector has been created with slicing operations.
- Parameters:
vec (np.ndarray) – The input vector.
- Returns:
The contiguous vector.
- Return type:
np.ndarray
- Raises:
TypeError – If vec is not a NumPy array.