Learn R Programming

Rquake (version 2.4-4)

getresidTT: Travel time residuals

Description

Given an earthquake location and a set of arrival times, return a vector of residuals.

Usage

getresidTT(Ldat, EQ, stas, vel)

Arguments

Ldat

List of arrival times

EQ

List of event location, (lat, lon, z, and time)

stas

station location list

vel

list, velocity structure

Value

vector of residuals

Details

1D travel time calculation.

See Also

travel.time1D

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
#########  LF is a vector of arrival time files
#####  KAM is a set of locations

 load(LF[i])
    
    zip = LeftjustTime(twpx)
    EQ = KAM[[i]]$EQ
    ERR = KAM[[i]]$ERR

    LOC = list(yr=EQ$Time$yr, mo=EQ$Time$mo, dom=EQ$Time$dom, hr=EQ$Time$hr,
       mi=EQ$Time$mi, sec=EQ$Time$sec, jd=EQ$Time$jd, lat=EQ$lat, lon=EQ$lon,
       z=EQ$z, mag=NA,gap=ERR$gap,delta=ERR$distmin,rms=ERR$rms,hozerr=ERR$herr   )

 resids = getresidTT(zip,LOC, stas , vel)

# }
# NOT RUN {

# }

Run the code above in your browser using DataLab