Changeset 1212 for SHX


Ignore:
Timestamp:
04.01.2017 22:44:37 (3 years ago)
Author:
klaus
Message:

scripts to determine magnitude thresholds

Location:
SHX/trunk/SeismicHandler
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/commands/magnitude.py

    r1211 r1212  
    297297                    m = self.determineMagnitude( trc, magtype, stime, etime, 
    298298                        degdist ) 
     299                    if m == None: 
     300                        print "dbg: problem with mag (sta,start,end,degdist):",\ 
     301                            trc.stats.station, stime, etime, degdist 
     302                        continue 
    299303                    if mmax == None or m > mmax: 
    300304                        mmax = m 
     
    505509         */ 
    506510    """ 
     511    if math.isnan(ampl) or ampl == None or ampl <= 0.: 
     512        return None 
    507513    if distance < MAGN_ML_MIN_DIST or distance >= MAGN_ML_MAX_DIST: 
    508514        return None 
Note: See TracChangeset for help on using the changeset viewer.