Module ExtractEq
- rfsed.ExtractEq.ExtractEq(datapath, filename, catalog, stalat, stalon, Request_window)
Extract the earthquake waveform data from the local data files and writes the extracted data to a new file
- Parameters:
datapath (str) – Path to the local data files directory
filename (str) – Path to the new file
catalog (str) – Path to the catalog file
stalat (float) – Latitude of the station
stalon (float) – Longitude of the station
Request_window (list[start, end]) – Time window relative to first P arrival (in seconds)
- Returns:
Extracted earthquake data in a new file
Example
>>> # Initialize the ExtractEq module: >>> from rfsed.ExtractEq import ExtractEq >>> # Define all the necessary parameters >>> datapath = 'path/to/datafiles/' >>> filename = 'path/to/newfile' >>> catalog = 'path/to/catalog' >>> stalat = 52.22 >>> stalon = 6.89 >>> Request_window = [-50, 150] >>> # Call the ExtractEq function >>> ExtractEq(datapath, filename, catalog, stalat, stalon, Request_window)