plotGH: Plot a seismic trace.

View source: R/plotGH.R

plotGHR Documentation

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)

Arguments

h

This is a standard GH object as defined in RSEIS

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.

Value

Side effects

Author(s)

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

See Also

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

Examples


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)



RSEIS documentation built on Sept. 13, 2024, 1:09 a.m.