WettedPerimeter(Distances, Elevations, Stage)
Returns the wetted perimeter of the channel at the given stage.
Input:       Distances = Horizontal distances across the channel (numbers)                   Elevations = Channel bed elevations at each horizontal location (numbers)                 
Stage = Stage at which to calculate the wetted perimeter (number)
Output:      Channel wetted perimeter at the given stage, in the same units as distances, elevations, and stage (number) |