Learn R Programming

Rquake (version 2.5-1)

Gfirstguess: First guess from a pick file

Description

Extract the lat lon from the pick file.

Usage

Gfirstguess(Ldat, type = "first")

Value

vector, lat, lon, z and tee

Arguments

Ldat

Matrix of data information

type

one of "first", "mean", or "median"

Author

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

Details

Either the earliest arrival or the average station is returned. Used internally in the earthquake location program to provide a first guess.

See Also

Klocate

Examples

Run this code

data(GH, package='RSEIS')
WW = RSEIS::uwpfile2ypx(GH$pickfile)

twpx  = latlonz2wpx(WW, GH$pickfile$STAS )

g1 = Gfirstguess(twpx, type = "first")

Run the code above in your browser using DataLab