ReachSlope()



ReachSlope(Distances, Elevations, Reach_Scale, Average_Type)

Returns the downstream slope at the specified location.

Input:       Distances = Horizontal distances the headwater along the channel (numbers)

                  Elevations = Channel bed elevations at each horizontal location (numbers)

                 Location = Horizontal distance along the channel at which the reach slope is calculated (number)

                  Reach_Scale = Channel slope is calculated as the slope of a linear least squares fit to the
                        channel elevation data along the reach that is +/- one Reach_Scale up-
                        and down-stream the specified location (number)

                  Average_Type = Average type: 0 = average over one reach scale both upstream and downstream of l
                        location, 1 = average over one reach scale upstream of location, 2 = average over one reach scale
                        downstream of location (number)

Output:      The reach average slope (number)


© DimensionEngine 2015.   For questions or bug reports, email us.