seisorder: Order seismic traces

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

View source: R/seisorder.R

Description

Use RSEIS structure to get convenient ordering of seismic data

Usage

1
seisorder(GH, ORD, VNE = c("V", "N", "E"))

Arguments

GH

RSEIS list

ORD

predetermined ordering, list(name, dist)

VNE

Order, for components, default=c("V", "N", "E")

Details

Uses information aboutthe location of the stations to determine appropriate order. Order can be determined from the location of the stations, or from the travel times.

Value

Vector of indeces of GH in correct order

Note

If ORD is provided from travel times, it uses this instead

Author(s)

Jonathan M. Lees<[email protected]>

See Also

JGET.seis

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(GH)
staf <- GH$stafile

################   get the distances from the source to the stations
d1  <- GreatDist(GH$pickfile$LOC$lon, GH$pickfile$LOC$lat,
              staf$lon, staf$lat)

###  staf has the names of the stations already, so insert the order via
###                       dist
staf$dist <- d1$dkm

sorder <- seisorder(GH, staf, VNE= c("V", "N", "E"))

## Not run: 
swig(GH, sel=sorder)

## End(Not run)

RSEIS documentation built on May 29, 2017, 10:38 p.m.