salem.Grid.grid_lookup
- Grid.grid_lookup(other)[source]
Performs forward transformation of any other grid into self.
The principle of forward transform is to obtain, for each grid point of
self, all the indices ofotherthat are located into the given grid point. This transformation makes sense ONLY ifotherhas a higher resolution than the object grid. Ifotherhas a similar or coarser resolution thanself, choose the more general (and much faster)Grid.map_gridded_data()method.- Parameters:
- othersalem.Grid
the grid that needs to be transformed into self
- Returns:
- a dict: each key (j, i) contains an array of shape (n, 2) where n is
- the number of
other‘s grid points found within the grid point - (j, i)