Learn R Programming

RSEIS (version 3.7-4)

Get1Dvel: Read 1D velocity model

Description

Read in a velocity model

Usage

Get1Dvel(infile, PLOT = TRUE)

Arguments

infile

Path to ascii-text model

PLOT

logical, TRUE=plot

Value

LIST:

zp

vector of Tops of Layers, P-wave, (km)

vp

vector of velocities of Layers, P-wave,(km/s)

ep

errors for velocities, P-wave,(km/s)

zs

vector of Tops of Layers, S-wave, (km)

vs

vector of velocities of Layers, S-wave,(km/s)

es

errors for velocities, S-wave,(km/s)

name

character, name of model

descriptor

character vector description of model

Details

Reads Velocity model from a text file

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
 VELMOD1D = Get1Dvel("/home/lees/Progs/R_PAX/wu_coso.vel", PLOT=TRUE)
# }
# NOT RUN {
data(VELMOD1D)

Get1Dvel(VELMOD1D, PLOT=TRUE)
# }
# NOT RUN {
 
# }

Run the code above in your browser using DataLab