seabed_area {CCAMLRGIS} | R Documentation |
Calculate planimetric seabed area within polygons and depth strata in square kilometers.
seabed_area(Bathy, Poly, PolyNames = NULL, depth_classes = c(-600, -1800))
Bathy |
bathymetry raster with the appropriate |
Poly |
polygon(s) within which the areas of depth strata are computed. |
PolyNames |
character, column name (from the polygon object) to be used in the output. |
depth_classes |
numeric vector of strata depths. for example, |
dataframe with the name of polygons in the first column and the area for each strata in the following columns.
load_Bathy
, SmallBathy
, create_Polys
, load_RBs
.
#create some polygons
MyPolys=create_Polys(PolyData,Densify=TRUE)
#compute the seabed areas
FishDepth=seabed_area(SmallBathy(),MyPolys,PolyNames="ID",
depth_classes=c(0,-200,-600,-1800,-3000,-5000))
#Result looks like this (note that the 600-1800 stratum is renamed 'Fishable_area')
#View(FishDepth)