我正在准备一个数据集来运行SVM分类。到目前为止,我有一个光栅堆栈,其中包括一个图层(
[6]
)用于培训
> S1
class : RasterStack
dimensions : 3865, 6899, 26664635, 6 (nrow, ncol, ncell, nlayers)
resolution : 14.83, 14.83 (x, y)
extent : 361363.5, 463675.7, 5760647, 5817965 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=utm +zone=32 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
names : Coherence_VV_Stack2.1, Coherence_VV_Stack2.2, Coherence_VV_Stack2.3, Coherence_VV_Stack2.4, Coherence_VV_Stack2.5, Class
min values : ?, ?, ?, ?, ?, 0
max values : ?, ?, ?, ?, ?, 1
S1[[6]]
是:
> S1[[6]]
class : RasterLayer
dimensions : 3865, 6899, 26664635 (nrow, ncol, ncell)
resolution : 14.83, 14.83 (x, y)
extent : 361363.5, 463675.7, 5760647, 5817965 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=utm +zone=32 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
data source : in memory
names : Class
values : 0, 1 (min, max)
和
plot(S1[[6])
是:
我想创建一个
dataframe
shapefile
使用
extract