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_outvalues should be determined, if not specified. Choose one of:- None (default): automatically determine method. If value is float-like or - log=True, choose- continuouswith interpolation (if necessary) along reaches, otherwise- constantwithout 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:- valuefrom 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- valueand- value_outuse interpolation along reaches.
 
- logbool, default False
- If True and - methodis not “constant”, apply a log transformation applied to interpolation.