iwopy.utils.RegularDiscretizationGrid.get_cells(pts)[source]

Get the grid cells that contain the given points, one cell per point.

Parameters

pts: numpy.ndarray

The points, shape: (n_pts, n_dims)

Returns

cells: numpy.ndarray

The min and max values of each dimension. Shape: (n_pts, n_dims, 2)