pyrtid.utils.grid.get_pts_coords_regular_grid#
- pyrtid.utils.grid.get_pts_coords_regular_grid(mesh_dim: Union[float, Sequence[float], ndarray[Any, dtype[float64]]], shape: Union[int, Sequence[int], ndarray[Any, dtype[int64]]]) ndarray[Any, dtype[float64]][source]#
Create an array of points coordinates for regular grids.
It supports from 1 to n dimensions.
- Parameters
mesh_dim (NDArrayInt) – Dimensions of one mesh of the grid.
shape (NDArrayInt) – Shape of the grid (number of grid cells along each axis). The number of elements in shape much match the number of elements in mesh_dim.
- Returns
Array of coordinates with shape (Npts, Ndims).
- Return type
NDArrayFloat