docs: def CreateNetworkConnectivityTauDEMTree(network_connectivity_tree_file,
                                          out_csv_file):
      """
      Creates Network Connectivity input CSV file for RAPID
      based on the TauDEM network connectivity tree file
      """
      stream_id_array = []
      next_down_id_array = []
      with open_csv(network_connectivity_tree_file, "r") as csvfile:
          for row in csvfile:
              split_row = row.split()
              # link number
              stream_id_array.append(split_row[0].strip())
              # next downstream link number
              next_down_id_array.append(split_row[3].strip())
  
      stream_id_array = np.array(stream_id_array, dtype=np.int32)
      next_down_id_array = np.array(next_down_id_array, dtype=np.int32)
  
      StreamIDNextDownIDToConnectivity(stream_id_array,
                                       next_down_id_array,
                                       out_csv_file)