Skip to content

Instantly share code, notes, and snippets.

@kate-crosby
Created March 18, 2015 20:05
Show Gist options
  • Save kate-crosby/fd1317e22080b7042d4a to your computer and use it in GitHub Desktop.
Save kate-crosby/fd1317e22080b7042d4a to your computer and use it in GitHub Desktop.
for jinliang climate
rm(list=ls())
library(raster)
#Get bio variables at 10 minutes of a degree resolution
biovar = getData('worldclim', var='bio', res=10)
biovar5 = getData('worldclim', var="bio", res=5)
###Get elevation data with SRTM - go to website to determine relevant tiles,
#each of these tiles are large - may be easier to do on website
#elev.europe <- getData('SRTM', lon = 5, lat = 45)
#elev.europe1 <- getData('SRTM', lon = 0, lat = 40)
#elev.europe2 <- getData('SRTM', lon = -5, lat = 35)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment