mpas_tools.viz.transects.make_triangle_tree

mpas_tools.viz.transects.make_triangle_tree(dsTris)[source]

Make a KD-Tree for finding triangle edges that are near enough to transect segments that they might intersect

Parameters

dsTris (xarray.Dataset) – A dataset that defines triangles, the results of calling mesh_to_triangles()

Returns

tree (scipy.spatial.cKDTree) – A tree of edge centers from triangles making up an MPAS mesh