uxarray.remap.inverse_distance_weighted._inverse_distance_weighted_remap

uxarray.remap.inverse_distance_weighted._inverse_distance_weighted_remap#

uxarray.remap.inverse_distance_weighted._inverse_distance_weighted_remap(source_grid, destination_grid, source_data, remap_to='nodes', coord_type='spherical', power=2, k=8)#

Inverse Distance Weighted Remapping between two grids.

Parameters:#

source_gridGrid

Source grid that data is mapped from.

destination_gridGrid

Destination grid to remap data to.

source_datanp.ndarray

Data variable to remap.

remap_tostr, default=”nodes”

Location of where to map data, either “nodes”, “edge centers”, or “face centers”.

coord_type: str, default=”spherical”

Coordinate type to use for nearest neighbor query, either “spherical” or “Cartesian”.

powerint, default=2

Power parameter for inverse distance weighting. This controls how local or global the remapping is, a higher power causes points that are further away to have less influence

kint, default=8

Number of nearest neighbors to consider in the weighted calculation.

Returns:#

destination_datanp.ndarray

Data mapped to the destination grid.