##// END OF EJS Templates
Se restrige el numero de pares a graficar en Cross-Spectra....
Miguel Valdez -
r228:1fb3505cb0b4
parent child
Show More
@@ -9,7 +9,7 class CrossSpectraPlot(Figure):
9
9
10 WIDTHPROF = None
10 WIDTHPROF = None
11 HEIGHTPROF = None
11 HEIGHTPROF = None
12 PREFIX = 'spc'
12 PREFIX = 'cspc'
13
13
14 def __init__(self):
14 def __init__(self):
15
15
@@ -82,6 +82,9 class CrossSpectraPlot(Figure):
82 if pairsIndexList == []:
82 if pairsIndexList == []:
83 return
83 return
84
84
85 if len(pairsIndexList) > 4:
86 pairsIndexList = pairsIndexList[0:4]
87
85 x = dataOut.getFreqRange(1)
88 x = dataOut.getFreqRange(1)
86 y = dataOut.getHeiRange()
89 y = dataOut.getHeiRange()
87 z = 10.*numpy.log10(dataOut.data_spc[:,:,:])
90 z = 10.*numpy.log10(dataOut.data_spc[:,:,:])
@@ -108,7 +111,7 class CrossSpectraPlot(Figure):
108 self.__isConfig = True
111 self.__isConfig = True
109
112
110 thisDatetime = dataOut.datatime
113 thisDatetime = dataOut.datatime
111 title = "Spectra: %s" %(thisDatetime.strftime("%d-%b-%Y %H:%M:%S"))
114 title = "Cross-Spectra: %s" %(thisDatetime.strftime("%d-%b-%Y %H:%M:%S"))
112 xlabel = "Velocity (m/s)"
115 xlabel = "Velocity (m/s)"
113 ylabel = "Range (Km)"
116 ylabel = "Range (Km)"
114
117
@@ -226,7 +229,7 class RTIPlot(Figure):
226
229
227 def __getTimeLim(self, x, xmin, xmax):
230 def __getTimeLim(self, x, xmin, xmax):
228
231
229 thisdatetime = datetime.datetime.utcfromtimestamp(numpy.min(x))
232 thisdatetime = datetime.datetime.fromtimestamp(numpy.min(x))
230 thisdate = datetime.datetime.combine(thisdatetime.date(), datetime.time(0,0,0))
233 thisdate = datetime.datetime.combine(thisdatetime.date(), datetime.time(0,0,0))
231
234
232 ####################################################
235 ####################################################
General Comments 0
You need to be logged in to leave comments. Login now