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 ofother
that are located into the given grid point. This transformation makes sense ONLY ifother
has a higher resolution than the object grid. Ifother
has 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)