View source: R/bioclim.extract.R
bioclim.extract | R Documentation |
This function can be used to extract 19 bioclimate variables. The means of data styles can be seen in http://worldclim.org/formats1.
bioclim.extract(bioclim.pos="E:/analysis and graphics/R.eclipse/data/worldclim",site)
bioclim.pos |
the directory of bioclimate data.
site |
a data.frame that contains only coordinates (long, lat) .
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.