event¶
- class dsmpy.event.Event(event_id, latitude, longitude, depth, mt, centroid_time, source_time_function)¶
Represent an earthquake point-source.
- Parameters
event_id (str) – GCMT event name
latitude (float) – centroid geographic latitude [-90, 90] in degree
longitude (float) – centroid longitude [-180, 180] in degree
depth (float) –
mt (MomentTensor) – moment tensor
source_time_function (SourceTimeFunction) – SourceTimeFunction
object –
- event_id¶
GCMT event name
- Type
str
- latitude¶
- Type
float
- [-90, 90] in degree
- longitude¶
centroid longitude
- Type
float
- [-180, 180] in degree
- depth¶
- Type
float
- mt¶
moment tensor
- Type
- source_time_function¶
SourceTimeFunction
- Type
- object¶
- centroid_time¶
centroid time.
- Type
datetime
- classmethod event_from_catalog(cat, event_id)¶
Build Event from GCMT catalog.
- Parameters
cat (
ndarray
) – event catalog.pydsm.utils.cmtcatalog.read_catalog() (see) –
event_id (str) – GCMT event identifier
(e.g. –
'201906291959A') –
- Returns
Event object.
- Return type
event (
Event
)
- get_azimuth(station)¶
Returns the source-station azimuth in degrees.
- Parameters
station (Station) – seismic station
- Returns
azimuth in degrees
- Return type
float
- get_backazimuth(station)¶
Returns the station-source backazimuth in degrees.
- Parameters
station (Station) – seismic station
- Returns
backazimuth in degrees
- Return type
float
- get_epicentral_distance(station)¶
Returns the epicentral distance in degrees.
- Parameters
station (Station) – station
- Returns
epicentral distance in degrees
- Return type
float
- get_epicentral_distance_(sta_lat, sta_lon)¶
Returns the epicentral distance in degrees.
- Parameters
sta_lat (float) – station latitude in degrees
sta_lon (float) – station longitude in degrees
- Returns
epicentral distance in degrees
- Return type
float
- class dsmpy.event.MomentTensor(Mrr, Mrt, Mrp, Mtt, Mtp, Mpp, Mw=None)¶
Represent a point-source moment tensor.
- classmethod from_dsm_array(mt_arr)¶
Create a MomentTensor from the mt array from DSM pinput (assume the DSM order for mt component).
- Parameters
mt_arr (
ndarray
) – moment tensor array- Returns
moment tensor
- Return type
mt (
MomentTensor
)