@@ -618,16 +618,16 class ProcessingHeader(Header): | |||
|
618 | 618 | spectraComb = self.spectraComb |
|
619 | 619 | spectraComb.tofile(fp) |
|
620 | 620 | |
|
621 | if self.processFlags & PROCFLAG.DEFINE_PROCESS_CODE == PROCFLAG.DEFINE_PROCESS_CODE: | |
|
622 | nCode = numpy.array([self.nCode], numpy.dtype('u4')) #Probar con un dato que almacene codigo, hasta el momento no se hizo la prueba | |
|
623 | nCode.tofile(fp) | |
|
624 | ||
|
625 | nBaud = numpy.array([self.nBaud], numpy.dtype('u4')) | |
|
626 | nBaud.tofile(fp) | |
|
627 | ||
|
628 | code = self.code.reshape(self.nCode*self.nBaud) | |
|
629 | code = code.astype(numpy.dtype('<f4')) | |
|
630 | code.tofile(fp) | |
|
621 | # if self.processFlags & PROCFLAG.DEFINE_PROCESS_CODE == PROCFLAG.DEFINE_PROCESS_CODE: | |
|
622 | # nCode = numpy.array([self.nCode], numpy.dtype('u4')) #Probar con un dato que almacene codigo, hasta el momento no se hizo la prueba | |
|
623 | # nCode.tofile(fp) | |
|
624 | # | |
|
625 | # nBaud = numpy.array([self.nBaud], numpy.dtype('u4')) | |
|
626 | # nBaud.tofile(fp) | |
|
627 | # | |
|
628 | # code = self.code.reshape(self.nCode*self.nBaud) | |
|
629 | # code = code.astype(numpy.dtype('<f4')) | |
|
630 | # code.tofile(fp) | |
|
631 | 631 | |
|
632 | 632 | return 1 |
|
633 | 633 | |
@@ -635,9 +635,9 class ProcessingHeader(Header): | |||
|
635 | 635 | |
|
636 | 636 | self.__size = 40 + 12*self.nWindows + 2*self.totalSpectra |
|
637 | 637 | |
|
638 | if self.processFlags & PROCFLAG.DEFINE_PROCESS_CODE == PROCFLAG.DEFINE_PROCESS_CODE: | |
|
638 | # if self.processFlags & PROCFLAG.DEFINE_PROCESS_CODE == PROCFLAG.DEFINE_PROCESS_CODE: | |
|
639 | 639 | # self.__size += 4 + 4 + 4*self.nCode*numpy.ceil(self.nBaud/32.) |
|
640 | self.__size += 4 + 4 + 4 * self.nCode * self.nBaud | |
|
640 | # self.__size += 4 + 4 + 4 * self.nCode * self.nBaud | |
|
641 | 641 | |
|
642 | 642 | return self.__size |
|
643 | 643 |
General Comments 0
You need to be logged in to leave comments.
Login now