legitWPX: Legitimate Pix

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/legitWPX.R

Description

Check WPX list for legitimate picks

Usage

1
legitWPX(twpx, quiet=TRUE)

Arguments

twpx
quiet

logical, default=TRUE, FALSE generates an error message

Details

Used internall to test if a WPX list has legitimate picks. Initially a list is generated with NA and 0 values in the place holders. If no legitimate picks are added, the list still exists, but the picks are bogus, so this routine will return 0.

Value

integer: 0=not legitimate, 1=legitimate

Note

Currently only the name is tested for all(NA), but this might be changed int he future for a more sophisticated test.

Author(s)

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

See Also

PCsaveWPX

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
###  test fails
## Not run: 
library(RSEIS)
jk = RSEIS::cleanWPX()
legitWPX(jk)

data(GH)
gwpx = RSEIS::uwpfile2ypx(GH$pickfile)

legitWPX(gwpx)

## End(Not run)

Rquake documentation built on Dec. 16, 2020, 5:06 p.m.