From 85e26bcbef30a5ab9a628e2c9852b0b67d4a9f1b 2015-04-06 17:35:02 From: Alexander Valdez Date: 2015-04-06 17:35:02 Subject: [PATCH] Bug fixed in reshape --- diff --git a/schainpy/model/proc/jroproc_voltage.py b/schainpy/model/proc/jroproc_voltage.py index 234c1cf..1014d0a 100644 --- a/schainpy/model/proc/jroproc_voltage.py +++ b/schainpy/model/proc/jroproc_voltage.py @@ -207,7 +207,7 @@ class VoltageProc(ProcessingUnit): return 1 - def filterByHeights(self, window, axis=1): + def filterByHeights(self, window, axis=2): deltaHeight = self.dataOut.heightList[1] - self.dataOut.heightList[0] @@ -222,7 +222,7 @@ class VoltageProc(ProcessingUnit): Si la data es obtenida por bloques, dimension = [nChannels, nProfiles, nHeis] """ buffer = self.dataOut.data[:, :, 0:self.dataOut.nHeights-r] - buffer = buffer.reshape(self.dataOut.nChannels,self.dataOut.nHeights,self.dataOut.nHeights/window,window) + buffer = buffer.reshape(self.dataOut.nChannels,self.dataOut.nProfiles,self.dataOut.nHeights/window,window) buffer = numpy.sum(buffer,3) else: