10 2018 档案

摘要:library(parallel)#example 1cl <- makeCluster(getOption("cl.cores", 2))clusterApply(cl, c(9,5), get("+"),1) #加parSapply(cl, c(9,5), get("+"), 3) stopCl 阅读全文
posted @ 2018-10-31 13:38 junjunang 阅读(2828) 评论(0) 推荐(0) 编辑
摘要:有这么一个需求,知道栅格上的坐标,想看看这个坐标上的栅格值是多少。坐标长这个样子 那么这样的坐标下的栅格值该怎么看 阅读全文
posted @ 2018-10-29 17:09 junjunang 阅读(2331) 评论(0) 推荐(0) 编辑
摘要:library(raster)library(gdistance)r <- raster(nrows=3, ncols=4, xmn=0, xmx=7, ymn=0, ymx=6, crs="+proj=utm +units=m")r[] <- c(2, 2, 1, 1, 2, 2, 4, 4, 2 阅读全文
posted @ 2018-10-29 14:33 junjunang 阅读(956) 评论(0) 推荐(0) 编辑
摘要:有时候会遇到将32位栅格数据提取属性表的操作,但是一般此类数据都是浮点型,是无法计算得到属性表的。因此我们可以利用数据管理工具下的: 复制栅格工具,在最下面选择16位即可,看自己数据情况选择signed或者unsigned类型。 导出后的数据可以计算属性表,两种方式,一种是利用工具进行;另外一种是右 阅读全文
posted @ 2018-10-10 10:35 junjunang 阅读(14413) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示