xoa.core.time.compute_time_frac_indices

xoa.core.time.compute_time_frac_indices#

xoa.core.time.compute_time_frac_indices(src_times, dst_times)[source]#

For each destination time find the bracketing source interval.

Parameters:
  • src_times ((nt_src,) float64) – Source time coordinates, monotonically increasing.

  • dst_times ((n_dst,) float64) – Destination time coordinates, same units as src_times.

Returns:

  • it_base ((n_dst,) int64) – Index of the lower bracketing source step; -1 if out-of-range or NaN.

  • frac_t ((n_dst,) float64) – Weight toward it_base+1 in [0, 1].