swn.modflow.SwnMf6.set_reach_data_from_segments#

SwnMf6.set_reach_data_from_segments(name, value, value_out=None, method=None, log=False)#

Set reach data based on segment series (or scalar).

Parameters:
namestr

Name for reach dataset, added to the reaches dataframe.

valuescalar, list, dict or pandas.Series

Value to assign to the upstream or top end of each segment. See SurfaceWaterNetwork.pair_segments_frame() for details.

value_outNone (default), scalar, dict or pandas.Series

If None (default), the value used for the bottom is determined using method. This option is normally specified for outlets. See SurfaceWaterNetwork.pair_segments_frame() for details.

methodstr, default None

This option determines how value_out values should be determined, if not specified. Choose one of:

  • None (default): automatically determine method. If value is float-like or log=True, choose continuous with interpolation (if necessary) along reaches, otherwise constant without any interpolation.

  • continuous : downstream value is evaluated to be the same as the upstream value it connects to. This allows a continuous network of values along the networks, such as elevation. Values for each reach are linearly interpolated.

  • constant : value from each segment is used for all reaches. No interpolation is performed along reaches.

  • additive : downstream value is evaluated to be a fraction of tributaries that add to the upstream value it connects to. Proportions of values for each tributary are preserved, but lengths of segments are ignored. Segments with different value and value_out use interpolation along reaches.

logbool, default False

If True and method is not “constant”, apply a log transformation applied to interpolation.