pre_processing¶
Utilities module for the EQcorrscan package written by Calum Chamberlain of Victoria University Wlelington. These functions are designed to do the basic processing of the data using obspy modules (which also rely on scipy and numpy).
Copyright 2015 Calum Chamberlain
This file is part of EQcorrscan.
EQcorrscan is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
EQcorrscan is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with EQcorrscan. If not, see <http://www.gnu.org/licenses/>.
-
pre_processing.
_check_daylong
(tr)[source]¶ Function to check the data quality of the daylong file - check to see that the day isn’t just zeros, with large steps, if it is then the resampling will hate it.
Parameters: tr (obspy.Trace) – Trace to check if the data are daylong. Return qual: bool
-
pre_processing.
dayproc
(tr, lowcut, highcut, filt_order, samp_rate, debug, starttime)[source]¶ Basic function to 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.
Parameters: Returns: obspy.Stream
- ..rubric:: Note
- Will convert channel names to two charectars long
-
pre_processing.
shortproc
(st, lowcut, highcut, filt_order, samp_rate, debug=0)[source]¶ Basic function to bandpass, downsample. Works in place on data. This is employed to ensure all parts of the data are processed in the same way.
Parameters: Returns: obspy.Stream
- ..rubric:: Note
- Will convert channel names to two charectars long