parseFN2STA {RSEIS} | R Documentation |
station and component are assumed to be the last elements of a file name - this function returns a list with these text strings.
parseFN2STA(fn, ista, icomp, sep="\\." )
fn |
text file name |
ista |
index of station name counting from the end of the file name |
icomp |
index of station name counting from the end of the file name |
sep |
seperator token in file name |
Some format store the station in the file name rather than the seismic header. Default assumes that the station name and the component name are the last items on the file name seperated by a period. So ista and icomp are computed from the end of the file name, i.e. ista=1 and icomp=0.
list(sta='text station name', comp='compname')
Jonathan M. Lees<jonathan.lees@unc.edu>
parseFN2STA('/data/wadati/bourbon/GUATEMALA/SEGY/R009.01/07.009.22.25.34.CAS.E')