@@ -174,7 +174,7 class JROData(GenericData): | |||||
174 |
|
174 | |||
175 | # ippSeconds = None |
|
175 | # ippSeconds = None | |
176 |
|
176 | |||
177 | timeInterval = None |
|
177 | # timeInterval = None | |
178 |
|
178 | |||
179 | nCohInt = None |
|
179 | nCohInt = None | |
180 |
|
180 | |||
@@ -293,6 +293,10 class JROData(GenericData): | |||||
293 |
|
293 | |||
294 | self.datatype = getDataTypeCode(numpyDtype) |
|
294 | self.datatype = getDataTypeCode(numpyDtype) | |
295 |
|
|
295 | ||
|
296 | # def getTimeInterval(self): | |||
|
297 | # | |||
|
298 | # raise IOError, "This method should be implemented inside each Class" | |||
|
299 | ||||
296 | nChannels = property(getNChannels, "I'm the 'nChannel' property.") |
|
300 | nChannels = property(getNChannels, "I'm the 'nChannel' property.") | |
297 | channelIndexList = property(getChannelIndexList, "I'm the 'channelIndexList' property.") |
|
301 | channelIndexList = property(getChannelIndexList, "I'm the 'channelIndexList' property.") | |
298 | nHeights = property(getNHeights, "I'm the 'nHeights' property.") |
|
302 | nHeights = property(getNHeights, "I'm the 'nHeights' property.") | |
@@ -301,6 +305,7 class JROData(GenericData): | |||||
301 | ltctime = property(getltctime, "I'm the 'ltctime' property") |
|
305 | ltctime = property(getltctime, "I'm the 'ltctime' property") | |
302 | ippSeconds = property(get_ippSeconds, set_ippSeconds) |
|
306 | ippSeconds = property(get_ippSeconds, set_ippSeconds) | |
303 | dtype = property(get_dtype, set_dtype) |
|
307 | dtype = property(get_dtype, set_dtype) | |
|
308 | # timeInterval = property(getTimeInterval, "I'm the 'timeInterval' property") | |||
304 |
|
309 | |||
305 | class Voltage(JROData): |
|
310 | class Voltage(JROData): | |
306 |
|
311 | |||
@@ -356,6 +361,7 class Voltage(JROData): | |||||
356 |
|
361 | |||
357 | self.flagShiftFFT = False |
|
362 | self.flagShiftFFT = False | |
358 |
|
363 | |||
|
364 | self.flagDataAsBlock = False #Asumo que la data es leida perfil a perfil | |||
359 |
|
365 | |||
360 | def getNoisebyHildebrand(self): |
|
366 | def getNoisebyHildebrand(self): | |
361 | """ |
|
367 | """ | |
@@ -380,7 +386,14 class Voltage(JROData): | |||||
380 |
|
386 | |||
381 | return 10*numpy.log10(noise) |
|
387 | return 10*numpy.log10(noise) | |
382 |
|
388 | |||
|
389 | def getTimeInterval(self): | |||
|
390 | ||||
|
391 | timeInterval = self.ippSeconds * self.nCohInt | |||
|
392 | ||||
|
393 | return timeInterval | |||
|
394 | ||||
383 | noise = property(getNoise, "I'm the 'nHeights' property.") |
|
395 | noise = property(getNoise, "I'm the 'nHeights' property.") | |
|
396 | timeInterval = property(getTimeInterval, "I'm the 'timeInterval' property") | |||
384 |
|
|
397 | ||
385 | class Spectra(JROData): |
|
398 | class Spectra(JROData): | |
386 |
|
399 | |||
@@ -535,12 +548,19 class Spectra(JROData): | |||||
535 |
|
548 | |||
536 | return False |
|
549 | return False | |
537 |
|
550 | |||
|
551 | def getTimeInterval(self): | |||
|
552 | ||||
|
553 | timeInterval = self.ippSeconds * self.nCohInt * self.nIncohInt * self.nProfiles | |||
|
554 | ||||
|
555 | return timeInterval | |||
|
556 | ||||
538 | nPairs = property(getNPairs, "I'm the 'nPairs' property.") |
|
557 | nPairs = property(getNPairs, "I'm the 'nPairs' property.") | |
539 | pairsIndexList = property(getPairsIndexList, "I'm the 'pairsIndexList' property.") |
|
558 | pairsIndexList = property(getPairsIndexList, "I'm the 'pairsIndexList' property.") | |
540 | normFactor = property(getNormFactor, "I'm the 'getNormFactor' property.") |
|
559 | normFactor = property(getNormFactor, "I'm the 'getNormFactor' property.") | |
541 | flag_cspc = property(getFlagCspc) |
|
560 | flag_cspc = property(getFlagCspc) | |
542 | flag_dc = property(getFlagDc) |
|
561 | flag_dc = property(getFlagDc) | |
543 | noise = property(getNoise, "I'm the 'nHeights' property.") |
|
562 | noise = property(getNoise, "I'm the 'nHeights' property.") | |
|
563 | timeInterval = property(getTimeInterval, "I'm the 'timeInterval' property") | |||
544 |
|
|
564 | ||
545 | class SpectraHeis(Spectra): |
|
565 | class SpectraHeis(Spectra): | |
546 |
|
566 | |||
@@ -599,7 +619,14 class SpectraHeis(Spectra): | |||||
599 |
|
619 | |||
600 | return normFactor |
|
620 | return normFactor | |
601 |
|
621 | |||
|
622 | def getTimeInterval(self): | |||
|
623 | ||||
|
624 | timeInterval = self.ippSeconds * self.nCohInt * self.nIncohInt | |||
|
625 | ||||
|
626 | return timeInterval | |||
|
627 | ||||
602 | normFactor = property(getNormFactor, "I'm the 'getNormFactor' property.") |
|
628 | normFactor = property(getNormFactor, "I'm the 'getNormFactor' property.") | |
|
629 | timeInterval = property(getTimeInterval, "I'm the 'timeInterval' property") | |||
603 |
|
630 | |||
604 | class Fits: |
|
631 | class Fits: | |
605 |
|
632 | |||
@@ -619,7 +646,7 class Fits: | |||||
619 |
|
646 | |||
620 | # ippSeconds = None |
|
647 | # ippSeconds = None | |
621 |
|
648 | |||
622 | timeInterval = None |
|
649 | # timeInterval = None | |
623 |
|
650 | |||
624 | nCohInt = None |
|
651 | nCohInt = None | |
625 |
|
652 | |||
@@ -736,6 +763,10 class Fits: | |||||
736 |
|
763 | |||
737 | return noise |
|
764 | return noise | |
738 |
|
765 | |||
|
766 | def getTimeInterval(self): | |||
|
767 | ||||
|
768 | raise ValueError, "This method is not implemented yet" | |||
|
769 | ||||
739 | datatime = property(getDatatime, "I'm the 'datatime' property") |
|
770 | datatime = property(getDatatime, "I'm the 'datatime' property") | |
740 | nHeights = property(getNHeights, "I'm the 'nHeights' property.") |
|
771 | nHeights = property(getNHeights, "I'm the 'nHeights' property.") | |
741 | nChannels = property(getNChannels, "I'm the 'nChannel' property.") |
|
772 | nChannels = property(getNChannels, "I'm the 'nChannel' property.") | |
@@ -743,6 +774,7 class Fits: | |||||
743 | noise = property(getNoise, "I'm the 'nHeights' property.") |
|
774 | noise = property(getNoise, "I'm the 'nHeights' property.") | |
744 | datatime = property(getDatatime, "I'm the 'datatime' property") |
|
775 | datatime = property(getDatatime, "I'm the 'datatime' property") | |
745 | ltctime = property(getltctime, "I'm the 'ltctime' property") |
|
776 | ltctime = property(getltctime, "I'm the 'ltctime' property") | |
|
777 | timeInterval = property(getTimeInterval, "I'm the 'timeInterval' property") | |||
746 |
|
778 | |||
747 | class Correlation(JROData): |
|
779 | class Correlation(JROData): | |
748 |
|
780 |
General Comments 0
You need to be logged in to leave comments.
Login now