forked from adjtomo/pysep
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgw_landslide_bondo.py
More file actions
66 lines (56 loc) · 2.61 KB
/
gw_landslide_bondo.py
File metadata and controls
66 lines (56 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import obspy
import read_event_obspy_file as reof
from getwaveform import *
def get_ev_info(ev_info,iex):
# ===============================================================
if iex == 0:
# DATA PREPARATION / PROCESSING
ev_info.idb = 1 # 1 = IRIS. % 20220223 calvizuri -- seems needed. not sure why I removed it previously. TODO revise conditional tests in getwaveform to deprecate this, if that's the goal
ev_info.use_catalog = 0
ev_info.ifmass_downloader = True
#ev_info.iris_federator = True
ev_info.ifverbose = True # output all proccessing steps
#keep stations with missing components and fill the missing component with a null trace (MPEN)
#Be sure to set the null component to 0 in the weight file when running cap
#ev_info.icreateNull = 1
ev_info.icreateNull = 0
ev_info.overwrite_ddir = 0
#RAW and ENZ files can be used when checking if you are receiving all the data ($PYSEP/check_getwaveform.bash)
ev_info.isave_raw = False
ev_info.isave_raw_processed = False
ev_info.isave_ENZ = False
# EVENT INFO
ev_info.otime = obspy.UTCDateTime("2017-08-23T07:30:00")
ev_info.elon = 9.60
ev_info.elat = 46.29
ev_info.edep = 0
ev_info.emag = 4.6
ev_info.min_dist = 0
ev_info.max_dist = 1000
ev_info.tbefore_sec = 100
ev_info.tafter_sec = 1000
ev_info.channel = 'BH?,HH?'
ev_info.resample_TF = True
ev_info.resample_freq = 20
ev_info.scale_factor = 100
#ev_info.phase_window = False
#-------for specfem------------
#ev_info.tbefore_sec = 0
#ev_info.resample_TF = False
#ev_info.scale_factor = 1
#ev_info.outformat = 'DISP'
#------------------------------
##-----------------------------------------------------------
## IMS REQUEST
## Be sure to specify each IMS station. wildcard '*' is not implemented.
#ev_info.idb = 0
#ev_info.ifmass_downloader = False
#ev_info.client_name = 'IMS-SMP'
##ev_info.station = 'FINES'
##ev_info.station = 'I37NO'
#ev_info.channel = '*H*' # DEFAULT. be sure to include SH for IMS data (vertical sensors)
# # do not use '*' bc it finds BDF LDA data with no instrument response.
##ev_info.channel = 'BH*,HH*,SH*,MH*' # 2022-09-12 doesnt' work.
#ev_info.icreateNull = 1 # NOTE USE. Else vertical-only stations will not be saved.
##-----------------------------------------------------------
return(ev_info)