Dear Researches,

sorry for disturbing you. I wish to create a raster brick from same rater
layers because i wish to compute the X range and Y range of all entire area
and save in shapefile format.
My idea was create a first list where i store the raster layer

> fileNames <- Sys.glob("*.asc")
> fileNames
[1] "72500_DEM.asc" "72750_DEM.asc" "72975_DEM.asc"


my.Area.tot <- list()

for(m in 1:length(fileNames)){

        r  <-  raster(fileNames[[m]])
        my.Area.tot[[m]] <- r
    }

# create a raster brick
b <- lapply(my.Area.tot,brick)
> b[[1]]
class       : RasterBrick
filename    : C:/R_works/AATimeAnalysis/NORTH/DEM/09G001/72500_DEM.asc
nlayers     : 1
nrow        : 1250
ncol        : 12500
ncell       : 15625000
projection  : NA
min value   : ?
max value   : ?
xmin        : 750000
xmax        : 775000
ymin        : 7250000
ymax        : 7252500
xres        : 2
yres        : 2

when i try to compute the xmin, xmax, ymin, and ymax i have the following
problem

xmin(b)
Error in function (classes, fdef, mtable)  :
  unable to find an inherited method for function "extent", for signature
"list"

Thanks in advance

Gianni

	[[alternative HTML version deleted]]

