##// END OF EJS Templates
Bug Fixed: Actualizacion del valor estimado del ruido
Daniel Valdez -
r452:b91c52c913af
parent child
Show More
@@ -377,19 +377,19 class Spectra(JROData):
377 377 Return:
378 378 noiselevel
379 379 """
380
380 noise = numpy.zeros(self.nChannels)
381 381 for channel in range(self.nChannels):
382 382 daux = self.data_spc[channel,:,:]
383 self.noise[channel] = hildebrand_sekhon(daux, self.nIncohInt)
383 noise[channel] = hildebrand_sekhon(daux, self.nIncohInt)
384 384
385 return self.noise
385 return noise
386 386
387 387 def getNoise(self):
388 if self.noise == None:
389 self.noise = numpy.zeros(self.nChannels)
390 self.noise = self.getNoisebyHildebrand()
391
388 if self.noise != None:
392 389 return self.noise
390 else:
391 noise = self.getNoisebyHildebrand()
392 return noise
393 393
394 394
395 395 def getFreqRange(self, extrapoints=0):
General Comments 0
You need to be logged in to leave comments. Login now