Changeset 1034 for SHX


Ignore:
Timestamp:
19.08.2015 21:46:41 (5 years ago)
Author:
klaus
Message:

cleaned new command sort_by_distance from debug output

File:
1 edited

Legend:

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

    r1033 r1034  
    1010from SeismicHandler.basics.error import ShxError 
    1111from SeismicHandler.modules.stations import Stations 
    12 from obspy.core import UTCDateTime 
    1312from obspy.core.util.geodetics import gps2DistAzimuth 
    1413 
     
    4847                t.stats.location, t.stats.channel) 
    4948            metatime = t.stats.starttime + (t.stats.endtime-t.stats.starttime)/2 
    50             print "dbg: metatime", metatime 
    5149            try: 
    5250                r = stations[(sname, metatime)] 
     
    5957                continue 
    6058            dist, az, baz = gps2DistAzimuth( slat, slon, lat, lon ) 
    61             #print "dbg:", sname, dist 
    6259            t.shx._parent.remove(t) 
    6360            affected.append( (t,dist) ) 
     
    6562         
    6663        affected.sort( key=lambda tinfo: tinfo[1] ) 
    67         #print "dbg:", affected 
    68         #print "dbg:", zip(*affected)[0] 
    6964        dest = 0 
    7065        Traces.insert(dest, list(zip(*affected)[0])) 
Note: See TracChangeset for help on using the changeset viewer.