bioclim.extract: Extract 19 bioclimate based on bioclim(1-19).grd data (30...

View source: R/bioclim.extract.R

bioclim.extractR Documentation

Extract 19 bioclimate based on bioclim(1-19).grd data (30 second).

Description

This function can be used to extract 19 bioclimate variables. The means of data styles can be seen in http://worldclim.org/formats1.

Usage

bioclim.extract(bioclim.pos="E:/analysis and graphics/R.eclipse/data/worldclim",site)

Arguments

bioclim.pos

the directory of bioclimate data.

site

a data.frame that contains only coordinates (long, lat) .

Examples


bioclim.extract(site=data.frame(long=c(110,108),lat=c(40,39)))

# see online-search automatically. 
library(raster)
#  Valid resolutions are 0.5 (30 second), 2.5, 5, and 10 (minutes of a degree). 
dat <- getData('worldclim', var='bio', res=10)
d <- data.frame(x=c(118.5),y=c(48.73333)) # 新巴尔虎左旗
extract(dat,d)


liuguofang/figsci documentation built on Nov. 24, 2023, 1:45 p.m.