![]() ![]() See for details.So, I have two different rasters, and I am trying to match their extent, even though the difference in their existing extents is quite small, but still raster::stack won't stack which is understandable. GetData('CMIP5', var='tmin', res=10, rcp=85, model='AC', year=70)įunction (var, model, rcp, year, res, lon, lat, path, download = TRUE) In addition, you need to provide model, rcp and year. Only resolutions 2.5, 5, and 10 are currently available. To get (projected) future climate data (CMIP5), you must provide arguments var and res as above. In all cases there are 12 (monthly) files for each variable except for 'bio' which contains 19 files. In the case of res=0.5, you must also provide a lon and lat argument for a tile for the lower resolutions global data will be downloaded. Valid resolutions are 0.5, 2.5, 5, and 10 (minutes of a degree). Valid variables names are 'tmin', 'tmax', 'prec' and 'bio'. If name='worldclim' you must also provide arguments var, and a resolution res. These should be single numbers somewhere within the SRTM tile that you want. If name is 'SRTM' you must provide 'lon' and 'lat' arguments (longitude and latitude). If it is TRUE values for neighbouring countries are set to NA. In the case of alt you can set 'mask' to FALSE. In the case of GADM you must also provide the level of administrative subdivision (0=country, 1=first level subdivision). Countries are specified by their 3 letter ISO codes. If name is 'alt' or 'GADM' you must provide a 'country=' argument. 'countries' has polygons for all countries at a higher resolution than the 'wrld_simpl' data in the maptools package. 'SRTM' refers to the hole-filled CGIAR-SRTM (90 m resolution). 'worldclim' is a database of global interpolated climate data. 'GADM' is a database of global administrative boundaries. 'alt' stands for altitude (elevation) the data were aggregated from SRTM 90 m resolution data between -60 and 60 latitude. Default is the current working directoryĪdditional required (!) parameters. Path name indicating where to store the data. If TRUE data will be downloaded if not locally availableĬharacter. )ĭata set name, currently supported are 'GADM', 'countries', 'SRTM', 'alt', and 'worldclim'. Usage getData(name, download=TRUE, path="". See the geodata package for access to more recent versions of the data available through this function, and for many other datasets. ![]() Function ccodes returns country names and the ISO codes Data are read from files that are first downloaded if necessary. Get geographic data for anywhere in the world.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |