Calculate the area of the intersected polygon portion

calulate_polygon_part_area(fraction, xmax, coords, ply, total_area)

Arguments

fraction

The fraction of area being processed represented from 0.0 to 1.0

xmax

A float or integer value for the x (longitude) coordinate maximum

coords

A list containing xmin, ymin, and ymax

ply

An sf polygon object

total_area

total area of the whole polygon

Value

the area of the polygon portion

Author

Chris R. Vernon (chris.vernon@pnnl.gov)