aisdb.webdata.load_raster module
- aisdb.webdata.load_raster.binarysearch_vector(arr, search)
Vectorized implementation of binary search for fast array indexing. In out-of-bounds or missing value cases, the nearest search index will be returned
- Parameters:
arr (Vec<f64>) – sorted array of values to be indexed. values can be sorted either by ascending or descending
search (Vec<f64>) – values to be searched within
arr
- Returns:
indexes (Vec<i32>)