我是一个新的R用户,在R中读取了18个Geotiff文件,并根据我感兴趣的区域屏蔽了tiff。我现在无法写18个蒙面Geotiff文件。
require(raster)
raster_data <- list.files(path=getwd())
s <- stack(raster_data)
spf<-readShapePoly("basin.shp")
rc<-crop(s, extent(spf))
rm<-mask(rc, spf)
rf <- writeRaster(rm, filename=outputFile, overwrite=TRUE)我想要18个Geotiff文件蒙面从我的shapefile,但输出只有一个tif文件,它不打开。我在网上使用搜索选项,但找不到合适的答案。
谢谢
https://stackoverflow.com/questions/27996436
复制相似问题