5.12. sac_util

Part of the EQcorrscan package: tools to convert SAC headers to obspy event objects.

Authors: Calum Chamberlain and the EQcorrscan developers.

Note

This functionality is not supported for obspy versions below 1.0.0 as references times are not read in by SACIO, which are needed for defining pick times.

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/>.

sac_util.sactoevent(st, debug=0)[source]

Function to convert SAC headers to obspy event class.

Parameters:st (obspy.core.Stream) – Stream of waveforms including SAC headers.
Pram debug:Debug level, larger number = more output.
Returns:obspy.core.Event

Note

This functionality is not supported for obspy versions below 1.0.0 as references times are not read in by SACIO, which are needed for defining pick times.