PatchStat(SDMTools)
PatchStat()所属R语言包:SDMTools
Landscape Patch Statistics
景观斑块统计
译者:生物统计家园网 机器人LoveR
描述----------Description----------
PatchStat calculates the patch statistics for individual patches identified in a matrix of data. The matrix can be a raster of class 'asc' (adehabitat package), 'RasterLayer' (raster package) or 'SpatialGridDataFrame' (sp package).
用法----------Usage----------
PatchStat(mat,cellsize=1,latlon=FALSE)
参数----------Arguments----------
参数:mat
a matrix of data with individual patches identified as with ConnCompLabel; The matrix can be a raster of class 'asc' (this & adehabitat package), 'RasterLayer' (raster package) or 'SpatialGridDataFrame' (sp package)
数据与个别修补程序识别与的矩阵ConnCompLabel;基质可以是类递增(这&adehabitat包),RasterLayer(光栅包)或SpatialGridDataFrame(藻封装栅格)
参数:cellsize
cell size (in meters) is a single value representing the width/height of cell edges (assuming square cells)
单元尺寸(米)的是一个单一的值,该值表示小区边缘的宽度/高度(假设正方形单元)
参数:latlon
boolean value representing if the data is geographic. If latlon == TRUE, matrix must be of class 'asc', 'RasterLayer' or 'SpatialGridDataFrame'
布尔值,表示如果数据是GEO。如果latlon == TRUE,矩阵必须是类ASC,RasterLayer“或”SpatialGridDataFrame的“
Details
详细信息----------Details----------
The patch statistics are based on statistics calculated by fragstats http://www.umass.edu/landeco/research/fragstats/fragstats.html.
补丁统计是基于在FRAGSTATS http://www.umass.edu/landeco/research/fragstats/fragstats.html统计计算。
值----------Value----------
a data.frame listing
数据框上市
参数:patchID
the unique ID for each patch.
独特的ID为每个补丁。
参数:n.cell
the number of cells for each patch, specified in square meters.
的单元数为每个补丁,平方米中指定的。
参数:n.core.cell
the number of cells in the core area, without the edge area.
的核心区域中的单元数,而不在边缘区域。
参数:n.edges.perimeter
the number of outer perimeter cell edges of the patch.
的外周边小区边缘的补丁。
参数:n.edges.internal
the number of internal cell edges of the patch.
数量的内部小区边缘的补丁。
参数:area
the area of each patch comprising a landscape mosaic.
该区域的每一个补丁,包括一个城市景观镶嵌。
参数:core.area
represents the interior area of the patch, greater than the specified depth-of-edge distance from the perimeter.
表示的内部区域的补丁,大于指定从外围边缘深度距离。
参数:perimeter
the perimeter of the patch, including any internal holes in the patch, specified in meters.
周边的补丁,包括任何指定的补丁,以米为单位的内孔。
参数:perim.area.ratio
the ratio of the patch perimeter (m) to area (m2).
的比例,斑块周长(米)面积(m2)。
参数:shape.index
the shape complexity, sum of each patches perimeter divided by the square root of patch area.
的形状的复杂性,每个补丁周长除以斑块的面积的平方根的总和。
参数:frac.dim.index
fractal dimension index reflects shape complexity across a range of spatial scales; approaches 2 times the logarithm of patch perimeter (m) divided by the logarithm of patch area (m2).
分形维数反映在一系列的空间尺度;方法斑块周长(米)的对数的对数绿地面积(平方米)除以2倍的形状的复杂性。
参数:core.area.index
quantifies core area as a percentage of patch area.
量化核心区斑块面积的百分比。
(作者)----------Author(s)----------
Jeremy VanDerWal <a href="mailto:jjvanderwal@gmail.com">jjvanderwal@gmail.com</a>
参考文献----------References----------
<h3>See Also</h3>
实例----------Examples----------
#define a simple binary matrix[定义一个简单的二进制矩阵]
tmat = { matrix(c( 0,0,0,1,0,0,1,1,0,1,
0,0,1,0,1,0,0,0,0,0,
0,1,NA,1,0,1,0,0,0,1,
1,0,1,1,1,0,1,0,0,1,
0,1,0,1,0,1,0,0,0,1,
0,0,1,0,1,0,0,1,1,0,
1,0,0,1,0,0,1,0,0,1,
0,1,0,0,0,1,0,0,0,1,
0,0,1,1,1,0,0,0,0,1,
1,1,1,0,0,0,0,0,0,1),nr=10,byrow=TRUE) }
#do the connected component labelling[做连接的组件标签]
ccl.mat = ConnCompLabel(tmat)
ccl.mat
image(t(ccl.mat[10:1,]),col=c('grey',rainbow(length(unique(ccl.mat))-1)))
#calculate the patch statistics[计算的补丁统计]
ps.data = PatchStat(ccl.mat)
ps.data
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|