##// END OF EJS Templates
Bug fixed in reshape
Alexander Valdez -
r564:85e26bcbef30
parent child
Show More
@@ -207,7 +207,7 class VoltageProc(ProcessingUnit):
207 return 1
207 return 1
208
208
209
209
210 def filterByHeights(self, window, axis=1):
210 def filterByHeights(self, window, axis=2):
211
211
212 deltaHeight = self.dataOut.heightList[1] - self.dataOut.heightList[0]
212 deltaHeight = self.dataOut.heightList[1] - self.dataOut.heightList[0]
213
213
@@ -222,7 +222,7 class VoltageProc(ProcessingUnit):
222 Si la data es obtenida por bloques, dimension = [nChannels, nProfiles, nHeis]
222 Si la data es obtenida por bloques, dimension = [nChannels, nProfiles, nHeis]
223 """
223 """
224 buffer = self.dataOut.data[:, :, 0:self.dataOut.nHeights-r]
224 buffer = self.dataOut.data[:, :, 0:self.dataOut.nHeights-r]
225 buffer = buffer.reshape(self.dataOut.nChannels,self.dataOut.nHeights,self.dataOut.nHeights/window,window)
225 buffer = buffer.reshape(self.dataOut.nChannels,self.dataOut.nProfiles,self.dataOut.nHeights/window,window)
226 buffer = numpy.sum(buffer,3)
226 buffer = numpy.sum(buffer,3)
227
227
228 else:
228 else:
General Comments 0
You need to be logged in to leave comments. Login now