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                  
Average_Type = Average type: 0 = average over one reach scale both upstream and downstream of l Output:      The reach average slope (number) |