iwfm.get_stream_list_50

iwfm.get_stream_list_50(stream_lines, line_index, nreach)[source]

Read part of the stream specification file for file type 5.0 and return stream reach info.

Version 5.0 stream specification files contain only NRH, the reach descriptions, and the partial stream-aquifer interaction section — rating tables (and NRTB) moved to the simulation stream file. The returned rattab_dict and rating_header are therefore empty.

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

  • line_index (int) – current item in stream_lines (the NRH line)

  • nreach (int) – number of stream reaches

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) – empty (no rating tables in v5.0 preprocessor files)

  • rating_header (list) – empty (no rating tables in v5.0 preprocessor files)

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