find_indices#
- regridding.find_indices(coordinates_input, coordinates_output, axis_input=None, axis_output=None, fill_value=None, method='brute')[source]#
Find the index of the input cell which contains the output vertex.
- Parameters:
coordinates_output (tuple[ndarray, ...]) – the destination grid
axis_input (None | int | tuple[int, ...]) – the axes in the source grid to search
axis_output (None | int | tuple[int, ...]) – the axes in the destination grid corresponding to the source grid
fill_value (None | int) – numeric value to use for invalid indices
method (Literal['brute', 'searchsorted']) – flag to select which search algorithm to use
- Return type: