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

Checks if a point is located within the grid.

Parameters

p: numpy.ndarray

The point, shape: (n_dims,)

Returns

bool :

True if within grid