Last data update: 2014.03.03

R: GSIF specific environmental variables / paths
GSIF.envR Documentation

GSIF specific environmental variables / paths

Description

Sets the environmental, package specific parameters and settings (URLs, names, default cell size and similar) that can be later on passed to other functions.

Usage

GSIF.env(wps.server = "http://wps.worldgrids.org", 
    ref_CRS = "+proj=longlat +datum=WGS84",
    NAflag = -99999, 
    license_url = "http://creativecommons.org/licenses/by/3.0/", 
    project_url = "http://gsif.r-forge.r-project.org/", 
    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 = 'http://rest.soilgrids.org/',
    attributes = c("ORCDRC","PHIHOX","SNDPPT","SLTPPT","CLYPPT",
                   "CFRVOL","CEC","BLD","TAXGWRB","TAXOUSDA"),
    TimeSpan = list(begin=as.POSIXct("1950-01-01"), end=as.POSIXct("2005-12-30")),
    show.env = TRUE)

Arguments

wps.server

character; location of the WPS server

ref_CRS

the referent CRS proj4string ("+proj=longlat +datum=WGS84")

NAflag

the default missing value flag (usually "-99999")

license_url

the default license URL

project_url

the default location of the package documentation

stdepths

numeric; standard depths

stsize

numeric; standard horizon thicknesses

cellsize

numeric; standard grid cell sizes on WGS84 geographical coordinates

REST.server

character; location of the SoilGrids REST service

attributes

character; default soil variables of interest

TimeSpan

list; default begin end times (temporal coverage of SoilGrids)

show.env

logical; specify whether to print all environmental parameters

Note

To further customize the GSIF options, consider putting:

library(GSIF); GSIF.env(..., show.env = FALSE)

in your "/etc/Rprofile.site".

Author(s)

Tomislav Hengl

Examples

# environmental variables:
GSIF.env()
get("cellsize", envir = GSIF.opts)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(GSIF)
GSIF version 0.5-2 (2016-06-25)
URL: http://gsif.r-forge.r-project.org/
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/GSIF/GSIF.env.Rd_%03d_medium.png", width=480, height=480)
> ### Name: GSIF.env
> ### Title: GSIF specific environmental variables / paths
> ### Aliases: GSIF.env GSIF.opts
> ### Keywords: options
> 
> ### ** Examples
> 
> # environmental variables:
> GSIF.env()
$wps.server
[1] "http://wps.worldgrids.org"

$ref_CRS
[1] "+proj=longlat +datum=WGS84"

$NAflag
[1] -99999

$license_url
[1] "http://creativecommons.org/licenses/by/3.0/"

$project_url
[1] "http://gsif.r-forge.r-project.org/"

$stdepths
[1] -0.025 -0.100 -0.225 -0.450 -0.800 -1.500

$stsize
[1] 0.05 0.10 0.15 0.30 0.40 1.00

$cellsize
[1] 0.0002777778 0.0008333333 0.0016666667 0.0041666667 0.0083333333
[6] 0.0250000000 0.0500000000

$REST.server
[1] "http://rest.soilgrids.org/"

$attributes
 [1] "ORCDRC"   "PHIHOX"   "SNDPPT"   "SLTPPT"   "CLYPPT"   "CFRVOL"  
 [7] "CEC"      "BLD"      "TAXGWRB"  "TAXOUSDA"

$TimeSpan
$TimeSpan$begin
[1] "1950-01-01 JST"

$TimeSpan$end
[1] "2005-12-30 JST"


> get("cellsize", envir = GSIF.opts)
[1] 0.0002777778 0.0008333333 0.0016666667 0.0041666667 0.0083333333
[6] 0.0250000000 0.0500000000
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>