如何将栅格文件写入 ENVI 格式作为 BIP
How to write raster files to ENVI format as BIP
我想将一些 Landsat bands/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)
感谢任何帮助。
我认为这应该可行:
writeRaster(stk, "BIP_test", format="ENVI", options="INTERLEAVE=BIP", overwrite=TRUE)
根据 GDAL formats page on the ENVI format,"BIP"(不是 "PIXEL")是 "INTERLEAVE" 的参数。根据我对 WriteRaster
帮助文件的阅读,bandorder='BIP'
仅适用于光栅包的本机文件格式。
我想将一些 Landsat bands/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)
感谢任何帮助。
我认为这应该可行:
writeRaster(stk, "BIP_test", format="ENVI", options="INTERLEAVE=BIP", overwrite=TRUE)
根据 GDAL formats page on the ENVI format,"BIP"(不是 "PIXEL")是 "INTERLEAVE" 的参数。根据我对 WriteRaster
帮助文件的阅读,bandorder='BIP'
仅适用于光栅包的本机文件格式。