@@ -137,38 +137,70 class Scope(Figure): | |||
|
137 | 137 | raise ValueError, "Channel %d is not in dataOut.channelList" |
|
138 | 138 | channelIndexList.append(dataOut.channelList.index(channel)) |
|
139 | 139 | |
|
140 | x = dataOut.heightList | |
|
141 | y = dataOut.data[channelIndexList,:] * numpy.conjugate(dataOut.data[channelIndexList,:]) | |
|
142 | y = y.real | |
|
143 | ||
|
144 | 140 | thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.getTimeRange()[0]) |
|
145 | 141 | |
|
146 | if type == "power": | |
|
147 | self.plot_power(dataOut.heightList, | |
|
148 | dataOut.data, | |
|
149 |
|
|
|
150 | channelIndexList, | |
|
151 | thisDatetime, | |
|
152 | wintitle, | |
|
153 | show, | |
|
154 |
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
|
158 | ||
|
159 | if type == "iq": | |
|
160 | self.plot_iq(dataOut.heightList, | |
|
161 |
|
|
|
162 |
|
|
|
163 |
|
|
|
164 | thisDatetime, | |
|
165 |
|
|
|
166 | show, | |
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
142 | if dataOut.flagDataAsBlock: | |
|
143 | ||
|
144 | for i in range(dataOut.nProfiles): | |
|
145 | ||
|
146 | wintitle1 = wintitle + " [Profile = %d] " %i | |
|
147 | ||
|
148 | if type == "power": | |
|
149 | self.plot_power(dataOut.heightList, | |
|
150 | dataOut.data[:,i,:], | |
|
151 | id, | |
|
152 | channelIndexList, | |
|
153 | thisDatetime, | |
|
154 | wintitle1, | |
|
155 | show, | |
|
156 | xmin, | |
|
157 | xmax, | |
|
158 | ymin, | |
|
159 | ymax) | |
|
160 | ||
|
161 | if type == "iq": | |
|
162 | self.plot_iq(dataOut.heightList, | |
|
163 | dataOut.data[:,i,:], | |
|
164 | id, | |
|
165 | channelIndexList, | |
|
166 | thisDatetime, | |
|
167 | wintitle1, | |
|
168 | show, | |
|
169 | xmin, | |
|
170 | xmax, | |
|
171 | ymin, | |
|
172 | ymax) | |
|
173 | ||
|
174 | self.draw() | |
|
171 | 175 | |
|
176 | else: | |
|
177 | wintitle += " [Profile = %d] " %dataOut.profileIndex | |
|
178 | ||
|
179 | if type == "power": | |
|
180 | self.plot_power(dataOut.heightList, | |
|
181 | dataOut.data, | |
|
182 | id, | |
|
183 | channelIndexList, | |
|
184 | thisDatetime, | |
|
185 | wintitle, | |
|
186 | show, | |
|
187 | xmin, | |
|
188 | xmax, | |
|
189 | ymin, | |
|
190 | ymax) | |
|
191 | ||
|
192 | if type == "iq": | |
|
193 | self.plot_iq(dataOut.heightList, | |
|
194 | dataOut.data, | |
|
195 | id, | |
|
196 | channelIndexList, | |
|
197 | thisDatetime, | |
|
198 | wintitle, | |
|
199 | show, | |
|
200 | xmin, | |
|
201 | xmax, | |
|
202 | ymin, | |
|
203 | ymax) | |
|
172 | 204 | |
|
173 | 205 | self.draw() |
|
174 | 206 |
General Comments 0
You need to be logged in to leave comments.
Login now