@@ -143,6 +143,8 class Spectra(JROData): | |||
|
143 | 143 | |
|
144 | 144 | nIncohInt = None |
|
145 | 145 | |
|
146 | wavelength = None #Necesario para cacular el rango de velocidad desde la frecuencia | |
|
147 | ||
|
146 | 148 | nCohInt = None #se requiere para determinar el valor de timeInterval |
|
147 | 149 | |
|
148 | 150 | def __init__(self): |
@@ -182,6 +184,16 class Spectra(JROData): | |||
|
182 | 184 | |
|
183 | 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 | 198 | class SpectraHeis(JROData): |
|
187 | 199 |
@@ -55,7 +55,7 class SpectraProcessor: | |||
|
55 | 55 | self.firstdatatime = None |
|
56 | 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 | 60 | if dataInObj == None: |
|
61 | 61 | raise ValueError, "This SpectraProcessor.setup() function needs dataInObj input variable" |
@@ -89,11 +89,19 class SpectraProcessor: | |||
|
89 | 89 | self.dataOutObj.nFFTPoints = nFFTPoints |
|
90 | 90 | self.dataOutObj.pairsList = pairsList |
|
91 | 91 | self.dataOutObj.nPairs = nPairs |
|
92 | self.dataOutObj.wavelength = wavelength | |
|
92 | 93 | |
|
93 | 94 | return self.dataOutObj |
|
94 | 95 | |
|
95 | 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 | 105 | self.dataOutObj.flagNoData = True |
|
98 | 106 | |
|
99 | 107 | if self.dataInObj.flagNoData: |
General Comments 0
You need to be logged in to leave comments.
Login now