FDSNGetEvents: Download earthquake data from FDSN.

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

View source: R/FDSNGet.R

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

1
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

Author(s)

Daniel C. Bowman [email protected]

References

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

See Also

FDSNParameterList

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## 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)

rFDSN documentation built on May 1, 2019, 6:51 p.m.