-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheq_params.py
30 lines (23 loc) · 1.98 KB
/
eq_params.py
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
# this needs to be rewritten as a .json file, and imported accordingly...
import math
import datetime as dtm
import pytz
kmldir='kml'
catdir='kml'
lat2km=111.1
deg2rad = math.pi/180.
tz_utc = pytz.timezone('UTC')
#
# some parameter sets for important earthquakes:
#
taiwan_2016 = {'t_now':dtm.datetime.now(pytz.timezone('UTC')), 'gridsize':.1, 'contres':3, 'mc':4.5, 'kmldir':'kml_taiwan2016', 'catdir':'kml_taiwan_2016', 'fnameroot':'taiwan_2016', 'catlen':10.0*365.0, 'doplot':False, 'lons':[119.3, 122.5], 'lats':[22., 26.5], 'bigquakes':None, 'bigmag':5.50, 'eqtheta':None, 'eqeps':None, 'fitfactor':5.0, 'cmfnum':0, 'fignum':1, 'contour_intervals':None, 'etas_range_factor':15.0, 'etas_range_padding':1.0}
tohoku_ETAS_prams = {'t_now':dtm.datetime.now(pytz.timezone('UTC')), 'gridsize':.1, 'contres':3, 'mc':4.5, 'kmldir':kmldir, 'catdir':kmldir, 'fnameroot':'tohoku', 'catlen':5.0*365.0, 'doplot':False, 'lons':[135., 146.], 'lats':[30., 41.5], 'bigquakes':None, 'bigmag':7.50, 'eqtheta':None, 'eqeps':None, 'fitfactor':5.0, 'cmfnum':0, 'fignum':1, 'contour_intervals':None}
#
chengdu_ETAS_prams = {'t_now':dtm.datetime.now(pytz.timezone('UTC')), 'gridsize':.1, 'contres':5, 'mc':4.5, 'kmldir':kmldir, 'catdir':kmldir, 'fnameroot':'chengdu', 'catlen':5.0*365.0, 'doplot':False, 'lons':[100.367, 106.367], 'lats':[31.06-3., 31.06+3.], 'bigquakes':None, 'bigmag':6.7, 'eqtheta':None, 'eqeps':None, 'fitfactor':5.0, 'cmfnum':0, 'fignum':1, 'contour_intervals':None}
#'lat_center':31.021, 'lon_center':103.367
#
nepal_epi_lon = 84.698
nepal_epi_lat = 28.175
nepal_dlon = 5.
nepal_dlat = 5.
nepal_ETAS_prams = {'mag':7.8, 't_now':None, 'gridsize':.1, 'contres':5, 'mc':3.5, 'kmldir':kmldir, 'catdir':kmldir, 'fnameroot':'nepal', 'catlen':5.0*365.0, 'doplot':False, 'lons':[nepal_epi_lon-nepal_dlon, nepal_epi_lon+nepal_dlon], 'lats':[nepal_epi_lat-nepal_dlat, nepal_epi_lat+nepal_dlat], 'bigquakes':None, 'bigmag':7.00, 'eqtheta':None, 'eqeps':None, 'fitfactor':5.0, 'cmfnum':0, 'fignum':1, 'contour_intervals':None}