RF package#

seispy.eq module#

class seispy.eq.EQ(pathname, datestr, suffix='SAC')[source]#

Bases: object

Methods

arr_correct([write_to_sac])

offset = sac.b - real o

channel_correct([switchEN, reverseE, reverseN])

_summary_

trim(time_before, time_after[, isreturn])

offset = sac.b - real o

cleanstream

decon_p

decon_s

deconvolute

detrend

filter

fix_channel_name

get_arrival

get_time_offset

judge_rf

phase_trigger

readstream

rotate

s_condition

saverf

search_baz

search_inc

set_comp

snr

arr_correct(write_to_sac=True)[source]#

offset = sac.b - real o

channel_correct(switchEN=False, reverseE=False, reverseN=False)[source]#

_summary_

Parameters
  • switchEN (bool, optional) – _description_, defaults to False

  • reverseE (bool, optional) – _description_, defaults to False

  • reverseN (bool, optional) – _description_, defaults to False

cleanstream()[source]#
decon_p(tshift, tcomp=False, **kwargs)[source]#
decon_s(tshift, **kwargs)[source]#
deconvolute(shift, time_after, f0=2, method='iter', only_r=False, itmax=400, minderr=0.001, wlevel=0.05, target_dt=None)[source]#
detrend()[source]#
filter(freqmin=0.05, freqmax=1, order=4)[source]#
fix_channel_name()[source]#
get_arrival(model, evdp, dis, phase='P')[source]#
get_time_offset(event_time=None)[source]#
judge_rf(shift, npts, criterion='crust', rmsgate=None)[source]#
phase_trigger(time_before, time_after, stl=5, ltl=10)[source]#
readstream()[source]#
rotate(baz, inc=None, method='NE->RT', search_inc=False, baz_shift=0)[source]#
s_condition(trrf, shift)[source]#
saverf(path, evtstr=None, shift=0, evla=- 12345.0, evlo=- 12345.0, evdp=- 12345.0, mag=- 12345.0, gauss=0, baz=- 12345.0, gcarc=- 12345.0, only_r=False, **kwargs)[source]#
search_baz(bazi, time_b=10, time_e=20, offset=90)[source]#
search_inc(bazi)[source]#
set_comp()[source]#
snr(length=50)[source]#
trim(time_before, time_after, isreturn=False)[source]#

offset = sac.b - real o

seispy.eq.rotateZNE(st)[source]#

seispy.rf module#

seispy.rf.CfgModify(cfg_file, session, key, value)[source]#
seispy.rf.CfgParser(cfg_file)[source]#
class seispy.rf.RF(cfg_file=None, log=None)[source]#

Bases: object

Attributes
date_begin
date_end

Methods

baz_correct

cal_phase

channel_correct

deconv

detrend

drop_eq_snr

filter

load_stainfo

loadpjt

match_eq

pick

rotate

savepjt

saverf

search_eq

trim

baz_correct(time_b=10, time_e=20, offset=90, correct_angle=None)[source]#
cal_phase()[source]#
channel_correct()[source]#
property date_begin#
property date_end#
deconv()[source]#
detrend()[source]#
drop_eq_snr(length=None)[source]#
filter(freqmin=None, freqmax=None, order=4)[source]#
load_stainfo()[source]#
classmethod loadpjt(path)[source]#
match_eq()[source]#
pick(prepick=True, stl=5, ltl=10)[source]#
rotate(search_inc=False)[source]#
savepjt()[source]#
saverf()[source]#
search_eq(local=False, server=None, catalog='GCMT')[source]#
trim()[source]#
exception seispy.rf.SACFileNotFoundError(matchkey)[source]#

Bases: Exception

seispy.rf.datestr2regex(datestr)[source]#
seispy.rf.load_station_info(pathname, ref_comp, suffix)[source]#
seispy.rf.match_eq(eq_lst, pathname, stla, stlo, logger, ref_comp='Z', suffix='SAC', offset=None, tolerance=210, dateformat='%Y.%j.%H.%M.%S')[source]#
seispy.rf.pickphase(eqs, para, logger)[source]#
seispy.rf.read_catalog(logpath, b_time, e_time, stla, stlo, magmin=5.5, magmax=10, dismin=30, dismax=90)[source]#
seispy.rf.setpar()[source]#
class seispy.rf.stainfo[source]#

Bases: object

Methods

get_stainfo

load_stainfo

get_stainfo()[source]#
load_stainfo(pathname, ref_comp, suffix)[source]#

seispy.para module#

class seispy.para.para[source]#

Bases: object

Attributes
catalogpath
criterion
datapath
decon_method
rfpath

Methods

get_para

property catalogpath#
property criterion#
property datapath#
property decon_method#
get_para()[source]#
property rfpath#