Hi listers,

I have a huge raster and I am trying to crop him using a mask (polygon).
But something it is wrong that give me an error msg**.









*statdarCRS<- "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84
+towgs84=0,0,0"mask1 <-
readShapePoly("D:/file.shp",proj4string=statdarCRS,verbose=TRUE)## crop and
maskr2 <- crop(raster, extent(mask1)) #**r3 <- mask(r2, mask1)*

**Error in file(fn, "rb") : cannot open the connection
In addition: Warning message:
In file(fn, "rb") :
  cannot open file
'C:\Users\vitol\AppData\Local\Temp\Rtmpol8mdE\raster\r_tmp_2017-11-21_165542_4280_40781.gri':
No such file or directory

cheers,
Vitor A. Lima
Mobile +31 27 9 9998 0982.

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology

Reply via email to