Learn R Programming

RSEIS (version 2.1-6)

parseFN2STA: get station from file name

Description

station and component are assumed to be the last elements of a file name - this function returns a list with these text strings.

Usage

parseFN2STA(fn)

Arguments

fn
text file name

Value

  • list(sta='text station name', comp='compname')

Details

Some format store the station in the file name rather than the seismic header.

Examples

Run this code
parseFN2STA('/data/wadati/bourbon/GUATEMALA/SEGY/R009.01/07.009.22.25.34.CAS.E')

Run the code above in your browser using DataLab