Learn R Programming

AtmRay (version 1.31)

MakeArrivals.lin: Calculate Arrival Function

Description

Calculates arrival time and arrival amplitude of many sources to produce an arrival function.

Usage

MakeArrivals.lin(xs, ys, zs, xr, yr, zr, dt, nt, timing, ATM = CheckAtm.lin(list()))

Arguments

xs
source location abscissae (m)
ys
source location ordinates (m)
zs
source location elevations (m)
xr
receiver location abscissae (m)
yr
receiver location ordinates (m)
zr
receiver location elevations (m)
dt
time interval (s)
nt
number of time steps to evaluate
timing
source times (s)
ATM
linear atmosphere

Value

Returns a matrix of dimension nt x length(rx), with rows corresponding to time steps and columns to receivers.

Details

This is suitable for calculating arrival functions for spatially distributed acoustic sources. Each of sx, sy, and sz should be the same length, and each of rx, ry, and rz should be the same length.

Examples

Run this code
MakeArrivals.lin(xs = c(100, 150), ys = c(100, 150), zs = c(100, 150), xr = 0, yr = 0, zr = 0, dt = 0.01, nt = 100, timing = c(0, 0), ATM = CheckAtm.lin())

Run the code above in your browser using DataLab