我一直在尝试创建一个新的栅格对象,它只包含现有栅格中的几个值。我使用的是这里找到的类栅格:。but the file is to bigs <- r[r>30 & r<33] # but the file is to bigrc <- reclass(r, c(-Inf,30,NA, 31,32, 1, 33,Inf,NA))class : RasterLaye
我正在使用raster包处理R中有365层的栅格砖块。我想从层索引start:stop转换像素索引r,c的光栅砖中的所有值。我已经知道了如何从砖块中提取这些值:...but当我尝试为光栅砖块的这个子集赋值时,例如通过执行以下操作:..then我得到以下错误:
Error in v[] <- value : incomp