Learn R Programming

ezECM (version 1.0.0)

time_fn: P-wave arrival times simulation

Description

Simulates the arrival time of p-waves (without noise) using a mean velocity and euclidian distance, without taking the curvature into account.

Usage

time_fn(X = NULL, X0 = NULL, V = 7)

Value

numeric scalar providing the time in seconds for a p-wave to arrive at a seismometer.

Arguments

X

numeric three element vector stipulating the location of a seismometer. Units of km

X0

numeric three element vector stipulating the location of an event. Units of km

V

numeric scalar supplying the p-wave velocity in km/s. A quick google search (Jan 31st 2023) shows typical values range from 5 to 8 km/s.

Details

Used for estimating event location, given a series of seismometer observations.

Examples

Run this code
  arrival.time <- time_fn(X = c(100,200,10), X0  = c(500, 80, 25), V = 5)

Run the code above in your browser using DataLab