adjust polygon of reservoir to reference surface water extent map
adjustreservoirpolygon(
reservoir,
water_bodies,
dem,
poss_expand = 20000,
wbjc = 0
)
An sf polygon with an adjusted reservoir polygon
An sf polygon, with an unstandardised raw reservoir
A rast, where 1 indicates water, NA otherwise
A rast, showing elevation
A number, indicating the number of meters away from the raw reservoir the reservoir may expand to. Default is 20000 (20km).
A number indicating a "water body join correction". This is a small buffer zone for the reservoir polygon to ensure that it is contiguous (important where there are small channels connecting different parts of the same water body). Default is 0 but it is necessary for some dams to include a small buffer, particularly if the reservoir has areas which are less wide than the resolution of the underlying DEM.