PlasmaCalcs.tools.xarray_tools.xarray_indexing.xarray_search
- PlasmaCalcs.tools.xarray_tools.xarray_indexing.xarray_search(array, dim, value)
- return first index of value along dim(or coord. returns 0, not crash, if scalar coord which matches value.)Not efficient for large dims. For large sorted dims, see xarray.DataArray.searchsorted.crash with DimensionValueError if value not found in dim.