Skip to content

Raster package stackFromFiles

2 messages · Ned Horning, Robert J. Hijmans

#
Hi - I have a script that uses stackFromFiles that used to be part of 
the Raster package but it's not any more. Ca anyone out there let me 
know the new way to do this:

sat_image <- stackFromFiles(c(inImage), c(bandlist[1]))
for (y in 2:numbands) {
  sat_image <- addFiles(sat_image, c(inImage), c(bandlist[y]))
}

Any help is appreciated.

Ned