Last chance! 50% off unlimited learning
Sale ends in
JSAC.seis(fnames, Iendian = 1 , HEADONLY=FALSE,
BIGLONG=TRUE, PLOT = -1, RAW=FALSE)
JSEGY.seis(fnames, Iendian = 1 , HEADONLY=FALSE,
BIGLONG=TRUE, PLOT = -1, RAW=FALSE)
For SEGY data the program is the same, although SEGY data does not have the problem of the BIGLONG so that is ignored.
For either code, a full header is returned, although the header for each format may be different.
#### this will return a list of traces
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 = -1)
##################### from a data base example: this will return one
##### trace header
f1 <- DB$fn[200]
j1 <- JSAC.seis(f1, Iendian=1, HEADONLY=TRUE , BIGLONG=FALSE, PLOT=-1)
print( j1[[1]]$HEAD )
############# example for SEGY data: one SEGY header
dir <- "/data/wadati/soju/SEISMIC_DATA/Reventador2005/rev05/SEGY/R251.01"
lf <- list.files(path=dir, pat="05.251", full.names=TRUE)
f1 <- lf[1]
j1 <- JSEGY.seis(f1, Iendian=1, HEADONLY=TRUE , BIGLONG=FALSE, PLOT=-1)
print( j1[[1]]$HEAD )
Run the code above in your browser using DataLab