@@ -90,6 +90,7 class SpectraPlot(Figure): | |||||
90 | x = dataOut.getVelRange(1) |
|
90 | x = dataOut.getVelRange(1) | |
91 | y = dataOut.heightList |
|
91 | y = dataOut.heightList | |
92 | z = 10.*numpy.log10(dataOut.data_spc[channelIndexList,:,:]) |
|
92 | z = 10.*numpy.log10(dataOut.data_spc[channelIndexList,:,:]) | |
|
93 | avg = numpy.average(z, axis=1) | |||
93 |
|
94 | |||
94 | noise = dataOut.getNoise() |
|
95 | noise = dataOut.getNoise() | |
95 |
|
96 | |||
@@ -106,8 +107,8 class SpectraPlot(Figure): | |||||
106 | if xmax == None: xmax = numpy.nanmax(x) |
|
107 | if xmax == None: xmax = numpy.nanmax(x) | |
107 | if ymin == None: ymin = numpy.nanmin(y) |
|
108 | if ymin == None: ymin = numpy.nanmin(y) | |
108 | if ymax == None: ymax = numpy.nanmax(y) |
|
109 | if ymax == None: ymax = numpy.nanmax(y) | |
109 |
if zmin == None: zmin = numpy.nanmin( |
|
110 | if zmin == None: zmin = numpy.nanmin(avg)*0.9 | |
110 |
if zmax == None: zmax = numpy.nanmax( |
|
111 | if zmax == None: zmax = numpy.nanmax(avg)*0.9 | |
111 |
|
112 | |||
112 | self.__isConfig = True |
|
113 | self.__isConfig = True | |
113 |
|
114 | |||
@@ -117,9 +118,6 class SpectraPlot(Figure): | |||||
117 | ylabel = "Range (Km)" |
|
118 | ylabel = "Range (Km)" | |
118 |
|
119 | |||
119 | self.setWinTitle(title) |
|
120 | self.setWinTitle(title) | |
120 |
|
||||
121 | if self.__showprofile: |
|
|||
122 | avg = numpy.average(z, axis=1) |
|
|||
123 |
|
121 | |||
124 | for i in range(self.nplots): |
|
122 | for i in range(self.nplots): | |
125 | title = "Channel %d: %4.2fdB" %(dataOut.channelList[i], noise[i]) |
|
123 | title = "Channel %d: %4.2fdB" %(dataOut.channelList[i], noise[i]) |
General Comments 0
You need to be logged in to leave comments.
Login now