[R-sig-Geo] Error in file(fn, "rb") : cannot open the connection

Joseph Bechara jbechara at lri-lb.org
Thu Sep 18 11:57:16 CEST 2014


Dear All, 
    I'm facing the below highlighted error when trying to plot or write the below Agg[[1]] raster layer.Can somebody help me to solve the issue?


> Agg[[1]]class       : RasterLayer dimensions  : 73636, 55024, 4051747264  (nrow, ncol, ncell)resolution  : 2.5, 2.5  (x, y)extent      : 696228.3, 833788.3, 3659895, 3843985  (xmin, xmax, ymin, ymax)coord. ref. : +proj=utm +zone=36 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0 data source : C:\Users\Said\AppData\Local\Temp\R_raster_tmp\Said\raster_tmp_2014-08-29_161527_102453.grd names       : ann_Rad values      : 336.418, 2096430  (min, max)

> plot(Agg[[1]])Error in file(fn, "rb") : cannot open the connectionIn addition: Warning message:In file(fn, "rb") :  cannot open file 'C:\Users\Said\AppData\Local\Temp\R_raster_tmp\Said\raster_tmp_2014-08-29_161527_102453.gri': No such file or directory
>Ann_Rad<-writeRaster(Agg[[1]], filename="C:/Input_tif/write/Ann_Rad1.ing", format="HFA")Error in file(fn, "rb") : cannot open the connectionIn addition: Warning message:In file(fn, "rb") :  cannot open file 'C:\Users\Said\AppData\Local\Temp\R_raster_tmp\Said\raster_tmp_2014-08-29_161527_102453.gri': No such file or directory> 
	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list