imas_paraview.util.find_closest_indices

imas_paraview.util.find_closest_indices(values_to_extract, source_array)

Find indices of the closest values in source_array that are less than or equal to each value in values_to_extract.

Parameters:
values_to_extract

Values to find in the source array.

source_array

Array to search for closest values.

Returns:

Indices of closest values in source_array for each value in values_to_extract.


Last update: 2026-03-11