landlab.graph.object.ext package#
Submodules#
landlab.graph.object.ext.at_node module#
- find_links_at_node(DTYPE_t node, ndarray nodes_at_link, ndarray links_at_node, ndarray link_dirs_at_node)#
Find links touching a node and their directions.
- Parameters:
node (int) – A node ID.
nodes_at_link (ndarray of int, shape (n_links, 2)) – Nodes at link tail and head.
links_at_node (ndarray of int, shape (max_links_per_node, )) – Buffer to hold link identifiers for links around node.
link_dirs_at_node (ndarray of int, shape (max_links_per_node, )) – Buffer to hold link directions for links around node.
- Returns:
The number of links found.
- Return type:
- get_links_at_node(ndarray nodes_at_link, ndarray links_at_node, ndarray link_dirs_at_node)#
Get links touching each node and their directions.
- Parameters:
nodes_at_link (ndarray of int, shape (n_links, 2)) – Node identifiers for each link tail and head.
links_at_node (ndarray of int, shape (n_nodes, max_nodes_per_link)) – Buffer to hold link identifiers for each node.
link_dirs_at_node (ndarray of int, shape (n_nodes, max_nodes_per_link)) – Buffer to hold link directions for each node.
- reorder_link_dirs_at_node(ndarray link_dirs_at_node, ndarray sorted_links)#
- reorder_links_at_node(ndarray links_at_node, ndarray sorted_links)#
landlab.graph.object.ext.at_patch module#
- get_nodes_at_patch(ndarray links_at_patch, ndarray nodes_at_link, ndarray nodes_at_patch)#
- get_rightmost_edge_at_patch(ndarray links_at_patch, ndarray xy_of_link, ndarray edge)#