Skip to contents

Given a specific depth, an array of depths, and relative_distances return the cross sectional area (v2)

Usage

find_cs_area2(pt_id, depth, depth_array, relative_distance)

Arguments

pt_id

numeric index of point within CS

depth

numeric, depth at a specific point along CS

depth_array

numeric set of all depths for CS

relative_distance

numeric vector of distances from 0 to length of CS

Value

numeric cross sectional area value, 0 if no area can be calculated