【发布时间】:2015-03-05 18:24:09
【问题描述】:
我想将一些 Landsat 波段/tiff 文件堆叠并写入 ENVI 格式的 BIP 交错。然而,结果总是以 BSQ 的形式出现,即使我将 bandorder 更改为 BIP。
下面是我的代码:
library(raster)
library(rgdal)
library(gdalUtils)
inbands <-list.files(pattern= "*.tif")
stk<-stack(inbands[2], inbands[3], inbands[4])
writeRaster(stk, "BIP_test", format="ENVI", bandorder='BIP')
这也没用
writeRaster(stk, "BIP_test", format="ENVI", options="INTERLEAVE=PIXEL", overwrite=TRUE)
感谢任何帮助。
【问题讨论】: