Skip to content
Prev 28587 / 29559 Next

question on writeRaster error

Hi Gabriel,

I guess, the syntax is different:

The general syntax is:
writeRaster(NameRaster, file="PathOfFolderSTinDesktop/NameFile.tif",
format= ""GTiff", overwrite=TRUE)

If you want to add options with bands:
writeRaster(NameRaster, file="FolderPath/NameFile.tif", format= ""GTiff",
overwrite=TRUE, options= c("INTERLEAVE=BAND","COMPRESS=LZW"))

NameRaster is a RasterLayer or RasterBrick t in your global environment.

Hope this works,

Best
Yasna
On Fri, 26 Mar 2021 at 18:57, Gabriel Cotlier <gabiklm01 at gmail.com> wrote: