Learn R Programming

Rquake (version 1.2-2)

OnePerSta: One Phase Pick Per Station

Description

Require only one pick per station of a specified phase.

Usage

OnePerSta(twpx, phase = "Y")

Arguments

twpx
WPX list
phase
character, specific phase

Value

  • WPX list

Details

This is used to reduce the number of picks for specific station and phase. The purpose is avoid multiple P-wave phases for each station in the earthquake location routines.

See Also

cleanWPX, repairWPX

Examples

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

s3 = catWPX(s1, s2)

s4 = OnePerSta(s3, phase = "P")

Run the code above in your browser using DataLab