Description Usage Arguments Details Value Author(s) References See Also Examples
From [1]: The Flinn-Engdahl webservice returns either the Flinn-Engdahl region code or region name for a specified latitude and longitude.
Returned values are text strings, e.g. region code ‘014’ which corresponds to region name ‘Kenai Peninsula, Alaska’.
1 2 3 4 5 | ws.flinnengdahl(lat, lon, output = c("code", "region"), filename = NULL,
verbose = FALSE)
flinnengdahl.ws(lat, lon, output = c("code", "region"), filename = NULL,
verbose = FALSE)
|
lat |
numeric; North latitude, in decimal degrees. Must be within the range [-90.0, 90.0] |
lon |
numeric; East longitude, in decimal degrees. Must be within the range [-180.0, 180.0] |
output |
character;
determines which Flinn-Engdahl representation is retrieved:
|
filename |
|
verbose |
logical; should messages be given? |
filename=
)NA
: An auto-generated file.
NULL
: A temporary file.
<character string>: Any desired name.
Autogenerated files are of the form:
iriswsQ.flinnengdahl
Temporary files are generated within query.iris
.
A list (invisibly) with the query string, and data from the result
AJ Barbour
[1] http://service.iris.edu/irisws/flinnengdahl/2/
Other WebServices: distaz
,
irisws-webservices
, resp
,
timeseries
, traveltime
1 2 3 4 5 | ## Not run:
querydata(flinnengdahl.ws(10,10)) # '755'
querydata(flinnengdahl.ws(10,10,output="region")) # 'NIGERIA'
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.