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.
- 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 factor: 1 for equidistant sampling, > 1 for sampling decreasing with distance.
- ♦ n_time_samples¶
int, optionalNumber of temporal GF samples up to
max_time. Must be a power of 2, otherwise the next power of 2 is used.
- ♦ max_time¶
float, optionalMaximum time [days] after seismic event.
- ♦ gf_depth_spacing¶
float, optionalDepth spacing [km] for the observation points. If not given, the depth spacing of the store’s config is used.
- ♦ gf_distance_spacing¶
float, optionalSpatial spacing [km] for the observation points. If not given, the distance spacing of the store’s config 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.
- class PsCmpProfile(**kwargs)[source]¶
Bases:
PsCmpObservationCalculation along observation profile.
- ♦ n_steps¶
int, default:10
- ♦ slat¶
float, default:0.0Profile start latitude [deg].
- ♦ slon¶
float, default:0.0Profile start longitude [deg].
- ♦ elat¶
float, default:0.0Profile end latitude [deg].
- ♦ elon¶
float, default:0.0Profile end longitude [deg].
- ♦ distances¶
listoffloatobjects, optionalDistances [m] for each point on profile from start to end.
- class PsCmpArray(**kwargs)[source]¶
Bases:
PsCmpObservationCalculation on a grid.
- 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-clockwise 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.
- 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.
- 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.
- 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.0Principal stress 1 [Pa].
- ♦ sigma2¶
float, default:-1000000.0Principal stress 2 [Pa].
- ♦ sigma3¶
float, default:0.0Principal stress 3 [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.
- 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
PsCmpMomentTensordepends on the horizontal spacing of the GF database. This factor is applied to the relationship, 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.0Minimum time [days].
- ♦ tmax_days¶
float, default:1.0Maximum time [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