##// END OF EJS Templates
-Function to interpolate corrupted profiles
Julio Valdez -
r836:0804a6804e7a
parent child
Show More
@@ -417,7 +417,7 class VoltageReader(JRODataReader, ProcessingUnit):
417 self.profileIndex = blockIndex
417 self.profileIndex = blockIndex
418
418
419 self.dataOut.flagDataAsBlock = True
419 self.dataOut.flagDataAsBlock = True
420 self.dataOut.nProfiles = self.selBlocksize
420 self.dataOut.nProfiles = self.dataOut.data.shape[1]
421
421
422 self.dataOut.flagNoData = False
422 self.dataOut.flagNoData = False
423
423
@@ -18,7 +18,7 class VoltageProc(ProcessingUnit):
18 def run(self):
18 def run(self):
19 if self.dataIn.type == 'AMISR':
19 if self.dataIn.type == 'AMISR':
20 self.__updateObjFromAmisrInput()
20 self.__updateObjFromAmisrInput()
21
21
22 if self.dataIn.type == 'Voltage':
22 if self.dataIn.type == 'Voltage':
23 self.dataOut.copy(self.dataIn)
23 self.dataOut.copy(self.dataIn)
24
24
@@ -293,6 +293,20 class VoltageProc(ProcessingUnit):
293
293
294 return 1
294 return 1
295
295
296 def interpolateHeights(self, topLim, botLim):
297 #69 al 72 para julia
298 #82-84 para meteoros
299 if len(numpy.shape(self.dataOut.data))==2:
300 sampInterp = (self.dataOut.data[:,botLim-1] + self.dataOut.data[:,topLim+1])/2
301 sampInterp = numpy.transpose(numpy.tile(sampInterp,(topLim-botLim + 1,1)))
302 self.dataOut.data[:,botLim:limSup+1] = sampInterp
303 else:
304 sampInterp = (self.dataOut.data[:,:,botLim-1] + self.dataOut.data[:,:,topLim+1])/2
305 nInt = topLim - botLim + 1
306 for i in range(nInt):
307 self.dataOut.data[:,:,botLim+i] = sampInterp
308 # import collections
309
296 class CohInt(Operation):
310 class CohInt(Operation):
297
311
298 isConfig = False
312 isConfig = False
@@ -1124,7 +1138,7 class CombineProfiles(Operation):
1124 dataOut.profileIndex = profileIndex
1138 dataOut.profileIndex = profileIndex
1125
1139
1126 dataOut.ippSeconds *= n
1140 dataOut.ippSeconds *= n
1127
1141
1128 # import collections
1142 # import collections
1129 # from scipy.stats import mode
1143 # from scipy.stats import mode
1130 #
1144 #
General Comments 0
You need to be logged in to leave comments. Login now