seisorder | R Documentation |
Use RSEIS structure to get convenient ordering of seismic data
seisorder(GH, ORD, VNE = c("V", "N", "E"))
GH |
RSEIS list |
ORD |
predetermined ordering, list(name, dist) |
VNE |
Order, for components, default=c("V", "N", "E") |
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.
Vector of indeces of GH in correct order
If ORD is provided from travel times, it uses this instead
Jonathan M. Lees<jonathan.lees@unc.edu>
JGET.seis
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"))
if(interactive()){
swig(GH, sel=sorder)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.