GetVariables: GetVariables

Description Usage Arguments Value Examples

View source: R/GetVariables.R

Description

This function gets the table of variables from the WaterML web service

Usage

1
GetVariables(server)

Arguments

server

The URL of the web service ending with ?WSDL, for example: http://worldwater.byu.edu/app/index.php/rushvalley/services/cuahsi_1_1.asmx?WSDL

Value

a data.frame of variables with the following columns:

VariableCode character Short code of the variable
FullVariableCode character The full variable code, for example: SNOTEL:897. Use this value as the variableCode parameter in GetValues() function.
VariableName character The name of the variable
ValueType character the type of observation: Field Observation or Derived Value
DataType character the aggregate data type: Average, Continuous, Sporadic..
GeneralCategory character the general category of the measurements: Climate, Water Quality..
SampleMedium character the sample medium, for example water, atmosphere, soil..
UnitName character The name of the measurement units
UnitType character the type of the measurement units
UnitAbbreviation character The abbreviation of the measurement units (m, cm, in..)
NoDataValue numeric The value that indicates missing data
IsRegular boolean TRUE if the measurements are regular, FALSE otherwise
TimeUnitName character The name of the time units
TimeUnitAbbreviation character The time units abbreviation
TimeSupport character The length of the time period over which one measurement is taken
Speciation character The chemical sample speciation (as nitrogen, as phosphorus..)

Examples

1
GetVariables("http://worldwater.byu.edu/app/index.php/rushvalley/services/cuahsi_1_1.asmx?WSDL")

Example output

[1] "GetVariables from http://worldwater.byu.edu/app/index.php/rushvalley/services/cuahsi_1_1.asmx"
[1] "Could not resolve host: worldwater.byu.edu"
data frame with 0 columns and 0 rows

WaterML documentation built on April 10, 2021, 9:05 a.m.