searchsorted¶
- xarray_einstats.numba.searchsorted(da, v, dims=None, **kwargs)[source]¶
Numbify
numpy.searchsorted
to support vectorized computations.- Parameters:
- da
xarray.DataArray
Input data
- v
xarray.DataArray
The values to insert into da.
- dimshashable or sequence of hashable, optional
The dimensions over which to apply the searchsort. Computation will be parallelized over the rest with numba.
- **kwargs
Keyword arguments passed as-is to
xarray.apply_ufunc
.
- da
Notes
It has been designed to be used by
ecdf
, so its setting of input and output core dims makes some assumptions based on that, it doesn’t aim to be general use vectorized/parallelized searchsorted.