polaris.ocean.viz.transect.horiz.make_triangle_tree

polaris.ocean.viz.transect.horiz.make_triangle_tree(ds_tris)[source]

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

Parameters:

ds_tris (xarray.Dataset) – A dataset that defines triangles, the results of calling polaris.ocean.viz.transect.horiz.mesh_to_triangles()

Returns:

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