##// END OF EJS Templates
Fix BLTR spectra reader
Juan C. Espinoza -
r1211:2e26717528e3
parent child
Show More
@@ -590,7 +590,9 class Spectra(JROData):
590 590 def getTimeInterval(self):
591 591
592 592 timeInterval = self.ippSeconds * self.nCohInt * self.nIncohInt * self.nProfiles * self.ippFactor
593
593 if self.nmodes:
594 return self.nmodes*timeInterval
595 else:
594 596 return timeInterval
595 597
596 598 def getPower(self):
@@ -1169,8 +1171,11 class PlotterData(object):
1169 1171
1170 1172 if 'spc' in self.data or 'rti' in self.data or 'cspc' in self.data or 'moments' in self.data:
1171 1173 self.data['noise'] = {}
1174 self.data['rti'] = {}
1172 1175 if 'noise' not in self.plottypes:
1173 1176 self.plottypes.append('noise')
1177 if 'rti' not in self.plottypes:
1178 self.plottypes.append('rti')
1174 1179
1175 1180 def shape(self, key):
1176 1181 '''
@@ -1244,7 +1249,7 class PlotterData(object):
1244 1249 self.nProfiles = dataOut.nProfiles
1245 1250
1246 1251 if plot == 'spc':
1247 self.data[plot] = buffer
1252 self.data['spc'] = buffer
1248 1253 elif plot == 'cspc':
1249 1254 self.data['spc'] = buffer[0]
1250 1255 self.data['cspc'] = buffer[1]
@@ -411,7 +411,7 class BLTRSpectraReader (ProcessingUnit):
411 411 self.dataOut.ippSeconds= 1/float(self.rheader.PRFhz)
412 412 self.dataOut.PRF=self.rheader.PRFhz
413 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 415 self.dataOut.timeZone = 0
416 416 self.dataOut.useLocalTime = False
417 417 self.dataOut.nmodes = 2
General Comments 0
You need to be logged in to leave comments. Login now