Learn R Programming

Rquake (version 1.2-2)

clusterWPX: Cluster Analysis of Picks

Description

Given a pick file in WPX format, break the picks apart clustered accoring to single link cluster analysis.

Usage

clusterWPX(twpx, tol = 200, PLOT = FALSE)

Arguments

twpx
WPX list
tol
tolerance in seconds - all pick distances less than tol will be set to zero to force these to be associated.
PLOT
logical, if TRUE, add verbose plotting

Value

  • list of WPX lists

Details

If there is not significant separation of picks, only one cluster is returned. To avoid spurious clusters, increase the tolerance.

See Also

addWPX, catWPX, checkWPX,cleanWPX,saveWPX, setWPX, repairWPX

Examples

Run this code
s1 = setWPX(name="HI", yr=2011, jd=231, hr=4, mi=3, sec = runif(5)) 

s2 = setWPX(name="HI", yr=2011, jd=231, hr=5, mi=2, sec = runif(5)) 


s3 = catWPX(s1,s2)

L3 = clusterWPX(s3)

Run the code above in your browser using DataLab