pywfm.IWFMModel.get_stream_reaches_for_stream_nodes#
- IWFMModel.get_stream_reaches_for_stream_nodes(stream_nodes='all')#
Return the stream reach IDs that correspond to one or more stream node IDs
- Parameters:
stream_node_ids (int, list, tuple, np.ndarray, str='all', default='all') – one or more stream node IDs where the stream reach IDs will be returned
- Returns:
array of stream reach IDs corresponding to stream node IDs provided
- Return type:
np.ndarray
See also
IWFMModel.get_n_stream_reaches
Return the number of stream reaches in an IWFM model
IWFMModel.get_stream_reach_ids
Return an array of stream reach IDs in an IWFM model
IWFMModel.get_n_nodes_in_stream_reach
Return the number of stream nodes in a stream reach
IWFMModel.get_stream_reach_groundwater_nodes
Return the groundwater node IDs corresponding to stream nodes in a specified reach
IWFMModel.get_stream_reach_stream_nodes
Return the stream node IDs corresponding to stream nodes in a specified reach
IWFMModel.get_upstream_nodes_in_stream_reaches
Return the IDs for the upstream stream node in each stream reach
IWFMModel.get_n_reaches_upstream_of_reach
Return the number of stream reaches immediately upstream of the specified reach
IWFMModel.get_reaches_upstream_of_reach
Return the IDs of the reaches that are immediately upstream of the specified reach
IWFMModel.get_downstream_node_in_stream_reaches
Return the IDs for the downstream stream node in each stream reach
IWFMModel.get_reach_outflow_destination
Return the destination index that each stream reach flows into
IWFMModel.get_reach_outflow_destination_types
Return the outflow destination types that each stream reach flows into.
Example
>>> from pywfm import IWFMModel >>> pp_file = '../Preprocessor/PreProcessor_MAIN.IN' >>> sim_file = 'Simulation_MAIN.IN' >>> model = IWFMModel(pp_file, sim_file) >>> model.get_stream_reaches_for_stream_nodes() array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3]) >>> model.kill() >>> model.close_log_file()