pyinterp.reduced_gaussian.Mesh.locate#
- Mesh.locate(self, lon: numpy.ndarray[dtype=float64, shape=(*), writable=False], lat: numpy.ndarray[dtype=float64, shape=(*), writable=False]) tuple[numpy.ndarray[dtype=int64, shape=(*, 4), order='C'], numpy.ndarray[dtype=float64, shape=(*, 4), order='C']]#
Locate the cells of points: the flat indices of their four corners (bottom right, bottom left, top right, top left; -1 outside the mesh) and their bilinear weights.