pytomoatt.src_rec¶
- class pytomoatt.src_rec.SrcRec(fname: str, src_only=False)[source]¶
I/O for source <–> receiver file
- Parameters:
fname (str) – Path to src_rec file
src_only (bool, optional) – Whether to read only source information, defaults to False
Attributes
Return a DataFrame of all sources |
|
Return a DataFrame of all receivers |
|
Return a DataFrame of all common sources |
|
Return a DataFrame of all common receivers |
Method
Add random noise on travel time |
|
Append another SrcRec object to the current one |
|
Weighting sources and receivers by number in each subgrid |
|
Calculate epicentral distance and azimuth for each receiver |
|
Return a copy of SrcRec object |
|
count events per station |
|
check and count how many events are duplicated, under given threshold of distance, depth, and time. |
|
Read and convert source and station information from receiver function data calculated by Seispy |
|
Calculating geographical weights for sources |
|
Generate double difference data |
|
Plot source and receivers for preview |
|
Read source <--> receiver file to pandas.DataFrame |
|
remove rec_points by new src_points |
|
Remove specified receivers |
|
remove src_points by new receivers |
|
Reset index of source and receivers. |
|
Rotate sources and receivers around a center point |
|
Select sources with azimuthal gap greater and equal than a number |
|
Select sources and station in a box region |
|
select sources and station in a time range |
|
Select sources in a range of depth |
|
Select stations in a range of distance |
|
select interested phase and remove others |
|
select sources with recievers greater and equal than a number :param num_rec: threshold of minimum receiver number :type num_rec: int |
|
select one event in each subgrid |
|
Convert sources and receivers to UTM coordinates |
|
Update |
|
update num_rec in src_points by current rec_points |
|
Write sources and receivers to ASCII file for TomoATT |
|
Write receivers to a txt file. |
|
Write sources to a txt file. |