Bases: object
Class that handles the solver part of source inversion
Parameters: |
|
---|
Apply station correction on windows based one cross-correlation time shift if config.station_correction
Parameters: |
|
---|---|
Returns: |
Calculate the time shift, max cross-correlation value and energy differnce
Parameters: |
|
---|---|
Returns: | [number of shift points, max cc value, dlnA] |
Return type: | [int, float, float] |
Calculate dsyn matrix based on perturbed seismograms
Parameters: | datalist – |
---|---|
Returns: |
Calculate the variance reduction on a pair of obsd and synt and windows
Parameters: |
|
---|---|
Returns: | waveform misfit reduction and observed data energy [v1, d1] |
Return type: | [float, float] |
Calculate variance reduction based on old and new source solution
Returns: |
---|
Calculate the matrix A and vector b based on one pair of observed data and synthetic data on a given window.
Parameters: |
|
---|---|
Returns: |
Compute new synthetic data based on new CMTSOLUTION
Parameters: |
|
---|---|
Returns: |
Hanning taper construct
Parameters: | npts – number of points |
---|---|
Returns: |
Calculate the bin number of a given azimuth
Parameters: | azimuth – test test test |
---|---|
Returns: |
Using the event location and station information to calculate azimuth and distance !!! Obsolete, not used any more !!!
Parameters: | datalist – data dictionary(referred to pycmt3d.Window.datalist) |
---|---|
Returns: |
It is used to evaluate the mean, standard deviation, and variance of new parameters
Returns: |
---|
ensemble all measurements together to form Matrix A and vector b to solve the A * (dm) = b A is the Hessian Matrix and b is the misfit
Returns: |
---|
Solver part. Hession matrix A and misfit vector b will be reconstructed here based on different constraints.
Parameters: |
|
---|---|
Returns: |
if invert for moment tensor with zero-trace constraints or no constraint
if invert for moment tensor with double couple constraints setup starting solution, solve directly for moment instead of dm, exact implementation of (A16) logger.info(‘Non-linear Inversion’)
Returns: |
---|
Plot inversion histogram
Parameters: | outputdir – |
---|---|
Returns: |
Plot inversion summary
Parameters: | outputdir – output directory |
---|---|
Returns: |
Prepare necessary information for weighting, e.x., calculating azimuth, distance and energty of a window. Also, based on the tags, sort window into different categories.
Returns: |
---|
Setup weight for each category if config.normalize_category window_weight = window_weight / N_windows_in_category
Parameters: | window – |
---|---|
Returns: |
Configuration object for pycmt3d
Bases: object
Configuration for source inversion
Parameters: |
|
---|
All the constants used in pycmt3d
Source and Receiver classes of Instaseis.
copyright: | Lion Krischer (krischer@geophysik.uni-muenchen.de), 2014 Martin van Driel (Martin@vanDriel.de), 2014 |
---|---|
license: | GNU Lesser General Public License, Version 3 (http://www.gnu.org/copyleft/lgpl.html) |
Bases: object
Class to handle a seismic moment tensor source including a source time function.
Initialize a source object from a CMTSOLUTION file.
Parameters: | filename – path to the CMTSOLUTION file |
---|
Initizliaze a source object from a quakeml file :param filename: path to a quakeml file
List of moment tensor components in r, theta, phi coordinates: [m_rr, m_tt, m_pp, m_rt, m_rp, m_tp]
Bases: object
Class that contains methods that load data and window information
Add measurments(window and data) from the given flexwinfile and the data format should be asdf. Usually, you can leave the obsd_tag=None and synt_tag=None unless if you have multiple tags in asdf file.
Parameters: |
|
---|---|
Returns: |
Add measurments(window and data) from the given flexwinfile and the data format should be sac
Parameters: | flexwinfile – |
---|---|
Returns: |
Used to extrace station location information from stationxml in asdf
Used to extract a specific trace out of an asdf file.
Parameters: |
|
---|---|
Returns: |
load data from asdf file
Returns: |
---|
Old way of loading obsd and synt data...
Parameters: | win_obj – |
---|---|
Returns: |
Bases: object
Obsd, synt, deriv synt trace and window information from one component of one station. Also, window weighting, station azimuth, distance is also included.