Tag Info

New answers tagged


As pointed out by @mdsumner, You can read a SpatialGridDataFrame directly using readGDAL in the rgdal package. You can also easily coerce raster objects to a SpatialGridDataFrame or matrix. If your imagery is in separate files I would recommend reading them in as a stack and then coercing to a SpatialGridDataFrame. require(raster) require(rgdal) # Using ...


install raster package, then load band by band. Then you can use landsat package. Ex: library(raster) setwd(L8 folder) b1=raster("L8b1.tif") b2=raster("L8b2.tif") image=stack(b1,b2)

Top 50 recent answers are included