uxarray.UxDataset.remap.nearest_neighbor#
- UxDataset.remap.nearest_neighbor(destination_grid, remap_to='faces', **kwargs)#
Perform nearest-neighbor remapping.
Each destination point takes the value of its closest source point.
- Parameters:
destination_grid (Grid) – The UXarray grid to which data will be interpolated.
remap_to ({'nodes', 'edges', 'faces'}, default='faces') – Which grid element receives the remapped values.
- Returns:
A new object with data mapped onto destination_grid.
- Return type: