ewoksfluo.tasks.regrid_data.mesh_utils.interpolate

ewoksfluo.tasks.regrid_data.mesh_utils.interpolate(scatter_coordinates, meshgrid_coordinates, data, method='linear', fill_value=nan)[source]

Interpolate C-order flattened data.

Parameters:
  • scatter_coordinates (Tuple[ndarray]) – shape = (nD, nPoints) with nPoints = n0*n1*…

  • meshgrid_coordinates (Tuple[ndarray]) – shape = (nD, n0, n1, …)

  • data (ndarray) – shape = (nPoints,)

  • method – interpolate method

  • fill_value – value outside interpolation range

Return type:

ndarray

Returns:

shape = (n0, n1, …)