@@ -577,6 +577,17 class SpectraHeis(Spectra): | |||
|
577 | 577 | self.utctime = None |
|
578 | 578 | |
|
579 | 579 | self.blocksize = None |
|
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.") | |
|
580 | 591 | |
|
581 | 592 | class Fits: |
|
582 | 593 |
@@ -114,7 +114,9 class SpectraHeisScope(Figure): | |||
|
114 | 114 | #x= x/(10000.0) |
|
115 | 115 | # y = dataOut.data[channelIndexList,:] * numpy.conjugate(dataOut.data[channelIndexList,:]) |
|
116 | 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 | 120 | y = datadB |
|
119 | 121 | |
|
120 | 122 | #thisDatetime = dataOut.datatime |
General Comments 0
You need to be logged in to leave comments.
Login now