iwfm.get_stream_list_40

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

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

Version 4.0 has the same layout as 4.2: reach lines are ID NRD IDWN NAME, each stream node line pairs one stream node with one groundwater node, and each rating table row is BOTR/HRTB/QRTB. Rating table rows are carried as verbatim text, so the shared 4.2 parser handles this format directly.

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

Return type:

same as iwfm.get_stream_list_42()