##// END OF EJS Templates
Se agrego el atributo wavelength y el metodo getFrecuencies a la Clase Spectra
Miguel Valdez -
r170:b8b8955578d9
parent child
Show More
@@ -143,6 +143,8 class Spectra(JROData):
143
143
144 nIncohInt = None
144 nIncohInt = None
145
145
146 wavelength = None #Necesario para cacular el rango de velocidad desde la frecuencia
147
146 nCohInt = None #se requiere para determinar el valor de timeInterval
148 nCohInt = None #se requiere para determinar el valor de timeInterval
147
149
148 def __init__(self):
150 def __init__(self):
@@ -182,6 +184,16 class Spectra(JROData):
182
184
183 self.blocksize = None
185 self.blocksize = None
184
186
187 self.nFFTPoints = None
188
189 self.wavelength = None
190
191 def getFrequencies(self):
192
193 xrange = numpy.arange(self.nFFTPoints)
194 xrange = xrange
195 return None
196
185
197
186 class SpectraHeis(JROData):
198 class SpectraHeis(JROData):
187
199
@@ -55,7 +55,7 class SpectraProcessor:
55 self.firstdatatime = None
55 self.firstdatatime = None
56 self.profIndex = 0
56 self.profIndex = 0
57
57
58 def setup(self, dataInObj=None, dataOutObj=None, nFFTPoints=None, pairsList=None):
58 def setup(self, dataInObj=None, dataOutObj=None, nFFTPoints=None, pairsList=None, wavelength=6):
59
59
60 if dataInObj == None:
60 if dataInObj == None:
61 raise ValueError, "This SpectraProcessor.setup() function needs dataInObj input variable"
61 raise ValueError, "This SpectraProcessor.setup() function needs dataInObj input variable"
@@ -89,11 +89,19 class SpectraProcessor:
89 self.dataOutObj.nFFTPoints = nFFTPoints
89 self.dataOutObj.nFFTPoints = nFFTPoints
90 self.dataOutObj.pairsList = pairsList
90 self.dataOutObj.pairsList = pairsList
91 self.dataOutObj.nPairs = nPairs
91 self.dataOutObj.nPairs = nPairs
92 self.dataOutObj.wavelength = wavelength
92
93
93 return self.dataOutObj
94 return self.dataOutObj
94
95
95 def init(self):
96 def init(self):
96
97
98 """
99
100 Este metodo reinicia los contadores de los objetos integrator, writer y plotter
101 y actualiza los parametros del objeto de salida dataOutObj a partir del objeto de entrada.
102
103 """
104
97 self.dataOutObj.flagNoData = True
105 self.dataOutObj.flagNoData = True
98
106
99 if self.dataInObj.flagNoData:
107 if self.dataInObj.flagNoData:
General Comments 0
You need to be logged in to leave comments. Login now