##// END OF EJS Templates
The Spectra-1d Plot shows the normalized power.
Daniel Valdez -
r496:c1e2ee842644
parent child
Show More
@@ -578,6 +578,17 class SpectraHeis(Spectra):
578
578
579 self.blocksize = None
579 self.blocksize = None
580
580
581 def getNormFactor(self):
582 pwcode = 1
583 if self.flagDecodeData:
584 pwcode = numpy.sum(self.code[0]**2)
585
586 normFactor = self.nIncohInt*self.nCohInt*pwcode
587
588 return normFactor
589
590 normFactor = property(getNormFactor, "I'm the 'getNormFactor' property.")
591
581 class Fits:
592 class Fits:
582
593
583 heightList = None
594 heightList = None
@@ -114,7 +114,9 class SpectraHeisScope(Figure):
114 #x= x/(10000.0)
114 #x= x/(10000.0)
115 # y = dataOut.data[channelIndexList,:] * numpy.conjugate(dataOut.data[channelIndexList,:])
115 # y = dataOut.data[channelIndexList,:] * numpy.conjugate(dataOut.data[channelIndexList,:])
116 # y = y.real
116 # y = y.real
117 datadB = 10.*numpy.log10(dataOut.data_spc)
117 factor = dataOut.normFactor
118 data = dataOut.data_spc / factor
119 datadB = 10.*numpy.log10(data)
118 y = datadB
120 y = datadB
119
121
120 #thisDatetime = dataOut.datatime
122 #thisDatetime = dataOut.datatime
General Comments 0
You need to be logged in to leave comments. Login now