Learn R Programming

RSEIS (version 2.3-3)

JSAC.seis: JSAC.seis

Description

Read SEGY/SAC format binary data

Usage

JSAC.seis(fnames, Iendian = 1 , HEADONLY=FALSE, BIGLONG=TRUE, PLOT = FALSE)
JSEGY.seis(fnames, Iendian = 1 , HEADONLY=FALSE, BIGLONG=TRUE, PLOT = FALSE)

Arguments

fnames
vector of file names to be extracted and converted.
Iendian
Endian-ness of the data: 1,2,3: "little", "big", "swap". Default = 1 (little)
HEADONLY
logical, TRUE= header information only
BIGLONG
logical, TRUE=long=8 bytes
PLOT
logical, whether to plot the data after reading in

Value

  • List containing the seismic data and header information. Each trace consists of a list with:
  • fnoriginal file name
  • stastation name
  • compcompnent
  • dtdelta t in seconds
  • DATTIMtime list
  • yryear
  • jdjulian day
  • momonth
  • domday of month
  • hrhour
  • miminute
  • secsec
  • msecmilliseconds
  • dtdelta t in seconds
  • t1time start of trace
  • t2time end of trace
  • offoff-set
  • Nnumber of points in trace
  • unitsunits
  • ampvector of trace values

Details

Uses readBin to extract data in SAC format. user must know what kind of machine the data was created on for I/O purposes.

See Also

Mine.seis, Package:Rsac

Examples

Run this code
Lname = list.files(path='/data/wadati/bourbon/LaurelCanNC/R005.01' , pattern="08.005.01.41.23.9024", full.names=TRUE)

S1  = JSAC.seis(Lname, Iendian = 1, PLOT = FALSE)

Run the code above in your browser using DataLab