ebimodeling / empirical_yield_model

University of Illinois/NCSA Open Source License
0 stars 1 forks source link

Download climate data for each location using R raster package #1

Open dlebauer opened 9 years ago

dlebauer commented 9 years ago

@sidewallme

Download each fof the 19 BioClim variables listed here http://www.worldclim.org/bioclim using the getData function of the raster package

other variables: http://www.worldclim.org/formats

library(raster)
x <- getData('worldclim', var='tmin', res=0.5, lon=5, lat=45)

note that bioclim are long-term climate means; also would be useful to find precip. and temp during harvest year (e.g. 'year' field in miscanthus.csv from #2).

Try out this script for downloading dayment: https://bitbucket.org/khufkens/daymetr