Changeset 419 for SHX/trunk/SeismicHandler/patches/ObsPy.py
- Timestamp:
- 07/21/2011 03:45:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SHX/trunk/SeismicHandler/patches/ObsPy.py
r417 r419 29 29 import numpy as np 30 30 import math 31 import time32 31 from obspy.core import Stream, Trace 33 32 from obspy.core.util import AttribDict 33 from SeismicHandler.utils.pubsub import pub as msgs 34 34 #from obspy.core import UTCDateTime 35 35 … … 77 77 norm : norm method: "window", "total" or value (effects y extension) 78 78 """ 79 msgs.sendMessage('log.debug.patches', 80 message=["Preparing plotting data...", self.id]) 81 79 82 if not timescale: 80 83 # use trace's total dimensions … … 113 116 self.shx.PlotData = pt.data.copy() 114 117 else: 115 print time.time(), "using cachedX data for", CacheTraceID[:3] 118 msgs.sendMessage('log.devel.patches', message=["using cachedX data for", 119 CacheTraceID[:3]]) 116 120 117 121 # use minmax approach if more than 4 data points per pixel … … 138 142 joined = np.append(joined, [remaining.min(), remaining.max()]) 139 143 140 print time.time(), "pixel_width", pixel_width, "minmax", "npts", npts, "dpp", dpp, "dimx", dimx, \ 141 "covered", covered, "len_rest", len(remaining), "data_len", \ 142 len(data), "joined", len(joined), "width", width 144 msgs.sendMessage( 145 'log.devel.patches', 146 message=[ 147 "pixel_width", pixel_width, "minmax", "npts", npts, "dpp", 148 dpp, "dimx", dimx, "covered", covered, "len_rest", 149 len(remaining), "data_len", len(data), "joined", len(joined), 150 "width", width 151 ] 152 ) 143 153 144 154 # At this stage the x-transformed data can be cached! If pixel_width … … 146 156 self.shx.PlotData = joined 147 157 148 print time.time(), width, height, norm, type(self.shx.PlotData) 158 msgs.sendMessage('log.devel.patches', 159 message=[width, height, norm, type(self.shx.PlotData)]) 149 160 150 161 if cachedY: 151 print time.time(), "using cachedY data for", CacheTraceID[3:] 162 msgs.sendMessage('log.devel.patches', 163 message=["using cachedY data for", CacheTraceID[3:]]) 152 164 return 153 165
Note: See TracChangeset
for help on using the changeset viewer.