query_this: Construct a query using an optional preconfigured list of...

Description Usage Arguments Value See Also Examples

View source: R/query.R

Description

Defaults are stored in ndfdXMLclient_vars and are accessed by the type of resources requested. For instance the defaults for a point are found in ndfdXMLclient_groups under query_point

Usage

1
query_this(what = "point", elements = c("mint", "maxt", "temp"), ...)

Arguments

what

character - the type of query which defines the defaults. Defaults for each type of query are identified ndfdXMLclient_vars and ndfdXMLclient_groups

  • point, Single Point Unsummarized Data

  • multipoint, Multiple Point Unsummarized Data

  • subgrid, Unsummarized Data for a Subgrid

  • line, Unsummarized Data for a Line

  • zipcodes, Unsummarized Data for One or More Zipcodes

  • cities, Unsummarized Data for a List of Cities

  • centerpoint, Unsummarized Data for a Subgrid Defined by a Center Point

  • single_time, Unsummarized Data for a Single Time Encoded in dwGML

elements

a character vector or elements to retrieve. See http://graphical.weather.gov/xml/docs/elementInputNames.php

...

zero or more parameters that will add to or override the defaults listed in ndfdXMLclient_vars

Value

character of the query to pass to get_query

See Also

http://graphical.weather.gov/xml/rest.php#XML_contents

Examples

1
2
3
4
5
6
7
8
## Not run: 
# default for point, and then with lon and elements specified
query_this(what = "point")
query_this(what = "point", lon = -69, elements = c("dew", "temp", "snow"))
# query by zipcode
query_this(what = "zipcode", zipCodeList = "04096",elements = c("dew", "temp", "snow"))

## End(Not run)

BigelowLab/ndfd documentation built on May 5, 2019, 2:43 p.m.