ReachCurvature()


ReachCurvature(XCoordinates, YCoordinates, Distances, Location, Reach_Scale, Average_Type)

Returns the least squares best fit radius of curvature at the specified location.

Input:       XCoordinates = List of x-coordinates at locations along the channel (numbers)

                  YCoordinates = List of x-coordinates at locations along the channel (numbers)

                  Distances = Horizontal distance along the channel at each (x,y) coordinate (numbers)

                 Location = Horizontal distance along the channel at which the radius of curvature is calculated (number)

                  Reach_Scale = Radius of curvature is calculated from the value, at the specified location,
                        of a least squares fit of a circle to the (x,y) coordinates along the reach that is +/- one Reach_Scale up-
                        and down-stream the specified location (number)

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

Output:      The radius of curvature of the channel reach (number)


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