polartoolkit.nearest_grid_fill#
- nearest_grid_fill(grid, method='verde', crs=None)[source]#
fill missing values in a grid with the nearest value.
- Parameters:
grid (xarray.DataArray) – grid with missing values
method (str, optional) – choose method of filling, by default “verde”
crs (str | None, optional) – if method is ‘rioxarray’, provide the crs of the grid, in format ‘epsg:xxxx’, by default None
- Returns:
filled grid
- Return type: