5.11.1.2. eqcorrscan.utils.pre_processing.process¶
-
eqcorrscan.utils.pre_processing.
process
(tr, lowcut, highcut, filt_order, samp_rate, debug, starttime=False, full_day=False, seisan=True)[source]¶ Basic function to process data, usually called by dayproc or shortproc.
Functionally, this will bandpass, downsample and check headers and length of trace to ensure files start at the start of a day and are daylong.
Works in place on data. This is employed to ensure all parts of the data are processed in the same way.
Note
Usually this function is called via dayproc or shortproc.
Parameters: - tr (obspy.core.trace.Trace) Trace to process
- highcut (float) High cut in Hz, if set to None and lowcut is set, will use a highpass filter.
- filt_order (int) Number of corners for filter.
- samp_rate (float) Desired sampling rate in Hz
- debug (int) Debug output level from 0-5, higher numbers = more output
- starttime (obspy.core.utcdatetime.UTCDateTime) Desired start of trace
- full_day (bool) Whether to expect, and enforce a full day of data or not.
- seisan (bool) Whether channels are named like seisan channels (which are two letters rather than three) - defaults to True.
Returns: obspy.Stream
Note
Will convert channel names to two characters long.