Learn R Programming

RSEIS (version 2.1-6)

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:
  • zpvector of Tops of Layers, P-wave, (km)
  • vpvector of velocities of Layers, P-wave,(km/s)
  • eperrors for velocities, P-wave,(km/s)
  • zsvector of Tops of Layers, S-wave, (km)
  • vsvector of velocities of Layers, S-wave,(km/s)
  • eserrors for velocities, S-wave,(km/s)
  • namecharacter, name of model
  • descriptorcharacter vector description of model

Details

Reads Velocity model from a text file

Examples

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

Get1Dvel(VELMOD1D, PLOT=TRUE)

Run the code above in your browser using DataLab