Learn R Programming

RSEIS (version 4.2-4)

plotGH: Plot a seismic trace.

Description

Quick and dirty plot of a seismic trace as recorded and save using stream2GHnosens or other RSEIS savers.

Usage

plotGH(h)

Value

Side effects

Arguments

h

This is a standard GH object as defined in RSEIS

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

The input is a list that has, as a minimum the following items: 'amp', 'dt', 'sta', 'comp', 'DATTIM'. Item 'amp', a time series vector is converted to a ts object.

See Also

RSEIS::prepSEIS, RSEIS::prep1wig, RSEIS::PLOT.SEISN, RSEIS::swig

Examples

Run this code

data(GH)
L1 = length(GH$JSTR)
DD = data.frame(GH$info)
####  convert to individual traces,
###  here just use the first one:
i = 1
AA = DD[i,]
zh  = list(fn = AA$fn, sta =GH$STNS[i] , comp = GH$COMP[i], 
            dt = AA$dt, DATTIM = AA, N = AA$n1, units = NA, 
            coords = NA, amp = GH$JSTR[[i]]  )
######  plot 
plotGH(zh)


Run the code above in your browser using DataLab