@@ -590,8 +590,10 class Spectra(JROData): | |||||
590 | def getTimeInterval(self): |
|
590 | def getTimeInterval(self): | |
591 |
|
591 | |||
592 | timeInterval = self.ippSeconds * self.nCohInt * self.nIncohInt * self.nProfiles * self.ippFactor |
|
592 | timeInterval = self.ippSeconds * self.nCohInt * self.nIncohInt * self.nProfiles * self.ippFactor | |
593 |
|
593 | if self.nmodes: | ||
594 | return timeInterval |
|
594 | return self.nmodes*timeInterval | |
|
595 | else: | |||
|
596 | return timeInterval | |||
595 |
|
597 | |||
596 | def getPower(self): |
|
598 | def getPower(self): | |
597 |
|
599 | |||
@@ -1169,8 +1171,11 class PlotterData(object): | |||||
1169 |
|
1171 | |||
1170 | if 'spc' in self.data or 'rti' in self.data or 'cspc' in self.data or 'moments' in self.data: |
|
1172 | if 'spc' in self.data or 'rti' in self.data or 'cspc' in self.data or 'moments' in self.data: | |
1171 | self.data['noise'] = {} |
|
1173 | self.data['noise'] = {} | |
|
1174 | self.data['rti'] = {} | |||
1172 | if 'noise' not in self.plottypes: |
|
1175 | if 'noise' not in self.plottypes: | |
1173 | self.plottypes.append('noise') |
|
1176 | self.plottypes.append('noise') | |
|
1177 | if 'rti' not in self.plottypes: | |||
|
1178 | self.plottypes.append('rti') | |||
1174 |
|
1179 | |||
1175 | def shape(self, key): |
|
1180 | def shape(self, key): | |
1176 | ''' |
|
1181 | ''' | |
@@ -1244,7 +1249,7 class PlotterData(object): | |||||
1244 | self.nProfiles = dataOut.nProfiles |
|
1249 | self.nProfiles = dataOut.nProfiles | |
1245 |
|
1250 | |||
1246 | if plot == 'spc': |
|
1251 | if plot == 'spc': | |
1247 |
self.data[ |
|
1252 | self.data['spc'] = buffer | |
1248 | elif plot == 'cspc': |
|
1253 | elif plot == 'cspc': | |
1249 | self.data['spc'] = buffer[0] |
|
1254 | self.data['spc'] = buffer[0] | |
1250 | self.data['cspc'] = buffer[1] |
|
1255 | self.data['cspc'] = buffer[1] |
@@ -411,7 +411,7 class BLTRSpectraReader (ProcessingUnit): | |||||
411 | self.dataOut.ippSeconds= 1/float(self.rheader.PRFhz) |
|
411 | self.dataOut.ippSeconds= 1/float(self.rheader.PRFhz) | |
412 | self.dataOut.PRF=self.rheader.PRFhz |
|
412 | self.dataOut.PRF=self.rheader.PRFhz | |
413 | self.dataOut.nFFTPoints=self.rheader.nProfiles |
|
413 | self.dataOut.nFFTPoints=self.rheader.nProfiles | |
414 | self.dataOut.utctime=self.rheader.nUtime |
|
414 | self.dataOut.utctime = self.rheader.nUtime + self.rheader.nMilisec/1000. | |
415 | self.dataOut.timeZone = 0 |
|
415 | self.dataOut.timeZone = 0 | |
416 | self.dataOut.useLocalTime = False |
|
416 | self.dataOut.useLocalTime = False | |
417 | self.dataOut.nmodes = 2 |
|
417 | self.dataOut.nmodes = 2 |
General Comments 0
You need to be logged in to leave comments.
Login now