Julio,

'stack' needs inspect every file and that takes a while.
If you are _absolutely sure_ that your files make a valid stack (single
layers with the same extent and resolution), you can use this (hidden)
function which is much faster:

s <- raster:::.quickStack(img)

Robert

On Wed, Apr 18, 2012 at 5:01 AM, julio cesar oliveira <oliveirajc@ufv.br>wrote:

> Dear List,
>
> I have 2,800 images (*.tif) for read with packages raster, and each image
> have 10 x 10 (Col x Row)
>
> #  command
> img <- list.files(pattern='*.tif')
> all_img <- stack(img)
>
> *Problem*: is taking 15 minutes to read !!!!
>
> Question: Can I read images with less timer?
>
> Thanks
>
> Julio
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

