Post-processing package#
seispy.hk module#
- seispy.hk.ci(allstack, h, kappa, ev_num)[source]#
Search best H and kappa from stacked matrix. Calculate error for H and kappa :param allstack: stacked HK matrix :param h: 1-D array of H :param kappa: 1-D array of kappa :param ev_num: event number :return:
- seispy.hk.plot(stack, allstack, h, kappa, besth, bestk, cvalue, cmap=<matplotlib.colors.ListedColormap object>, title=None, path=None)[source]#
seispy.slantstack module#
- class seispy.slantstack.SlantStack(seis, timeaxis, dis)[source]#
Bases:
object
Methods
plot
([cmap, xlim, vmin, vmax, figpath, colorbar])Imaging for slant stacking
stack
syn_tps
- plot(cmap='jet', xlim=None, vmin=None, vmax=None, figpath=None, colorbar=True)[source]#
Imaging for slant stacking
- Parameters:
- cmapstr, optional
The colormap to use, by default ‘jet’
- xlim_type_, optional
Set the x limits of the current axes., by default None
- vmin_type_, optional
Normalize the minium value data to the
vmin
, by default None- vmax_type_, optional
Normalize the maximum value data to the
vmax
, by default None- figpath_type_, optional
Output path to the image, by default None
- colorbarbool, optional
Wether plot the colorbar, by default True
seispy.rfani module#
- class seispy.rfani.RFAni(sacdatar, tb, te, tlen=3, val=10, rayp=0.06, model='iasp91')[source]#
Bases:
object
Methods
plot_polar
([cmap, show, outpath])Polar map of crustal anisotropy.
baz_stack
cut_energy_waveform
init_ani_para
joint_ani
plot_correct
plot_stack_baz
radial_energy_max
rotate_to_fast_slow
search_peak
search_peak_amp
search_peak_list
xyz2grd
- plot_polar(cmap=<matplotlib.colors.ListedColormap object>, show=False, outpath='./')[source]#
Polar map of crustal anisotropy. See Liu and Niu (2012, doi: 10.1111/j.1365-246X.2011.05249.x) in detail.
- Parameters:
cmap (optional) – Colormap of matplotlib, defaults to ‘rainbow’
show (bool, optional) – If show the polar map in the Matplotlib window, defaults to True
outpath (str, optional) – Output path to saving the figure. If show the figure in the Matplotlib window, this option will be invalid, defaults to current directory.
seispy.harmonics module#
- class seispy.harmonics.Harmonics(rfsta, tmin=-5, tmax=10)[source]#
Bases:
object
Methods
Trim RFs from tmin to tmax
plot
([outpath, enf])Plot harmonic and unmodeled components
write_constant
([out_sac_path])Write constant component to SAC file.
harmo_trans