EVOLUTION-MANAGER
Edit File: getData.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Get geographic data</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for getData {raster}"><tr><td>getData {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get geographic data </h2> <h3>Description</h3> <p>Get geographic data for anywhere in the world. Data are read from files that are first downloaded if necessary. Function <code>ccodes</code> returns country names and the ISO codes </p> <h3>Usage</h3> <pre> getData(name, download=TRUE, path='', ...) ccodes() </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>name</code></td> <td> <p>Data set name, currently supported are 'GADM', 'countries', 'SRTM', 'alt', and 'worldclim'. See Details for more info</p> </td></tr> <tr valign="top"><td><code>download</code></td> <td> <p>Logical. If <code>TRUE</code> data will be downloaded if not locally available</p> </td></tr> <tr valign="top"><td><code>path</code></td> <td> <p>Character. Path name indicating where to store the data. Default is the current working directory </p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p> Additional required (!) parameters. These are data set specific. See Details</p> </td></tr> </table> <h3>Details</h3> <p>'alt' stands for altitude (elevation); the data were aggregated from SRTM 90 m resolution data between -60 and 60 latitude. 'GADM' is a database of global administrative boundaries. 'worldclim' is a database of global interpolated climate data. 'SRTM' refers to the hole-filled CGIAR-SRTM (90 m resolution). 'countries' has polygons for all countries at a higher resolution than the 'wrld_simpl' data in the maptools package . </p> <p>If <code>name</code> is 'alt' or 'GADM' you must provide a 'country=' argument. Countries are specified by their 3 letter ISO codes. Use getData('ISO3') to see these codes. In the case of GADM you must also provide the level of administrative subdivision (0=country, 1=first level subdivision). In the case of alt you can set 'mask' to FALSE. If it is TRUE values for neighbouring countries are set to NA. For example: </p> <p><code>getData('GADM', country='FRA', level=1)</code> </p> <p><code>getData('alt', country='FRA', mask=TRUE)</code> </p> <p>If <code>name</code> is 'SRTM' you must provide 'lon' and 'lat' arguments (longitude and latitude). These should be single numbers somewhere within the SRTM tile that you want. </p> <p><code>getData('SRTM', lon=5, lat=45)</code> </p> <p>If <code>name='worldclim'</code> you must also provide arguments <code>var</code>, and a resolution <code>res</code>. Valid variables names are 'tmin', 'tmax', 'prec' and 'bio'. Valid resolutions are 0.5, 2.5, 5, and 10 (minutes of a degree). In the case of <code>res=0.5</code>, you must also provide a <code>lon</code> and <code>lat</code> argument for a tile; for the lower resolutions global data will be downloaded. In all cases there are 12 (monthly) files for each variable except for 'bio' which contains 19 files. </p> <p><code>getData('worldclim', var='tmin', res=0.5, lon=5, lat=45)</code> </p> <p><code>getData('worldclim', var='bio', res=10)</code> </p> <p>To get (projected) future climate data (CMIP5), you must provide arguments <code>var</code> and <code>res</code> as above. Only resolutions 2.5, 5, and 10 are currently available. In addition, you need to provide <code>model</code>, <code>rcp</code> and <code>year</code>. For example, </p> <p><code>getData('CMIP5', var='tmin', res=10, rcp=85, model='AC', year=70)</code> </p> <p>function (var, model, rcp, year, res, lon, lat, path, download = TRUE) </p> <p>'model' should be one of "AC", "BC", "CC", "CE", "CN", "GF", "GD", "GS", "HD", "HG", "HE", "IN", "IP", "MI", "MR", "MC", "MP", "MG", or "NO". </p> <p>'rcp' should be one of 26, 45, 60, or 85. </p> <p>'year' should be 50 or 70 </p> <p>Not all combinations are available. See www.worldclim.org for details. </p> <h3>Value</h3> <p>A spatial object (Raster* or Spatial*) </p> <h3>References</h3> <p><a href="http://www.worldclim.org">http://www.worldclim.org</a> </p> <p><a href="https://gadm.org">https://gadm.org</a> </p> <p><a href="http://srtm.csi.cgiar.org/">http://srtm.csi.cgiar.org/</a> </p> <p><a href="http://diva-gis.org/gdata">http://diva-gis.org/gdata</a> </p> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>