convert_node_coordinates_to_longlat#

module wntr.morph.node

convert_node_coordinates_to_longlat(wn, longlat_map, return_copy=True)[source]#

Convert node coordinates to longitude, latitude coordinates

Parameters:
  • wn (wntr WaterNetworkModel) – Water network model

  • longlat_map (dictionary) – Dictionary containing two node names and their x, y coordinates in longitude, latitude in the format {‘node name 1’: (longitude, latitude), ‘node name 2’: (longitude, latitude)}

  • return_copy (bool, optional) – If True, modify and return a copy of the WaterNetworkModel object. If False, modify and return the original WaterNetworkModel object.

Returns:

Water network model with updated node coordinates (longitude, latitude)

Return type:

wntr WaterNetworkModel