@@ -90,6 +90,7 class SpectraPlot(Figure): | |||
|
90 | 90 | x = dataOut.getVelRange(1) |
|
91 | 91 | y = dataOut.heightList |
|
92 | 92 | z = 10.*numpy.log10(dataOut.data_spc[channelIndexList,:,:]) |
|
93 | avg = numpy.average(z, axis=1) | |
|
93 | 94 | |
|
94 | 95 | noise = dataOut.getNoise() |
|
95 | 96 | |
@@ -106,8 +107,8 class SpectraPlot(Figure): | |||
|
106 | 107 | if xmax == None: xmax = numpy.nanmax(x) |
|
107 | 108 | if ymin == None: ymin = numpy.nanmin(y) |
|
108 | 109 | if ymax == None: ymax = numpy.nanmax(y) |
|
109 |
if zmin == None: zmin = numpy.nanmin( |
|
|
110 |
if zmax == None: zmax = numpy.nanmax( |
|
|
110 | if zmin == None: zmin = numpy.nanmin(avg)*0.9 | |
|
111 | if zmax == None: zmax = numpy.nanmax(avg)*0.9 | |
|
111 | 112 | |
|
112 | 113 | self.__isConfig = True |
|
113 | 114 | |
@@ -117,9 +118,6 class SpectraPlot(Figure): | |||
|
117 | 118 | ylabel = "Range (Km)" |
|
118 | 119 | |
|
119 | 120 | self.setWinTitle(title) |
|
120 | ||
|
121 | if self.__showprofile: | |
|
122 | avg = numpy.average(z, axis=1) | |
|
123 | 121 | |
|
124 | 122 | for i in range(self.nplots): |
|
125 | 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