Description Usage Arguments Details Value Examples
Extract information from various spatial (raster) dataseries both from local and online resources.
1 |
data |
[ |
mask |
[ |
obtain
expects a root directory in which an individual
directory for each dataset dwells, where in turn all the files of this
particular dataset are located. rasterTools
provides a list of paths
getOption("rtPaths")
, which contains the directories and urls of the
local and online resources. In case the dataset files are not available
locally and if a url is available, an attempt to download the files is
undertaken. That means typically you do not have to use the dataset
specific download*
functions manually, they are documented
nevertheless for those who are interested. In case an error occurs, it
might be necessary to specify new paths in rtPaths
(see
setPaths
).
Recently supported datasets are
Global:
oGFC
: Global Forest Change
oMODIS
: MODIS
products
oWCLIM
: Worldclim
oESALC
:
ESA CCI land-cover
European:
oCLC
:
Corine Land Cover
oEMMA
: Mammal occurence in the
Atlas of European Mammals
oEFTA
: Tree presence
and habitat suitability in the European Atlas of Forest Tree Species
A list of objects that is organised according to the stratification
in data
. The first hierarchical level of the list contains all the
spatial units/masks. The second level contains an entry for each dataset
and its temporal extent. The third level contains the resulting output.
Mostly this would be an extracted raster according to what has been
specified in the arguments, but for some operators the output is a
data.frame
or SpatialPointsDataFrame
.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
require(magrittr)
# specify the datasets for which you want to get data
myDatasets <- list(list(operator = "oGFC", years = c(2005:2007)),
list(operator = "oMODIS", product = "mod17a3", period = 2006,
layer = 2))
# grab the data
myData <- obtain(data = myDatasets, mask = rtGeoms$locations)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.