[R-sig-Geo] question on writeRaster error
Gabriel Cotlier
g@b|k|m01 @end|ng |rom gm@||@com
Sat Mar 27 08:26:58 CET 2021
Hello Lukasz and Yasna,
Now it works !!
Thanks a lot for your help!!!
Kind regards,
Gabriel
On Fri, Mar 26, 2021 at 10:34 PM Yasna K Palmeiro Silva <ykpalmei using uc.cl>
wrote:
> 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 using gmail.com> wrote:
>
>> Hello,
>>
>> I'm trying to save a raster on workspace as GeoTIFF file into a folder
>> named ST in Desktop
>>
>> writeRaster(x = ST , file = paste(n,"_Rescaled_band",sep=" "),
>> format="GTiff", overwrite = T)
>>
>> and got the following error message :
>>
>> Error in .local(x, filename, ...) :
>> Attempting to write a file to a path that does not exist:
>> ST
>>
>> Thanks for your help.
>> Regards.
>>
>> [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo using r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
>
> --
> *Yasna K Palmeiro Silva.*
>
> *Tildes han sido omitidos intencionalmente
>
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list