Changeset 1078
- Timestamp:
- 05.01.2016 22:53:36 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SHX/trunk/SeismicHandler/commands/fdsnws.py
r1077 r1078 112 112 client = Client(fdsnadr) 113 113 st = client.get_waveforms(netcode, station, location, channel, 114 reqtime, (reqtime+reqlength) )114 reqtime, (reqtime+reqlength) ) 115 115 116 # trim traces (obviouslycomplete records returned)117 empty = []118 for trc in st:119 trc.trim( reqtime, reqtime+reqlength )120 minlth = int( reqlength / trc.stats.delta ) - 5121 if len(trc.data) < minlth:122 empty.append( trc )123 for trc in empty:124 st.remove( trc )116 # trim traces (obviously unaligned, complete records returned) 117 empty = [] 118 for trc in st: 119 trc.trim( reqtime, reqtime+reqlength ) 120 minlth = int( reqlength / trc.stats.delta ) - 5 121 if len(trc.data) < minlth: 122 empty.append( trc ) 123 for trc in empty: 124 st.remove( trc ) 125 125 126 126 if not st:
Note: See TracChangeset
for help on using the changeset viewer.