xarray.DataArray.monet.nearest_ij
- DataArray.monet.nearest_ij(lat=None, lon=None, **kwargs)
Uses pyresample to interpolate to find the i, j index of grid with respect to the given lat lon.
- Parameters
lat (float) – latitude in question
lon (float) – longitude in question
**kwargs (dict) – pyresample kwargs for nearest neighbor interpolation
- Returns
Returns the i (x index) and j (y index) of the given latitude longitude value
- Return type
i,j