+ print(paste(i, "of", nrow(rs),";", round(i/nrow(rs)*100,1), "%
complete"))
+ v <- getValues(rs, row=i, nrows=1)
+ z<-luse1(v) #assign landuse value
+ s <- writeValues(s, z, i)
+ }
[1] "1 of 76740 ; 0 % complete"
Error in is(object) :
no slot of name "transient" for this object of class ".RasterFile"
sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252
LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rgdal_0.8-16 raster_2.2-31 sp_1.0-15 spatial_7.3-8
loaded via a namespace (and not attached):
[1] grid_3.1.1 lattice_0.20-29
Any suggestions?
Thanks and cheers
Herry
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/writeRaster-give-error-no-slot-of-name-file-for-this-object-tp6450479p7586744.html
Sent from the R-sig-geo mailing list archive at Nabble.com.