Sets the environmental, package specific parameters and settings (URLs, names, default cell size and similar) that can be later on passed to other functions.
GSIF.env(wps.server = "http://wps.worldgrids.org",
ref_CRS = "+proj=longlat +datum=WGS84",
NAflag = -99999,
license_url = "https://creativecommons.org/licenses/by-sa/4.0/",
project_url = "http://gsif.r-forge.r-project.org/",
sldepths = c(0, 5, 15, 30, 60, 100, 200),
stdepths = c(-2.5, -10, -22.5, -45, -80, -150)/100,
stsize = c(5, 10, 15, 30, 40, 100)/100,
cellsize = rev(c(6/120, 3/120, 1/120, 1/240, 1/600, 1/1200, 1/3600)),
REST.server = 'https://rest.soilgrids.org/',
attributes = c("ORCDRC","PHIHOX","SNDPPT","SLTPPT","CLYPPT",
"CFRVOL","CECSOL","BLDFIE","TAXNWRB","TAXOUSDA"),
TimeSpan = list(begin=as.POSIXct("1950-01-01"), end=as.POSIXct("2005-12-30")),
show.env = TRUE)
character; location of the WPS server
the referent CRS proj4string ("+proj=longlat +datum=WGS84"
)
the default missing value flag (usually "-99999"
)
the default license URL
the default location of the package documentation
numeric; standard depths based on GlobalSoilMap.net specifications
numeric; standard depths at the centre of layer
numeric; standard horizon thicknesses
numeric; standard grid cell sizes on WGS84 geographical coordinates
character; location of the SoilGrids REST service
character; default soil variables of interest
list; default begin end times (temporal coverage of SoilGrids)
logical; specify whether to print all environmental parameters
# NOT RUN {
# environmental variables:
GSIF.env()
get("cellsize", envir = GSIF.opts)
# }
Run the code above in your browser using DataLab