@@ -388,7 +388,12 class VoltageReader(JRODataReader, ProcessingUnit): | |||
|
388 | 388 | Return a block |
|
389 | 389 | """ |
|
390 | 390 | if self.selBlocksize == None: self.selBlocksize = self.dataOut.nProfiles |
|
391 | if self.selBlocktime != None: self.selBlocksize = int(self.dataOut.nProfiles*round(self.selBlocktime/(self.dataOut.ippSeconds*self.dataOut.nProfiles))) | |
|
391 | if self.selBlocktime != None: | |
|
392 | if self.dataOut.nCohInt is not None: | |
|
393 | nCohInt = self.dataOut.nCohInt | |
|
394 | else: | |
|
395 | nCohInt = 1 | |
|
396 | self.selBlocksize = int(self.dataOut.nProfiles*round(self.selBlocktime/(nCohInt*self.dataOut.ippSeconds*self.dataOut.nProfiles))) | |
|
392 | 397 | |
|
393 | 398 | self.dataOut.data = self.datablock[:,self.profileIndex:self.profileIndex+self.selBlocksize,:] |
|
394 | 399 | self.profileIndex += self.selBlocksize |
General Comments 0
You need to be logged in to leave comments.
Login now