iwopy.utils.RegularDiscretizationGrid.find_grid_inds(inds)[source]

Finds indices that are on grid

Parameters

inds: numpy.ndarray

The grid point index candidates, shape: (n_inds, n_dims)

Returns

sel_grid: numpy.ndarray of bool

Subset selection of on-grid indices, shape: (n_inds, n_dims)