Learn R Programming

rFDSN (version 0.0.0)

FDSNGetEvents: Download earthquake data from FDSN.

Description

This function gathers earthquake data from the International Federation of Digital Seismograph Networks. The available subsetting parameters can be viewed by calling FDSNParameterList.

Usage

FDSNGetEvents(base.url, parameters,verbose = TRUE)

Arguments

base.url
The address of a FDSN server.
parameters
Selection parameters to subset results, see FDSNParameterList for available inputs and examples below for usage.
verbose
If TRUE, print the URL used to gather the earthquake data. Default TRUE.

Value

event
A structure with event location and magnitude information

References

http://www.fdsn.org/webservices/

See Also

FDSNParameterList

Examples

Run this code

## Not run: 
# 
# #Get all earthquakes within 2 degrees of Socorro, new Mexico, 
# #between 2010 and 2013
# 
# #IRIS event server
# base.url <- "http://service.iris.edu/fdsnws/event/1/"
# 
# #Selection criteria
# parameters <- list(
#     name = c(
#     "latitude",
#     "longitude",
#     "maxradius",
#     "start",
#     "end"),
#     value = c(
#     34.068110, #Latitude
#     -106.901847, #Longitude
#     2, #Degrees from center point
#     "2010-01-01", #Start time
#     "2014-01-01") #End time
#     )
# 
# events <- FDSNGetEvents(base.url, parameters)
# 
# 
# ## End(Not run)

Run the code above in your browser using DataLab