pyrocko.fomosto.psgrn_pscmp¶
Functions
|
Input: List of PsCmpRectangularSource(s) |
|
Factor that needs to be multiplied to 2 of the tensile sources to eliminate two of the isotropic components. |
|
Factor to be multiplied to elementary GF trace to have unit displacement. |
Classes
|
Calculation on a grid. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Mapping of Moment Tensor components to rectangular faults. |
|
Undocumented. |
|
Calculation along observation profile. |
|
Rectangular source for the input geometry of the active fault. |
|
Wrapper object to execute the program fomosto_pscmp with the specified configuration. |
|
Scattered observation points. |
|
Shear fault source model component. |
|
Snapshot time series definition. |
|
Compound dislocation of 3 perpendicular, rectangular sources to approximate an opening single force couple. |
|
Configuration for PSGRN. |
|
Undocumented. |
|
Combined config Object of PsGrn and PsCmp. |
|
Wrapper object to execute the program fomosto_psgrn. |
|
Definition of spatial sampling for PSGRN. |
- class PsGrnSpatialSampling(**kwargs)[source]¶
Bases:
ObjectDefinition of spatial sampling for PSGRN.
Note: attributes in this class use non-standard units [km] to be consistent with PSGRN text file input. Please read the documentation carefully.
- ♦ n_steps¶
int, default:10
- ♦ start_distance¶
float, default:0.0
- ♦ end_distance¶
float, default:100.0
- class PsGrnConfig(**kwargs)[source]¶
Bases:
ObjectConfiguration for PSGRN.
Note: attributes in this class use non-standard units [km] and [days] to be consistent with PSGRN text file input. Please read the documentation carefully.
- ♦ version¶
str, default:'2008a'
- ♦ sampling_interval¶
float, default:1.0Exponential sampling 1.- equidistant, > 1. decreasing sampling with distance
- ♦ n_time_samples¶
int, optionalNumber of temporal GF samples up to max_time. Has to be equal to a power of 2! If not, next power of 2 is taken.
- ♦ max_time¶
float, optionalMaximum time [days] after seismic event.
- ♦ gf_depth_spacing¶
float, optionalDepth spacing [km] for the observation points. If not defined depth spacing from the StoreConfig is used
- ♦ gf_distance_spacing¶
float, optionalSpatial spacing [km] for the observation points. If not defined distance spacing from the StoreConfig is used
- ♦ observation_depth¶
float, default:0.0Depth of observation points [km]
- class PsGrnConfigFull(**kwargs)[source]¶
Bases:
PsGrnConfigUndocumented.
- ♦ earthmodel_1d¶
pyrocko.cake.LayeredModel (
pyrocko.gf.meta.Earthmodel1D), optional
- ♦ psgrn_outdir¶
str, default:'psgrn_green/'
- ♦ distance_grid¶
PsGrnSpatialSampling, default:PsGrnSpatialSampling()
- ♦ depth_grid¶
PsGrnSpatialSampling, default:PsGrnSpatialSampling()
- ♦ sw_source_regime¶
int, default:1
- ♦ sw_gravity¶
int, default:0
- ♦ accuracy_wavenumber_integration¶
float, default:0.025
- ♦ displ_filenames¶
tupleof 3strobjects, default:('uz', 'ur', 'ut')
- ♦ stress_filenames¶
tupleof 6strobjects, default:('szz', 'srr', 'stt', 'szr', 'srt', 'stz')
- ♦ tilt_filenames¶
tupleof 3strobjects, default:('tr', 'tt', 'rot')
- ♦ gravity_filenames¶
tupleof 2strobjects, default:('gd', 'gr')
- class PsGrnRunner(outdir)[source]¶
Bases:
objectWrapper object to execute the program fomosto_psgrn.
- run(config, force=False)[source]¶
Run the program with the specified configuration.
- Parameters:
config –
PsGrnConfigFullforce – boolean, set true to overwrite existing output
- class PsCmpScatter(**kwargs)[source]¶
Bases:
PsCmpObservationScattered observation points.
- ♦ lats¶
listoffloatobjects, optional, default:[10.4, 10.5]
- ♦ lons¶
listoffloatobjects, optional, default:[12.3, 13.4]
- class PsCmpProfile(**kwargs)[source]¶
Bases:
PsCmpObservationCalculation along observation profile.
- ♦ n_steps¶
int, default:10
- ♦ slat¶
float, default:0.0Profile start latitude
- ♦ slon¶
float, default:0.0Profile start longitude
- ♦ elat¶
float, default:0.0Profile end latitude
- ♦ elon¶
float, default:0.0Profile end longitude
- ♦ distances¶
listoffloatobjects, optionalDistances [m] for each point on profile from start to end.
- class PsCmpArray(**kwargs)[source]¶
Bases:
PsCmpObservationCalculation on a grid.
- ♦ n_steps_lat¶
int, default:10
- ♦ n_steps_lon¶
int, default:10
- ♦ slat¶
float, default:0.0Array start latitude
- ♦ slon¶
float, default:0.0Array start longitude
- ♦ elat¶
float, default:0.0Array end latitude
- ♦ elon¶
float, default:0.0Array end longitude
- class PsCmpRectangularSource(**kwargs)[source]¶
-
Rectangular source for the input geometry of the active fault.
The default shift of the origin (
pos_s,pos_d) with respect to the reference coordinates (lat,lon) is zero, which implies that the reference is the center of the fault plane! The calculation point is always the center of the fault-plane. Settingpos_sorpos_dmoves the fault point with respect to the origin along strike and dip direction, respectively.- ♦ length¶
float, default:6000.0Fault length [m].
- ♦ width¶
float, default:5000.0Fault width [m].
- ♦ strike¶
float, default:0.0Fault strike, clockwise from north [deg].
- ♦ dip¶
float, default:90.0Fault dip, downward from horizontal [deg].
- ♦ rake¶
float, default:0.0Rake angle, counter-clock wise from right-horizontal [deg].
- ♦ torigin¶
float, default:0.0Origin time [s].
- ♦ slip¶
float, optional, default:1.0Slip amount [m]
- ♦ pos_s¶
float, optionalOrigin offset along strike [m].
- ♦ pos_d¶
float, optionalOrigin offset along dip [m].
- ♦ opening¶
float, default:0.0Fault opening [m].
- get_nullification_factor(mu, lame_lambda)[source]¶
Factor that needs to be multiplied to 2 of the tensile sources to eliminate two of the isotropic components.
- get_trace_normalization_factor(mu, lame_lambda, nullification)[source]¶
Factor to be multiplied to elementary GF trace to have unit displacement.
- class PsCmpTensileSF(**kwargs)[source]¶
-
Compound dislocation of 3 perpendicular, rectangular sources to approximate an opening single force couple. NED coordinate system!
Warning: Mixed standard [m] / non-standard [days] units are used in this class. Please read the documentation carefully.
- ♦ length¶
float, default:1000.0Length of source rectangle [m].
- ♦ width¶
float, default:1000.0Width of source rectangle [m].
- ♦ torigin¶
float, default:0.0Origin time [days]
- ♦ idx¶
str, default:'nn'Axis index for opening direction; “nn”, “ee”, or “dd”
- class PsCmpShearSF(**kwargs)[source]¶
-
Shear fault source model component.
Warning: Mixed standard [m] / non-standard [days] units are used in this class. Please read the documentation carefully.
- ♦ length¶
float, default:1000.0Length of source rectangle [m].
- ♦ width¶
float, default:1000.0Width of source rectangle [m].
- ♦ torigin¶
float, default:0.0Origin time [days]
- ♦ idx¶
str, default:'ne'Axis index for opening direction; “ne”, “nd”, or “ed”
- class PsCmpMomentTensor(**kwargs)[source]¶
-
Mapping of Moment Tensor components to rectangular faults. Only one component at a time valid! NED coordinate system!
Warning: Mixed standard [m] / non-standard [days] units are used in this class. Please read the documentation carefully.
- ♦ length¶
float, default:1000.0Length of source rectangle [m].
- ♦ width¶
float, default:1000.0Width of source rectangle [m].
- ♦ torigin¶
float, default:0.0Origin time [days]
- ♦ idx¶
str, default:'nn'Axis index for MT component; “nn”, “ee”, “dd”, “ne”, “nd”, or “ed”.
- class PsCmpCoulombStressMasterFault(**kwargs)[source]¶
Bases:
PsCmpCoulombStressUndocumented.
- ♦ friction¶
float, default:0.7
- ♦ skempton_ratio¶
float, default:0.0
- ♦ master_fault_strike¶
float, default:300.0
- ♦ master_fault_dip¶
float, default:15.0
- ♦ master_fault_rake¶
float, default:90.0
- ♦ sigma1¶
float, default:1000000.0[Pa]
- ♦ sigma2¶
float, default:-1000000.0[Pa]
- ♦ sigma3¶
float, default:0.0[Pa]
- class PsCmpSnapshots(**kwargs)[source]¶
Bases:
ObjectSnapshot time series definition.
Note: attributes in this class use non-standard units [days] to be consistent with PSCMP text file input. Please read the documentation carefully.
- ♦ tmin¶
float, default:0.0Time [days] after source time to start temporal sample snapshots.
- ♦ tmax¶
float, default:1.0Time [days] after source time to end temporal sample f.
- ♦ deltatdays¶
float, default:1.0Sample period [days].
- class PsCmpConfig(**kwargs)[source]¶
Bases:
ObjectUndocumented.
- ♦ version¶
str, default:'2008a'
- ♦ observation¶
PsCmpObservation, default:PsCmpScatter()
- ♦ rectangular_fault_size_factor¶
float, default:1.0The size of the rectangular faults in the compound MT
PsCmpMomentTensoris dependend on the horizontal spacing of the GF database. This factor is applied to the relationship in i.e. fault length & width = f * dx.
- ♦ snapshots¶
PsCmpSnapshots, optional
- ♦ rectangular_source_patches¶
listofPsCmpRectangularSourceobjects, default:[]
- class PsCmpConfigFull(**kwargs)[source]¶
Bases:
PsCmpConfigUndocumented.
- ♦ pscmp_outdir¶
str, default:'./'
- ♦ psgrn_outdir¶
str, default:'./psgrn_functions/'
- ♦ los_vector¶
tupleof 3floatobjects, optional
- ♦ sw_los_displacement¶
int, default:0
- ♦ sw_coulomb_stress¶
int, default:0
- ♦ coulomb_master_field¶
PsCmpCoulombStress, optional, default:PsCmpCoulombStressMasterFault()
- ♦ displ_sw_output_types¶
tupleof 3intobjects, default:(0, 0, 0)
- ♦ stress_sw_output_types¶
tupleof 6intobjects, default:(0, 0, 0, 0, 0, 0)
- ♦ tilt_sw_output_types¶
tupleof 3intobjects, default:(0, 0, 0)
- ♦ gravity_sw_output_types¶
tupleof 2intobjects, default:(0, 0)
- ♦ indispl_filenames¶
tupleof 3strobjects, default:('uz', 'ur', 'ut')
- ♦ instress_filenames¶
tupleof 6strobjects, default:('szz', 'srr', 'stt', 'szr', 'srt', 'stz')
- ♦ intilt_filenames¶
tupleof 3strobjects, default:('tr', 'tt', 'rot')
- ♦ ingravity_filenames¶
tupleof 2strobjects, default:('gd', 'gr')
- ♦ outdispl_filenames¶
tupleof 3strobjects, default:('un', 'ue', 'ud')
- ♦ outstress_filenames¶
tupleof 6strobjects, default:('snn', 'see', 'sdd', 'sne', 'snd', 'sed')
- ♦ outtilt_filenames¶
tupleof 3strobjects, default:('tn', 'te', 'rot')
- ♦ outgravity_filenames¶
tupleof 2strobjects, default:('gd', 'gr')
- ♦ snapshot_basefilename¶
str, default:'snapshot'
- class PsGrnPsCmpConfig(**kwargs)[source]¶
Bases:
ObjectCombined config Object of PsGrn and PsCmp.
Note: attributes in this class use non-standard units [days] to be consistent with PSCMP text file input. Please read the documentation carefully.
- ♦ tmin_days¶
float, default:0.0Min. time in days
- ♦ tmax_days¶
float, default:1.0Max. time in days
- ♦ gf_outdir¶
str, default:'psgrn_functions'
- ♦ psgrn_config¶
PsGrnConfig, default:PsGrnConfig()
- ♦ pscmp_config¶
PsCmpConfig, default:PsCmpConfig()
- class PsCmpRunner(tmp=None, keep_tmp=False)[source]¶
Bases:
objectWrapper object to execute the program fomosto_pscmp with the specified configuration.
- Parameters:
tmp – string, path to the temporary directy where calculation results are stored
keep_tmp – boolean, if True the result directory is kept
- run(config)[source]¶
Run the program!
- Parameters:
config –
PsCmpConfigFull
- get_results(component='displ')[source]¶
Get the resulting components from the stored directory.
Note
The z-component is downward positive.
- Parameters:
component – The component to retrieve from the result directory. Choices:
"displ"– displacement, n x 3 array,"stress"– stresses n x 6 array,"tilt'– tilts n x 3 array,"gravity'– gravity n x 2 array,"all"– all the above together.
- get_traces(component='displ')[source]¶
Load snapshot data array and return specified components. Transform array component and receiver wise to list of
pyrocko.trace.Trace