@@ -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. |
|
420 | self.dataOut.nProfiles = self.dataOut.data.shape[1] | |
421 |
|
421 | |||
422 | self.dataOut.flagNoData = False |
|
422 | self.dataOut.flagNoData = False | |
423 |
|
423 |
@@ -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 |
General Comments 0
You need to be logged in to leave comments.
Login now