Changeset 1076 for SHX


Ignore:
Timestamp:
01/03/16 15:59:42 (4 years ago)
Author:
klaus
Message:

bugfixes

Location:
SHX/trunk/SeismicHandler/commands
Files:
2 edited

Legend:

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

    r1075 r1076  
    1414from obspy.taup import TauPyModel 
    1515 
     16DEG_TO_KM = 111.19 
    1617 
    1718provides = {"events": "events"} 
     
    125126                dist, az, baz = gps2DistAzimuth( orig.latitude, orig.longitude, 
    126127                    reflat, reflon ) 
     128                dist /= (1000.*DEG_TO_KM) 
    127129                arrivals = model.get_travel_times( source_depth_in_km=kmdepth, 
    128130                    distance_in_degree=dist, phase_list=[refphase] ) 
  • SHX/trunk/SeismicHandler/commands/fdsnws.py

    r1075 r1076  
    118118        for trc in st: 
    119119            trc.trim( reqtime, reqtime+reqlength ) 
    120             if len(trc.data) < 2: 
     120            minlth = int( reqlength / trc.stats.delta ) - 5 
     121            if len(trc.data) < minlth: 
    121122                empty.append( trc ) 
    122123        for trc in empty: 
Note: See TracChangeset for help on using the changeset viewer.