flinnengdahl: Access the 'flinnengdahl' Web Service for Flinn-Engdahl...

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

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’.

Usage

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)

Arguments

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: code retrieves the numeric code, (e.g., 32), and region retrieves the region description, (e.g., OREGON)

filename

NA for an auto-generated filename based on the inputs; NULL for a temporary filename; or, a character string of the user's choosing. See Details for details about the auto-generated name.

verbose

logical; should messages be given?

Details

Filename options (filename=)

Autogenerated files are of the form:

iriswsQ.flinnengdahl

Temporary files are generated within query.iris.

Value

A list (invisibly) with the query string, and data from the result

Author(s)

AJ Barbour

References

[1] http://service.iris.edu/irisws/flinnengdahl/2/

See Also

Other WebServices: distaz, irisws-webservices, resp, timeseries, traveltime

Examples

1
2
3
4
5
## Not run: 
querydata(flinnengdahl.ws(10,10)) # '755'
querydata(flinnengdahl.ws(10,10,output="region")) # 'NIGERIA'

## End(Not run)

abarbour/irisws documentation built on May 10, 2019, 4:07 a.m.