iwopy.utils.RegularDiscretizationGrid.get_cell(p)[source]

Get the grid cell that contains a point.

Parameters

p: numpy.ndarray

The point, shape: (n_dims,)

Returns

cell: numpy.ndarray

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