Learn R Programming

Rquake (version 2.5-1)

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)

Value

list of WPX lists

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

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

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

See Also

RSEIS::addWPX, RSEIS::catWPX, RSEIS::checkWPX,RSEIS::cleanWPX, PCsaveWPX, RSEIS::setWPX, RSEIS::repairWPX

Examples

Run this code

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

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


s3 = RSEIS::catWPX(s1,s2)

twpx = data.frame(s3)
L3 = clusterWPX(twpx)

Run the code above in your browser using DataLab