iwfm.iwfm_nearest_node

iwfm.iwfm_nearest_node(point, node_set)[source]

Given an (x,y) location, return the nearest IWFM node.

Parameters:
  • point ([float,float]) – [X,Y] values of a point

  • node_set (list) – node IDs and x,y locations

Returns:

  • nearest_node (list) – node ID and x,y location

  • nearest_distance (float) – distance between point and nearest node