uxarray.Grid.get_ball_tree#

Grid.get_ball_tree(tree_type='nodes')#

Get the BallTree data structure of this Grid that allows for nearest neighbor queries (k nearest or within some radius) on either the nodes (node_lon, node_lat) or face centers (face_lon, face_lat).

Parameters:

tree_type (str, default="nodes") – Selects which tree to query, with “nodes” selecting the Corner Nodes and “face centers” selecting the Face Centers of each face

Returns:

self._ball_tree – BallTree instance

Return type:

grid.Neighbors.BallTree