utils
Surface wave processing utilities.
- extract_mseed(startend_fname, network, data_dir='./', output_dir='./', extension='mseed')
Extract specific time blocks from a set of miniseed files.
Reads a large set of miniseed files, trims out specified time block(s), and writes the trimmed block(s) to disk. Useful for condensing a large dataset consisting of miniseed files written at the end of each hour to a single file that spans several hours. Stations which share an array name will appear in a common directory.
- Parameters:
startend_fname (str) – Name of .csv file with start and end times. An example file is provided here
network (str) – Short string of characters to identify the network. Exported files will utilize this network code as its prefix.
data_dir (str, optional) – The full or a relative file path to the directory containing the miniseed files, default is the current directory.
output_dir (str, optional) – The full or a relative file path to the location to place the output miniseed files, default is the current directory.
extension ({“mseed”, “miniseed”}, optional) – Extension used for miniSEED format, default is “mseed”.
- Returns:
None – Writes folder and files to disk.