ecoClimate_select: ecoClimate_select

View source: R/envs_ecoClimate.R

ecoClimate_selectR Documentation

ecoClimate_select

Description

select which bioclimatic variables and set the extent you want (crop the raster stack to your study extent)

Usage

ecoClimate_select(map_climate, Sels=c(1:19), extent=c(-180, 180, -90, 90))

Arguments

map_climate

raster stack with all the variables

Sels

vector of integer numbers. 1 for bio1, 2 for bio2, etc. e.g. Sels= c(1,12,6) for selecting bio1, bio12 and bio6

extent

vector. xmin, xmax, ymin, ymax. e.g. c()

Examples

## Not run: 
CCSM_mod_present <- ecoclimate_getdata("CCSM", "Modern", "Present")
Europe_CCSM_m_p_bio1_12 <- ecoClimate_select(CCSM_mod_present, c(1, 12),
                                             extent = c(-20, 80, 20, 80))
dev.new()
plot(Europe_CCSM_m_p_bio1_12)

## End(Not run)



wallace documentation built on Sept. 11, 2024, 9:16 p.m.