Esempio n. 1
0
def updateTextActivityFaultBackgr(cls, parameters):
    
    central_A = utils.centralValueOfList(parameters['activity_a'])
    central_b = utils.centralValueOfList(parameters['activity_b'])
    
    central_A_below = utils.centralValueOfList(parameters['activity_below_a'])
    central_b_below = utils.centralValueOfList(parameters['activity_below_b'])
    
    central_A_above = utils.centralValueOfList(parameters['activity_above_a'])
    central_b_above = utils.centralValueOfList(parameters['activity_above_b'])

    text = ''
    text += "<b>Activity</b><br/>"
    text += "<b>(RM)</b> all EQ: a: %.3f, b: %s, A: %.3f (%s EQ)<br/>" % (
        central_A,
        central_b,
        atticivy.aValue2activity(central_A, central_b, 
            parameters['activity_mmin']), 
        parameters['eq_count'])
    text += "<b>(RM)</b> below M%s: a: %.3f, b: %s, A: %.3f (%s EQ)<br/>" % (
        parameters['activity_m_threshold'],
        central_A_below,
        central_b_below,
        atticivy.aValue2activity(central_A_below, central_b_below, 
            parameters['activity_mmin']), 
        parameters['eq_count_below'])
    text += "<b>(RM)</b> above M%s: a: %.3f, b: %s, A: %.3f (%s EQ)<br/>" % (
        parameters['activity_m_threshold'],
        central_A_above,
        central_b_above,
        atticivy.aValue2activity(central_A_above, central_b_above, 
            parameters['activity_mmin']), 
        parameters['eq_count_above'])
        
    text += \
        "<b>(ML)</b> all EQ: a: %.3f, b: %.3f (%s EQ, %s above "\
        "Mc %.1f)<br/>" % (
            parameters['ml_a'], 
            parameters['ml_b'], 
            parameters['eq_count'],
            parameters['ml_magctr'],
            parameters['ml_mc'])
    text += "Mmin: %s, Mmax: %s, %s faults with area of %s km<sup>2</sup> in "\
    "background zone of %s km<sup>2</sup>" % (
        parameters['activity_mmin'],
        parameters['mmax'], 
        parameters['fault_count'], 
        int(parameters['area_fault_sqkm']),
        int(parameters['area_background_sqkm']))
    cls.textActivityFaultBackgr.setText(text)
Esempio n. 2
0
def updateTextActivityFault(cls, parameters):

    text = ''
    text += "<b>Activity</b><br/>"
    text += "<b>(RM)</b> a: %.3f b: %.3f A: %.3f (%s km buffer)<br/>" % (
        parameters['activity_bz_a'],
        parameters['activity_bz_b'], 
        atticivy.aValue2activity(parameters['activity_bz_a'], 
            parameters['activity_bz_b']), 
        int(momentrate.BUFFER_AROUND_FAULT_ZONE_KM))
        
    text += "<b>(RM)</b> a: %.3f b: %.3f A: %.3f (FBZ, ID %s)<br/>" % (
        parameters['activity_fbz_a'], 
        parameters['activity_fbz_b'], 
        atticivy.aValue2activity(parameters['activity_fbz_a'], 
            parameters['activity_fbz_b']), 
        parameters['fbz_id'])
        
    text += "<b>(RM)</b> a: %.3f b: %.3f A: %.3f (FBZ, above M%s)<br/>" % (
        parameters['activity_fbz_at_a'],  
        parameters['activity_fbz_at_b'],
        atticivy.aValue2activity(parameters['activity_fbz_at_a'], 
            parameters['activity_fbz_at_b']),
        parameters['activity_m_threshold'])
        
    text += \
        "<b>(from slip)</b> a: %.3f (min), %.3f (max), b: %.3f (FBZ)<br/>" % (
        parameters['activity_rec_a_min'],
        parameters['activity_rec_a_max'],
        parameters['activity_fbz_b'])
        
    text += \
        "<b>(ML)</b> a: %.3f, b: %.3f (%s EQ, %s above Mc %.1f, in "\
        "%s km<sup>2</sup> FBZ)<br/>" % (
            parameters['ml_a'], 
            parameters['ml_b'], 
            parameters['eq_count_fbz'],
            parameters['ml_magctr'],
            parameters['ml_mc'],
            int(parameters['area_fbz_sqkm']))
            
    text += "%s EQ in %s km<sup>2</sup> (buffer zone)<br/>" % (
        parameters['eq_count_bz'],
        int(parameters['area_bz_sqkm']))
        
    text += "Mmax: %s (background), %s (fault) " % (
        parameters['mmax'],
        parameters['mmax_fault'])
    cls.textActivityFault.setText(text)
Esempio n. 3
0
def updateTextActivityFaultBackgr(cls, parameters):

    central_A = utils.centralValueOfList(parameters['activity_a'])
    central_b = utils.centralValueOfList(parameters['activity_b'])

    central_A_below = utils.centralValueOfList(parameters['activity_below_a'])
    central_b_below = utils.centralValueOfList(parameters['activity_below_b'])

    central_A_above = utils.centralValueOfList(parameters['activity_above_a'])
    central_b_above = utils.centralValueOfList(parameters['activity_above_b'])

    text = ''
    text += "<b>Activity</b><br/>"
    text += "<b>(RM)</b> all EQ: a: %.3f, b: %s, A: %.3f (%s EQ)<br/>" % (
        central_A, central_b,
        atticivy.aValue2activity(
            central_A, central_b,
            parameters['activity_mmin']), parameters['eq_count'])
    text += "<b>(RM)</b> below M%s: a: %.3f, b: %s, A: %.3f (%s EQ)<br/>" % (
        parameters['activity_m_threshold'], central_A_below, central_b_below,
        atticivy.aValue2activity(
            central_A_below, central_b_below,
            parameters['activity_mmin']), parameters['eq_count_below'])
    text += "<b>(RM)</b> above M%s: a: %.3f, b: %s, A: %.3f (%s EQ)<br/>" % (
        parameters['activity_m_threshold'], central_A_above, central_b_above,
        atticivy.aValue2activity(
            central_A_above, central_b_above,
            parameters['activity_mmin']), parameters['eq_count_above'])

    text += \
        "<b>(ML)</b> all EQ: a: %.3f, b: %.3f (%s EQ, %s above "\
        "Mc %.1f)<br/>" % (
            parameters['ml_a'],
            parameters['ml_b'],
            parameters['eq_count'],
            parameters['ml_magctr'],
            parameters['ml_mc'])
    text += "Mmin: %s, Mmax: %s, %s faults with area of %s km<sup>2</sup> in "\
    "background zone of %s km<sup>2</sup>" % (
        parameters['activity_mmin'],
        parameters['mmax'],
        parameters['fault_count'],
        int(parameters['area_fault_sqkm']),
        int(parameters['area_background_sqkm']))
    cls.textActivityFaultBackgr.setText(text)
Esempio n. 4
0
def updateTextActivityFault(cls, parameters):

    text = ''
    text += "<b>Activity</b><br/>"
    text += "<b>(RM)</b> a: %.3f b: %.3f A: %.3f (%s km buffer)<br/>" % (
        parameters['activity_bz_a'], parameters['activity_bz_b'],
        atticivy.aValue2activity(parameters['activity_bz_a'],
                                 parameters['activity_bz_b']),
        int(momentrate.BUFFER_AROUND_FAULT_ZONE_KM))

    text += "<b>(RM)</b> a: %.3f b: %.3f A: %.3f (FBZ, ID %s)<br/>" % (
        parameters['activity_fbz_a'], parameters['activity_fbz_b'],
        atticivy.aValue2activity(
            parameters['activity_fbz_a'],
            parameters['activity_fbz_b']), parameters['fbz_id'])

    text += "<b>(RM)</b> a: %.3f b: %.3f A: %.3f (FBZ, above M%s)<br/>" % (
        parameters['activity_fbz_at_a'], parameters['activity_fbz_at_b'],
        atticivy.aValue2activity(parameters['activity_fbz_at_a'],
                                 parameters['activity_fbz_at_b']),
        parameters['activity_m_threshold'])

    text += \
        "<b>(from slip)</b> a: %.3f (min), %.3f (max), b: %.3f (FBZ)<br/>" % (
        parameters['activity_rec_a_min'],
        parameters['activity_rec_a_max'],
        parameters['activity_fbz_b'])

    text += \
        "<b>(ML)</b> a: %.3f, b: %.3f (%s EQ, %s above Mc %.1f, in "\
        "%s km<sup>2</sup> FBZ)<br/>" % (
            parameters['ml_a'],
            parameters['ml_b'],
            parameters['eq_count_fbz'],
            parameters['ml_magctr'],
            parameters['ml_mc'],
            int(parameters['area_fbz_sqkm']))

    text += "%s EQ in %s km<sup>2</sup> (buffer zone)<br/>" % (
        parameters['eq_count_bz'], int(parameters['area_bz_sqkm']))

    text += "Mmax: %s (background), %s (fault) " % (parameters['mmax'],
                                                    parameters['mmax_fault'])
    cls.textActivityFault.setText(text)
Esempio n. 5
0
def updateTextActivityArea(cls, parameters):

    central_A = utils.centralValueOfList(parameters['activity_a'])
    central_b = utils.centralValueOfList(parameters['activity_b'])

    text = ''
    text += "<b>Activity</b><br/>"
    text += "<b>(RM)</b> a: %.3f, b: %s, A: %.3f<br/>" % (
        central_A,
        central_b,
        atticivy.aValue2activity(central_A, central_b,
                                 parameters['activity_mmin']),
    )
    text += "<b>(ML)</b> a: %.3f, b: %.3f (Mc %.1f)<br/>" % (
        parameters['ml_a'], parameters['ml_b'], parameters['ml_mc'])
    text += "Mmin: %s, Mmax: %s, %s EQ (%s above Mc) in %s km<sup>2</sup> " \
            "(area zone)" % (
        parameters['activity_mmin'],
        parameters['mmax'],
        parameters['eq_count'],
        parameters['ml_magctr'],
        int(parameters['area_sqkm']))
    cls.textActivityArea.setText(text)
Esempio n. 6
0
def updateTextActivityArea(cls, parameters):
    
    central_A = utils.centralValueOfList(parameters['activity_a'])
    central_b = utils.centralValueOfList(parameters['activity_b'])
    
    text = ''
    text += "<b>Activity</b><br/>"
    text += "<b>(RM)</b> a: %.3f, b: %s, A: %.3f<br/>" % (
        central_A,
        central_b,
        atticivy.aValue2activity(central_A, central_b, 
            parameters['activity_mmin']), )
    text += "<b>(ML)</b> a: %.3f, b: %.3f (Mc %.1f)<br/>" % (
        parameters['ml_a'], 
        parameters['ml_b'],
        parameters['ml_mc'])
    text += "Mmin: %s, Mmax: %s, %s EQ (%s above Mc) in %s km<sup>2</sup> " \
            "(area zone)" % (
        parameters['activity_mmin'],
        parameters['mmax'],
        parameters['eq_count'],
        parameters['ml_magctr'],
        int(parameters['area_sqkm']))
    cls.textActivityArea.setText(text)