Description Usage Arguments See Also Examples
Function "ClimApply" to ...
1 2 |
P, Tx, Tm, Tn |
daily precipitation, maximum, mean and minimum temperature. |
month |
vectors of months. Default is |
clim_fun |
climate function index of |
... |
further arguments for |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | library(ClimClassMap)
wpath <- system.file("raster_maps/1981-2010",package="ClimClassMap")
temp_map <- "t/t1981-2010%02d.tif"
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
Tm <- aggregate(stack(paste(wpath,sprintf(temp_map,1:12),sep="/")),fact=fact)
names(prec) <- sprintf("M%02d",1:12)
names(Tm) <- sprintf("M%02d",1:12)
# Actally no info for daily maximum and minimum temeparature
Tn <- stack(Tm-5)
Tx <- stack(Tm+5)
indexMap <- rasterClimApply(P=prec,Tx=Tx,Tn=Tn,Tm=Tm,clim_fun="contin",indices=4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.