iwfm.get_stream_list_42

iwfm.get_stream_list_42(stream_lines, line_index, nreach, nrate)[source]

Read part of the stream specification file for file type 4.2 and return stream reach and rating table info.

Parameters:
  • stream_lines (list of strings) – contents of stream specification file

  • line_index (int) – current item in stream_lines

  • nreach (int) – number of stream reaches

  • nrate (int) – number of points in each stream node rating table

Returns:

  • snode_ids (list) – list of model stream nodes

  • snode_dict (dictionary) – keys = stream node IDs, values = associated groundwater nodes

  • reach_info (list) – reach info lines for reaches in model

  • rattab_dict (dictionary) – keys = stream node IDs, values = rating tables

  • rating_header (str) – header info for rating tables including factors

  • stream_aq (str) – stream-aquifer section of stream preprocessor file