|
25 | 25 | tohoku_prams = {'mc':5.0, 'todt':mhp.dtm.datetime.now(mhp.pytz.timezone('UTC')), 'winlen':None, 'avlen':None, 'targmag':9.0, 'ndithers':10, 'nContours':nContours1, 'bigmag':7.0, 'lons':[135., 148.5], 'lats':[30., 45.25], 'refreshcat':True, 'dt0':mhp.dtm.datetime(1990,1,1, tzinfo=mhp.pytz.timezone('UTC')), 'catname':'cats/tohoku_rfits.cat', 'mt':7.6}
|
26 | 26 |
|
27 | 27 | def doTohoku():
|
28 |
| - A = get_rbratios_tohoku() |
| 28 | + A = get_rbratios_tohoku() # returns a rbratios() set like [[index, dtm, r>, r<, ratio, <ratio>]] |
29 | 29 | B = get_ratio_fits(ratios=A, Nfits=[22])
|
30 | 30 | C = plot_ratio_fits(B, new_figs=False, fignum0=2)
|
31 | 31 | #
|
32 | 32 | return (A,B,C)
|
33 | 33 |
|
| 34 | +def doSumatra(): |
| 35 | + # get a bunch of sumatra fits from rbTectoFigs. we'll want analysis on 0, 2, 3 |
| 36 | + sumatra_catalog = rfp.sumatraQuad() |
| 37 | + # |
| 38 | + interesting_quads = [0,2,3] |
| 39 | + |
| 40 | + # |
| 41 | + mev = sumatra_catalog.getMainEvent(thiscat=sumatra_catalog.getcat(0)) |
| 42 | + interval_len = rfp.winlen(m=9.1, mc=sumatra_catalog.mc, mt=7.6, doInt=True) |
| 43 | + #rbratios = sumatra_catalog.getNRBratios(intervals=None, winlen=1, delta_t=1, reverse=False, catnum=0) |
| 44 | + rbratios = sumatra_catalog.plotIntervalRatiosAx(winlen=interval_len, cat=sumatra_catalog.getcat(1), hitThreshold=1.0, bigmag=9.0, thisAx=None, ratios=None, delta_t=1, avlen=max(1, int(interval_len/10)), mainEv=mev, logZ=None, rbLegLoc=0, reverse=False) |
| 45 | + |
| 46 | + rbratio_fits = get_ratio_fits(ratios=rbratios, Nfits=[rfp.winlen(m=9.1, mc=sumatra_catalog.mc, mt=7.6, doInt=True)]) |
| 47 | + |
| 48 | + rbf_plot=None |
| 49 | + #rbf_plot = plot_ratio_fits(rbratio_fits, new_figs=False, fignum0=11) |
| 50 | + # |
| 51 | + return (rbratios, rbratio_fits, rbf_plot) |
| 52 | + # |
| 53 | +# |
34 | 54 | def get_rbratios_tohoku(mc=5.0, todt=mhp.dtm.datetime.now(mhp.pytz.timezone('UTC')), winlen=None, avlen=None, targmag=9.0, ndithers=10, nContours=nContours1, bigmag=7.0, lons=[135., 148.5], lats=[30., 45.25], refreshcat=True, dt0=mhp.dtm.datetime(1990,1,1, tzinfo=mhp.pytz.timezone('UTC')), catname='cats/tohoku_rfits.cat', mt=7.6):
|
35 | 55 | #
|
36 | 56 | # fetch and return a standard rb-ratio set.
|
|
0 commit comments