rsMove (version 0.2.1)

getEnv: getEnv

Description

Interface to download ecologically relevant data.

Usage

getEnv(d.path = NULL, d.source = NULL, t.var = NULL, ref = NULL,
  p.raster = FALSE, p.res = NULL, pad = 10)

Arguments

d.path

Output data path for downloaded data.

d.source

Data source. One of "EarthEnv", "GFC", "GSW", "CCI" or "HSM".

t.var

Target variable.

ref

Projected spatial object from which an extent can be derived.

p.raster

Logical. Should the output be reprojected?

p.res

Pixel resolution (used if p.raster is TRUE).

pad

Mi,ner pf cells used to pad the output raster when resampling.

Value

One or multiple raster objects.

Details

Downloads data from earthenv.org. To check which variables can be downloaded, run the function without specifying t.var and specifying d.source. This will return a data frame listing the existing variables for a given data source. Here, the user can refer to the column "code" to retrieve the keywords that can be passed to the function through t.var. The keywords recognized by d.source are:

  • "EarthEnv" - EarthEnv project.

  • "GFC" - Maryland University Global Forest Change.

  • "GSW" - JRC Global Surface Water.

  • "CCI" - ESA CCI Global land cover.

  • "HSM" - JRC Human Settlement map.

  • "NEO" - NASA Earth Observations.

If t.var contains "DEM90" from "EarthEv" or any variable from "GFC" or "GSW", The function might require more time as it will mosaic the tiles with which the rerence spatial object (ref) overlap with. In any circunstance, the output will be cropped to the extent of ref and, if prompted, use it as a reference to reproject the output.

References

http://www.earthenv.org/ https://earthenginepartners.appspot.com/science-2013-global-forest https://global-surface-water.appspot.com/ http://ghsl.jrc.ec.europa.eu/ http://maps.elie.ucl.ac.be/CCI/viewer/ https://neo.sci.gsfc.nasa.gov/

See Also

dataQuery proSat

Examples

Run this code
# NOT RUN {
{

 # return list of variables
 ee.var <- getEnv(d.source="EarthEnv")
 gfc.var <- getEnv(d.source="GFC")
 gsw.var <- getEnv(d.source="GSW")
 cci.var <- getEnv(d.source="CCI")
 hsm.var <- getEnv(d.source="HSM")
 neo.var <- getEnv(d.source="NEO")

}
# }

Run the code above in your browser using DataLab