Learn R Programming

GSIF (version 0.3-1)

GSIF.env: 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)),
    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
show.env
logical; specify whether to print all environmental parameters

Examples

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

Run the code above in your browser using DataLab