Revision 68ab6e18
Added by Benoit Parmentier over 11 years ago
climate/research/oregon/interpolation/GAM_fusion_function_multisampling.R | ||
---|---|---|
117 | 117 |
cname<-paste("mod",1:length(mod_list),sep="") #change to more meaningful name? |
118 | 118 |
names(mod_list)<-cname |
119 | 119 |
#Adding layer LST to the raster stack |
120 |
pos<-match("elev",names(s_raster)) |
|
121 |
layerNames(s_raster)[pos]<-"elev_1" |
|
122 | 120 |
|
123 | 121 |
pos<-match("LST",names(s_raster)) #Find the position of the layer with name "LST", if not present pos=NA |
124 | 122 |
s_raster<-dropLayer(s_raster,pos) # If it exists drop layer |
Also available in: Unified diff
gam fusion function remove change of name for elevation covariate