climStack2List: "climStack2List" coercion of a RasterStack to a list

Description Usage Arguments See Also Examples

Description

This function transforms a RasterStack-class or a RasterBrick-class object into a list of XY elements

Usage

1

Arguments

r

RasterStack-class or a RasterBrick-class object

See Also

rasterClimApply,listClimApply

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(ClimClassMap)
wpath <- system.file("raster_maps/1981-2010",package="ClimClassMap")
prec_map  <- "p/p1981-2010%02d.tif"


fact <- 5

prec <- aggregate(stack(paste(wpath,sprintf(prec_map,1:12),sep="/")),
	fact=fact) ## 1000 m resolution 
names(prec) <- sprintf("M%02d",1:12)

l <- climStack2List(prec)

ecor/ClimClassMap documentation built on May 15, 2019, 8 p.m.